public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ftrace: Event probe updates
@ 2022-08-01  2:32 Masami Hiramatsu (Google)
  2022-08-01  2:32 ` [PATCH 1/3] tracing/eprobe: Show syntax error logs in error_log file Masami Hiramatsu (Google)
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Masami Hiramatsu (Google) @ 2022-08-01  2:32 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: LKML, Tzvetomir Stoyanov, Ingo Molnar, Masami Hiramatsu

This series adds some features/tests to event probe, which includes
- Add event probe syntax error logs on <tracefs>/error_log file.
- Add 'if' filter to the event probe.
- Add a syntax error test case for event probe.

'if' filter is a new feature, which allows us to define new event based on
the condition. There are some events which include both start and end
events by one event type. e.g. CPU idle (power/cpu_idle) event is called
at the CPU idle start with "state=C-state ID" and at the end with "state=(u32)-1".
In that case, it is useful if we can define 2 new event probes on it for
the start and the end besed on the state value. Or, we can classify events
based on running CPU, etc.

Thanks,

---

Masami Hiramatsu (Google) (3):
      tracing/eprobe: Show syntax error logs in error_log file
      tracing/eprobe: Add eprobe filter support
      selftests/ftrace: Add eprobe syntax error testcase


 kernel/trace/trace_eprobe.c                        |  115 ++++++++++++++++++--
 kernel/trace/trace_probe.h                         |    6 +
 .../test.d/dynevent/eprobes_syntax_errors.tc       |   27 +++++
 3 files changed, 137 insertions(+), 11 deletions(-)
 create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc

--
Masami Hiramatsu (Google) <mhiramat@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-12  5:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-01  2:32 [PATCH 0/3] ftrace: Event probe updates Masami Hiramatsu (Google)
2022-08-01  2:32 ` [PATCH 1/3] tracing/eprobe: Show syntax error logs in error_log file Masami Hiramatsu (Google)
2022-08-01  2:32 ` [PATCH 2/3] tracing/eprobe: Add eprobe filter support Masami Hiramatsu (Google)
2022-08-01 20:57   ` Steven Rostedt
2022-11-09  3:33   ` Rafael Mendonca
2022-11-12  2:14     ` Masami Hiramatsu
2022-11-12  5:23     ` Masami Hiramatsu
2022-08-01  2:32 ` [PATCH 3/3] selftests/ftrace: Add eprobe syntax error testcase Masami Hiramatsu (Google)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox