mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-21 22:45:23 +00:00
The kprobe_eventname.tc test checks if a function with .isra. can have a
kprobe attached to it. It loops through the kallsyms file for all the
functions that have the .isra. name, and checks if it exists in the
available_filter_functions file, and if it does, it uses it to attach a
kprobe to it.
The issue is that kprobes can not attach to functions that are listed more
than once in available_filter_functions. With the latest kernel, the
function that is found is: rapl_event_update.isra.0
# grep rapl_event_update.isra.0 /sys/kernel/tracing/available_filter_functions
rapl_event_update.isra.0
rapl_event_update.isra.0
It is listed twice. This causes the attached kprobe to it to fail which in
turn fails the test. Instead of just picking the function function that is
found in available_filter_functions, pick the first one that is listed
only once in available_filter_functions.
Cc: stable@vger.kernel.org
Fixes:
|
||
|---|---|---|
| .. | ||
| add_and_remove.tc | ||
| busy_check.tc | ||
| kprobe_args_char.tc | ||
| kprobe_args_comm.tc | ||
| kprobe_args_string.tc | ||
| kprobe_args_symbol.tc | ||
| kprobe_args_syntax.tc | ||
| kprobe_args_type.tc | ||
| kprobe_args_user.tc | ||
| kprobe_args_vfs.tc | ||
| kprobe_args.tc | ||
| kprobe_eventname.tc | ||
| kprobe_ftrace.tc | ||
| kprobe_insn_boundary.tc | ||
| kprobe_module.tc | ||
| kprobe_multiprobe.tc | ||
| kprobe_non_uniq_symbol.tc | ||
| kprobe_opt_types.tc | ||
| kprobe_syntax_errors.tc | ||
| kretprobe_args.tc | ||
| kretprobe_entry_arg.tc | ||
| kretprobe_maxactive.tc | ||
| kretprobe_return_suffix.tc | ||
| multiple_kprobes.tc | ||
| probepoint.tc | ||
| profile.tc | ||
| uprobe_syntax_errors.tc | ||