* Missing functions for linux perf
@ 2015-05-08 19:42 Laurent Bercot
2015-05-08 19:49 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Laurent Bercot @ 2015-05-08 19:42 UTC (permalink / raw)
To: musl
Hi,
I'm trying to compile Linux's "perf" tool with musl. Barring
a few truckloads of warnings regarding redefined symbols in
kernel headers, I managed to get the core source files compiled,
but there are errors at link time - the following functions are
undefined:
pthread_attr_setaffinity_np
sched_getcpu
Sure, those are glibc extensions, but would it be possible to
have them in musl, or is there a good reason not to ?
Thanks,
--
Laurent
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Missing functions for linux perf
2015-05-08 19:42 Missing functions for linux perf Laurent Bercot
@ 2015-05-08 19:49 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2015-05-08 19:49 UTC (permalink / raw)
To: musl
On Fri, May 08, 2015 at 09:42:18PM +0200, Laurent Bercot wrote:
>
> Hi,
> I'm trying to compile Linux's "perf" tool with musl. Barring
> a few truckloads of warnings regarding redefined symbols in
> kernel headers, I managed to get the core source files compiled,
> but there are errors at link time - the following functions are
> undefined:
>
> pthread_attr_setaffinity_np
> sched_getcpu
>
> Sure, those are glibc extensions, but would it be possible to
> have them in musl, or is there a good reason not to ?
For pthread_attr_setaffinity_np, I'd rather not since it requires
having allocated state in pthread_attr_t objects, which requires
auditing any place they're copied by value, and other headaches. The
same thing can be achieved by pthread_setattr_np after the thread
starts, so putting the affinity in the attr object just seems
gratuitously hideous.
I have no fundamental objection to sched_getcpu.
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-08 19:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08 19:42 Missing functions for linux perf Laurent Bercot
2015-05-08 19:49 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).