mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
ae0b78d09d
commit
6d76013381
2 changed files with 109 additions and 0 deletions
|
@ -343,6 +343,9 @@ struct module
|
|||
|
||||
/* Section attributes */
|
||||
struct module_sect_attrs *sect_attrs;
|
||||
|
||||
/* Notes attributes */
|
||||
struct module_notes_attrs *notes_attrs;
|
||||
#endif
|
||||
|
||||
/* Per-cpu data. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue