Issue found on B-hwe-5.4.0-173.191~18.04.1
This kprobe_non_uniq_symbol.tc test case came from stable update (bug 2049024) and landed in our Focal kernel since Ubuntu-5.4.0-173.191
So this is not a regression, but a new test case.
Test log: Running './ftracetest -vvv test.d/kprobe/kprobe_non_uniq_symbol.tc' === Ftrace unit tests === + initialize_ftrace + disable_tracing + echo 0 + reset_tracer + echo nop + reset_trigger + [ -d events/synthetic ] ... + read line ... + read line ... + reset_events_filter + read line ... + reset_ftrace_filter + [ ! -f set_ftrace_filter ] + echo + grep -v ^# set_ftrace_filter + read t + disable_events + echo 0 + [ -f set_event_pid ] + echo + [ -f set_ftrace_pid ] + echo + [ -f set_ftrace_notrace ] + echo + [ -f set_graph_function ] [1] Test failure of registering kprobe on non unique symbol + echo + tee set_graph_function set_graph_notrace + [ -f stack_trace_filter ] + echo + [ -f kprobe_events ] + echo + [ -f uprobe_events ] + echo + [ -f synthetic_events ] + echo + [ -f snapshot ] + echo 0 + clear_trace + echo + enable_tracing + echo 1 + . /home/ubuntu/autotest/client/tmp/ubuntu_kselftests_ftrace/src/linux/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc + SYMBOL=name_show + grep -c -E [[:alnum:]]+ t name_show /proc/kallsyms + [ 14 -le 1 ] + echo p:test_non_unique name_show [FAIL]
# of passed: 0 # of failed: 1 # of unresolved: 0 # of untested: 0 # of unsupported: 0 # of xfailed: 0 # of undefined(test bug): 0
I think we're probably missing https://github.com/torvalds/linux/commit/b022f0c7e404887a7c5229788fc99eff9f9a80d5
Issue found on B-hwe-5. 4.0-173. 191~18. 04.1
This kprobe_ non_uniq_ symbol. tc test case came from stable update (bug 2049024) and landed in our Focal kernel since Ubuntu- 5.4.0-173. 191
So this is not a regression, but a new test case.
Test log: kprobe/ kprobe_ non_uniq_ symbol. tc' autotest/ client/ tmp/ubuntu_ kselftests_ ftrace/ src/linux/ tools/testing/ selftests/ ftrace/ test.d/ kprobe/ kprobe_ non_uniq_ symbol. tc
Running './ftracetest -vvv test.d/
=== Ftrace unit tests ===
+ initialize_ftrace
+ disable_tracing
+ echo 0
+ reset_tracer
+ echo nop
+ reset_trigger
+ [ -d events/synthetic ]
...
+ read line
...
+ read line
...
+ reset_events_filter
+ read line
...
+ reset_ftrace_filter
+ [ ! -f set_ftrace_filter ]
+ echo
+ grep -v ^# set_ftrace_filter
+ read t
+ disable_events
+ echo 0
+ [ -f set_event_pid ]
+ echo
+ [ -f set_ftrace_pid ]
+ echo
+ [ -f set_ftrace_notrace ]
+ echo
+ [ -f set_graph_function ]
[1] Test failure of registering kprobe on non unique symbol
+ echo
+ tee set_graph_function set_graph_notrace
+ [ -f stack_trace_filter ]
+ echo
+ [ -f kprobe_events ]
+ echo
+ [ -f uprobe_events ]
+ echo
+ [ -f synthetic_events ]
+ echo
+ [ -f snapshot ]
+ echo 0
+ clear_trace
+ echo
+ enable_tracing
+ echo 1
+ . /home/ubuntu/
+ SYMBOL=name_show
+ grep -c -E [[:alnum:]]+ t name_show /proc/kallsyms
+ [ 14 -le 1 ]
+ echo p:test_non_unique name_show
[FAIL]
# of passed: 0
# of failed: 1
# of unresolved: 0
# of untested: 0
# of unsupported: 0
# of xfailed: 0
# of undefined(test bug): 0
I think we're probably missing https:/ /github. com/torvalds/ linux/commit/ b022f0c7e404887 a7c5229788fc99e ff9f9a80d5