diff options
author | Dmitry Safonov <0x7f454c46@gmail.com> | 2024-08-24 00:04:58 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-27 23:11:27 +0200 |
commit | 586d87021f224b0434372f5b4418216e29b0a544 (patch) | |
tree | 4455fded839323f5a798e878cbd97118ab970191 /tools/perf/builtin-annotate.c | |
parent | selftests/net: Synchronize client/server before counters checks (diff) | |
download | linux-586d87021f224b0434372f5b4418216e29b0a544.tar.xz linux-586d87021f224b0434372f5b4418216e29b0a544.zip |
selftests/net: Add trace events matching to tcp_ao
Setup trace points, add a new ftrace instance in order to not interfere
with the rest of the system, filtering by net namespace cookies.
Raise a new background thread that parses trace_pipe, matches them with
the list of expected events.
Wiring up trace events to selftests provides another insight if there is
anything unexpected happining in the tcp-ao code (i.e. key rotation when
it's not expected).
Note: in real programs libtraceevent should be used instead of this
manual labor of setting ftrace up and parsing. I'm not using it here
as I don't want to have an .so library dependency that one would have to
bring into VM or DUT (Device Under Test). Please, don't copy it over
into any real world programs, that aren't tests.
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://patch.msgid.link/20240823-tcp-ao-selftests-upd-6-12-v4-8-05623636fe8c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions