Add 'ctf_unused' tracepoint field type
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 31 Mar 2021 21:52:30 +0000 (17:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 1 Apr 2021 15:18:19 +0000 (11:18 -0400)
commit5152f6df156d6ccb234965d1b3d26b167bd6b94e
tree4c1dd2aab22d2ee394ed05e7837e4fddb0ca3c23
parent2208d8b5689264e35ed0a660d8c3c82021cc0367
Add 'ctf_unused' tracepoint field type

Some tracepoint definitions have one or more arguments that don't have a
corresponding field to allow passing a value to a probe without
recording it in the trace buffer nor using it in the filter.

This results in tracepoint macros generating inline functions with unused
arguments which prevents us from turning on -Wunuse-parameter.

Add a new tracepoint field type name 'ctf_unused' to adress this and
properly handle unused values in the tracepoint macros.

[ Mathieu: ctf_unused() takes only the _src parameter, no "type",
  because an unused "field" does not have any representation in the ring
  buffer nor the filter. If this ends up limiting us in the future, I
  accept all the blame. ]

Change-Id: I56d8024926340e9c965ca01fa24a0fff7b7c5baa
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 files changed:
include/lttng/tp/lttng-ust-tracef.h
include/lttng/tp/lttng-ust-tracelog.h
include/lttng/ust-tracepoint-event-nowrite.h
include/lttng/ust-tracepoint-event-reset.h
include/lttng/ust-tracepoint-event-write.h
include/lttng/ust-tracepoint-event.h
liblttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.h
liblttng-ust-dl/ust_dl.h
liblttng-ust-libc-wrapper/ust_libc.h
liblttng-ust-libc-wrapper/ust_pthread.h
liblttng-ust/lttng-ust-statedump-provider.h
liblttng-ust/ust_lib.h
This page took 0.026303 seconds and 4 git commands to generate.