This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH -tip v2 5/9] perf probe: Use elfutils-libdw for analyzing debuginfo
- From: Masami Hiramatsu <mhiramat at redhat dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: Ingo Molnar <mingo at elte dot hu>, lkml <linux-kernel at vger dot kernel dot org>, systemtap <systemtap at sources dot redhat dot com>, DLE <dle-develop at lists dot sourceforge dot net>, Frederic Weisbecker <fweisbec at gmail dot com>, Arnaldo Carvalho de Melo <acme at redhat dot com>, Peter Zijlstra <peterz at infradead dot org>, Paul Mackerras <paulus at samba dot org>, Mike Galbraith <efault at gmx dot de>, "K.Prasad" <prasad at linux dot vnet dot ibm dot com>, Roland McGrath <roland at redhat dot com>
- Date: Mon, 22 Feb 2010 18:18:49 -0500
- Subject: Re: [PATCH -tip v2 5/9] perf probe: Use elfutils-libdw for analyzing debuginfo
- References: <20100222225320.20686.17645.stgit@localhost6.localdomain6> <20100222225354.20686.67443.stgit@localhost6.localdomain6> <4B830E6F.4020401@redhat.com> <4B830F82.70808@redhat.com>
Masami Hiramatsu wrote:
> Ulrich Drepper wrote:
>> On 02/22/2010 02:53 PM, Masami Hiramatsu wrote:
>>> - Cast Dwarf_Addr/Dwarf_Word to unsigned long long for printf-formats.
>>
>> I don't know about the use of C99 types in kernel files. But can you
>> use uintmax_t and then PRI[douxX]MAX in printf? It'd be more correct
>> and it exists in glibc for a very long time (1997).
>
> Hmm, I'm not sure about that. Could you point somewhere I can refer that?
Ah, would you mean 'j' prefix? like as 'printf("%jx", (uintmax_t)Addr);' ?
>
> Thank you,
>
--
Masami Hiramatsu
e-mail: mhiramat@redhat.com