RFC tracing: Use common error_log with probe events
Get series with b4
b4 am 155253778926.14922.14048967363017104338.stgit@devnote2Versions newest first · linked by author and title
- v2 RFC Latest7 patches 0 repliesNew
- v1 RFC7 patches 9 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | tracing/probe: Check maxactive error caseskernel/ | +7 | 0 replies | |
| 2/7 | tracing/probe: Check event name length correctlykernel/ | +7 | 0 replies | |
| 3/7 | tracing/probe: Check the size of argument name and bodykernel/ kernel/ | +3 | 0 replies | |
| 4/7 | tracing/probe: Check event/group naming rule at parsingkernel/ kernel/ kernel/ | +10 | 0 replies | |
| 5/7 | tracing/probe: Verify alloc_trace_*probe() resultkernel/ kernel/ | +4 | 0 replies | |
| 6/7 | tracing: Use tracing error_log with probe eventskernel/ kernel/ kernel/ +1 more | +348 | 0 replies | |
| 7/7 | selftests/ftrace: Add error_log testcase for probe errorstools/ tools/ | +124 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/7] tracing: Use common error_log with probe events
Hi,
Here is the 2nd version of using common error_log with probe events. Previous version is here.
http://lkml.kernel.org/r/155248005229.10815.334731901778152247.stgit@devnote2
In this version, I've updated some error messages according to Steve's comment, adjust some error position, and update testcase to simplify a bit.
- [4/7]: Update error message according to Steve's comment (Thanks!)
- [6/7]: Update error message, adjust error positions, and add uprobe errors
- [7/7]: Specify error position in command string by "^".
Clear error_log right before writing command.
Add uprobe syntax error checker
Thank you,
---
Masami Hiramatsu (7):
tracing/probe: Check maxactive error cases tracing/probe: Check event name length correctly tracing/probe: Check the size of argument name and body tracing/probe: Check event/group naming rule at parsing tracing/probe: Verify alloc_trace_*probe() result
tracing: Use tracing error_log with probe events selftests/ftrace: Add error_log testcase for probe errors
kernel/trace/trace_kprobe.c | 90 ++++-- kernel/trace/trace_probe.c | 282 +++++++++++++++----- kernel/trace/trace_probe.h | 78 +++++- kernel/trace/trace_uprobe.c | 52 ++-- .../ftrace/test.d/kprobe/kprobe_syntax_errors.tc | 93 +++++++ .../ftrace/test.d/kprobe/uprobe_syntax_errors.tc | 31 ++ 6 files changed, 494 insertions(+), 132 deletions(-) create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/uprobe_syntax_errors.tc
--
Masami Hiramatsu <[email protected]>