From: Noah Goldstein <goldstein.w.n@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: Samir Droubi via Libc-help <libc-help@sourceware.org>,
Samir Droubi <samirdr@mit.edu>
Subject: Re: ____wcstold_l_internal Question
Date: Fri, 2 Dec 2022 23:57:45 -0800 [thread overview]
Message-ID: <CAFUsyfK+5Xbj5-tXiQRpUeQgQmt_zHbPZTgd5Wi8ui0nbYefKg@mail.gmail.com> (raw)
In-Reply-To: <877czauyjh.fsf@oldenburg.str.redhat.com>
On Thu, Dec 1, 2022 at 10:09 PM Florian Weimer via Libc-help
<libc-help@sourceware.org> wrote:
>
> * Samir Droubi via Libc-help:
>
> > I was profiling a project that I have been working on and the function
> > above shows up amongst other internal functions. I was wondering if
> > you could shed a light on what could possibly be happening to cause
> > calls to this function to be so frequent. Here is the profiling
> > result:
> >
> > 13.72% mitscriptbc libc.so.6 [.] ____wcstold_l_internal
> > 5.45% mitscriptbc libc.so.6 [.] ____wcstof_l_internal
> > 2.46% mitscriptbc libc.so.6 [.] round_and_return
> > 2.28% mitscriptbc libc.so.6 [.] ____wcstod_l_internal
> >
> > The libc version being used is 2.35.
I've noticed on ubuntu 22.04 (2.35 as well) `__wcstold_l` is showing up
in perf profiles incorrectly. It's usually malloc / memcpy / whatever other
functions are usually hot if you look at the asm.
Not sure where the bug is but don't think `__wcstold` is whats taking up
all those cycles.
>
> The external name is wcstold or wcstold_l. If your application isn't
> calling that, the profiling data is wrong. You might find out by
> setting a breakpoint or probe on the function.
>
> Thanks,
> Florian
>
next prev parent reply other threads:[~2022-12-03 7:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 5:39 Samir Droubi
2022-12-02 6:09 ` Florian Weimer
2022-12-03 7:57 ` Noah Goldstein [this message]
2022-12-03 19:20 ` Samir Droubi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFUsyfK+5Xbj5-tXiQRpUeQgQmt_zHbPZTgd5Wi8ui0nbYefKg@mail.gmail.com \
--to=goldstein.w.n@gmail.com \
--cc=fweimer@redhat.com \
--cc=libc-help@sourceware.org \
--cc=samirdr@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).