lkml.org 
[lkml]   [2009]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 3/4] perf symbols: Record the build_ids of kernel modules too
Date
> +		snprintf(name, sizeof(name),
> + "/sys/module/%s/notes/.note.gnu.build-id", 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.)

Thanks,
Roland


\
 
 \ /
  Last update: 2009-11-18 23:33    [from the cache]
©2003-2011 Jasper Spaans