aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-10-17 02:26:40 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:50 -0400
commit6d76013381ed28979cd122eb4b249a88b5e384fa (patch)
treef37571fad8690dead2344d1aa0ea86d5f778181f /include
parentae0b78d09dc1d521551e225a9831aba1eded518f (diff)
Add /sys/module/name/notes
This patch adds the /sys/module/<name>/notes/ magic directory, which has a file for each allocated SHT_NOTE section that appears in <name>.ko. This is the counterpart for each module of /sys/kernel/notes for vmlinux. Reading this delivers the contents of the module's SHT_NOTE sections. This lets userland easily glean any detailed information about that module's build that was stored there at compile time (e.g. by ld --build-id). Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 5523e10fb2f..642f325e491 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -343,6 +343,9 @@ struct module
343 343
344 /* Section attributes */ 344 /* Section attributes */
345 struct module_sect_attrs *sect_attrs; 345 struct module_sect_attrs *sect_attrs;
346
347 /* Notes attributes */
348 struct module_notes_attrs *notes_attrs;
346#endif 349#endif
347 350
348 /* Per-cpu data. */ 351 /* Per-cpu data. */