Skip to content

Commit 4575292

Browse files
mdouchapevik
authored andcommitted
fanotify25: Trace oom_kill_process() instead of load_module()
The load_module() function is available only if the kernel was built with CONFIG_MODULES enabled. Trace a function that's unconditionally available instead. Link: https://lore.kernel.org/ltp/20260303105510.14305-1-mdoucha@suse.cz/ Reported-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
1 parent e434de6 commit 4575292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testcases/kernel/syscalls/fanotify/fanotify25.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ static const struct traceconfig {
2424
const char *filename;
2525
const char *wdata;
2626
} trace_cmds[] = {
27-
{EVENTS_SYSFILE, "p:ltp_load_module_0 load_module"},
28-
{MNTPOINT "/events/kprobes/ltp_load_module_0/enable", "1"},
29-
{MNTPOINT "/events/kprobes/ltp_load_module_0/enable", "0"},
30-
{EVENTS_SYSFILE, "-:ltp_load_module_0"},
27+
{EVENTS_SYSFILE, "p:ltp_oom_kill_process_0 oom_kill_process"},
28+
{MNTPOINT "/events/kprobes/ltp_oom_kill_process_0/enable", "1"},
29+
{MNTPOINT "/events/kprobes/ltp_oom_kill_process_0/enable", "0"},
30+
{EVENTS_SYSFILE, "-:ltp_oom_kill_process_0"},
3131
{}
3232
};
3333

0 commit comments

Comments
 (0)