[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210820204644.546662591@goodmis.org>
Date: Fri, 20 Aug 2021 16:46:44 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org, linux-trace-devel@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
"Tzvetomir Stoyanov" <tz.stoyanov@...il.com>,
Tom Zanussi <zanussi@...nel.org>
Subject: [PATCH v9 0/6] tracing: Creation of event probe
V8 Link: https://lore.kernel.org/linux-trace-devel/20210819152604.704335282@goodmis.org/
Changes from v8:
Found and fixed a bug in the selftests that check the README file.
I was testing that requirement with eprobes, and found that it was not
flagging it as not added. Found the reason, and fixed it.
Changed the selftest for add/remove of the eprobe to just add test
and remove it.
Moved the selftest that added a eprobe to a synthetic event into the trigger
tests.
Have the "testing duplicate" not test kprobes if kprobes are not configured
in.
Steven Rostedt (VMware) (5):
selftests/ftrace: Add clear_dynamic_events() to test cases
selftests/ftrace: Fix requirement check of README file
selftests/ftrace: Add test case to test adding and removing of event probe
selftests/ftrace: Add selftest for testing eprobe events on synthetic events
selftests/ftrace: Add selftest for testing duplicate eprobes and kprobes
Tzvetomir Stoyanov (VMware) (1):
tracing: Add a probe that attaches to trace events
----
include/linux/trace_events.h | 4 +
kernel/trace/Makefile | 1 +
kernel/trace/trace.c | 5 +-
kernel/trace/trace.h | 18 +
kernel/trace/trace_eprobe.c | 903 +++++++++++++++++++++
kernel/trace/trace_events_trigger.c | 14 +-
kernel/trace/trace_kprobe.c | 8 -
kernel/trace/trace_probe.c | 16 +-
kernel/trace/trace_probe.h | 6 +-
.../ftrace/test.d/dynevent/add_remove_eprobe.tc | 40 +
.../ftrace/test.d/dynevent/test_duplicates.tc | 38 +
tools/testing/selftests/ftrace/test.d/functions | 24 +-
.../inter-event/trigger-synthetic-eprobe.tc | 53 ++
13 files changed, 1116 insertions(+), 14 deletions(-)
create mode 100644 kernel/trace/trace_eprobe.c
create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc
create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/test_duplicates.tc
create mode 100644 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-eprobe.tc
Powered by blists - more mailing lists