Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1654657
| From | Jeremy Linton <jeremy.linton@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 10/12] tracing: Update sample file to describe the new macro |
| Date | 2017-06-01 00:00 +0200 |
| Message-ID | <tNjOO-28K-29@gated-at.bofh.it> (permalink) |
| References | <tNjON-28K-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add a blurb in the trace sample file to describe the macro used to add sizeof to value conversions. Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> --- samples/trace_events/trace-events-sample.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h index 76a75ab..82e1e66 100644 --- a/samples/trace_events/trace-events-sample.h +++ b/samples/trace_events/trace-events-sample.h @@ -225,6 +225,13 @@ TRACE_DEFINE_ENUM(TRACE_SAMPLE_FOO); TRACE_DEFINE_ENUM(TRACE_SAMPLE_BAR); TRACE_DEFINE_ENUM(TRACE_SAMPLE_ZOO); +/* + * The same problem as above applies to sizeof(), so there is also + * a macro to solve that problem. + */ + +TRACE_DEFINE_SIZEOF(pteval_t); + TRACE_EVENT(foo_bar, TP_PROTO(const char *foo, int bar, const int *lst, -- 2.9.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 10/12] tracing: Update sample file to describe the new macro Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200
csiph-web