cpu_set_t not available on OsX, line:123 ./mysys/my_perf.c, won't compile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQLAtFacebook |
New
|
Undecided
|
Unassigned |
Bug Description
as for similar software... http://
that datatype is not available on OsX with that name, see the linked patch above, there is a quick workaround
gcc -DDEFAULT_
my_perf.c: In function ‘my_init_
my_perf.c:123: error: ‘cpu_set_t’ undeclared (first use in this function)
my_perf.c:123: error: (Each undeclared identifier is reported only once
my_perf.c:123: error: for each function it appears in.)
my_perf.c:123: error: expected ‘;’ before ‘mask’
my_perf.c:124: error: ‘mask’ undeclared (first use in this function)
make[1]: *** [my_perf.o] Error 1
make: *** [all-recursive] Error 1
k, the workaround doesn't seem to be so quick at all... :-(
I have was looking at the logic you implemented, and needs to be enhanced substituting macros as your colleagues of the "xhprof patch" did.
I found the reference for OsX here http:// developer. apple.com/ mac/library/ releasenotes/ Performance/ RN-AffinityAPI/
I tried to put in place the macros of ur colleagues, but still, I have found no equivalent for CPU_CLR