[lkml]   [2009]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 3/4] perf symbols: Record the build_ids of kernel modules too
Em Wed, Nov 18, 2009 at 02:29:10PM -0800, Roland McGrath escreveu:
> > + snprintf(name, sizeof(name),
> > + "/sys/module/%s/notes/", line);
> The arch linker script for .ko's is free to fold notes into a single
> section with a different name or suchlike, and maybe future ones will. So
> it's not pedantically kosher to assume the name of the section rather than
> just looking at all the /sys/module/%s/notes/* files present until you find
> NT_GNU_BUILD_ID. (In practice there is probably only ever one file there
> to look at, but you never know.)

Ahah! That seems to explain why the kernel one is "notes" while the
modules's are ""! I'll cook a super-dupa-careful
cooker follow on patch to get that right, thanks again!

- Arnaldo

 \ /
  Last update: 2009-11-18 23:37    [W:0.045 / U:2.500 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site