This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] i386: Replace internal_function attribute for __mcount_internal
- From: Florian Weimer <fweimer at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 15 Aug 2017 13:39:47 +0200
- Subject: Re: [PATCH] i386: Replace internal_function attribute for __mcount_internal
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0E13A80462
- References: <54445c79-cdb6-27a0-5704-d13e8f888f91@redhat.com> <CAMe9rOoo+WKW9igdqK5Lz2Goqgy42JhK=WqcpL5LinSokvnyYg@mail.gmail.com> <3384573b-783e-cb2c-e1ce-6fa79b0397c6@redhat.com> <CAMe9rOp9bZS2DXwnNs4v_EO5g_p3iF4Q0H9GMV3-rnymmmBkyg@mail.gmail.com>
On 08/14/2017 09:06 PM, H.J. Lu wrote:
> Here is a simple test on Fedora 26.
>
> [hjl@gnu-6 tmp]$ cat foo.c
> #include <stdio.h>
>
> void
> foo (void)
> {
> printf ("hello\n");
> }
>
> int
> main ()
> {
> foo ();
> return 0;
> }
> [hjl@gnu-6 tmp]$ gcc -c -pg foo.c
Sure, but I'm worried about isolation from the host system.
> We don't profile gliibc.
See --enable-profile. -pg should pick up the profiling libc on systems
where it is installed. We need to prevent that for the test.
I think I have something which matches our requirements, but I still
need to test it on a variety of architectures.
Thanks,
Florian