Skip to content

tracing/user_events: Fix struct arg size match check

Beau Belgrave linux-trace-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing/user_events: Fix struct arg size match checkkernel/trace/trace_events_user.c+3 -00 replies
2/2selftests/user_events: Test struct size match casestools/testing/selftests/user_events/dyn_test.c+12 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] tracing/user_events: Fix struct arg size match check

The edge case of struct fields having an extra size argument got missed when checking if events have the same name and arguments. This lead to events not being able to register if a matching event name was already created with a struct argument.

This series simply fixes this and adds a self test to ensure we do not miss it again.

Beau Belgrave (2):
tracing/user_events: Fix struct arg size match check selftests/user_events: Test struct size match cases

 kernel/trace/trace_events_user.c               |  3 +++
 tools/testing/selftests/user_events/dyn_test.c | 12 ++++++++++++
 2 files changed, 15 insertions(+)

base-commit: 6995e2de6891c724bfeb2db33d7b87775f913ad1

Signature · 1 line
2.34.1