Skip to content

selftests/tracing: Fix some testcases for recent change

Masami Hiramatsu (Google) linux-kselftest linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am 167309832823.640500.13244630381161014364.stgit@devnote3

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing/eprobe: Fix to add filter on eprobe description in README filekernel/trace/trace.c+1 -10 replies
2/3selftests/ftrace: Fix eprobe syntax test case to check filter supporttools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc+3 -10 replies
3/3selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbolstools/testing/selftests/ftrace/test.d/kprobe/probepoint.tc+1 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSteven Rostedt (Google)Shuah Khan
SeriesR-b A-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] selftests/tracing: Fix some testcases for recent change

This includes some patches to fix 2 issues on ftrace selftests.

- eprobe filter and eprobe syntax test case were introduced but it doesn't check whether the kernel supports eprobe filter. Thus the new test case fails on the kernel which has eprobe but not support eprobe filter. To solve this issue, add a filter description to README file [1/3] and run the filter syntax error test only if the description is found in the README file [2/3].

- Recently objtool adds prefix symbols for the function padding nops, and the probepoint test case fails because this probepoint test case tests whether the kprobe event can probe the target function and the functions next to the target function. But the prefix symbols can not be probed. Thus these prefix symbols must be skipped [3/3].

Thank you,

---

Masami Hiramatsu (Google) (3):
tracing/eprobe: Fix to add filter on eprobe description in README file selftests/ftrace: Fix eprobe syntax test case to check filter support selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbols

 kernel/trace/trace.c                               |    2 +-
 .../test.d/dynevent/eprobes_syntax_errors.tc       |    4 +++-
 .../selftests/ftrace/test.d/kprobe/probepoint.tc   |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

--
Masami Hiramatsu (Google) <[email protected]>