mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
0be083cee4
Sometimes it is useful to construct larger synthetic trace events. Increase 'SYNTH_FIELDS_MAX' (maximum number of fields in a synthetic event) from 32 to 64. Link: https://lkml.kernel.org/r/20210901135513.3087062-1-dedekind1@gmail.com Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Acked-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
41 lines
876 B
C
41 lines
876 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef __TRACE_SYNTH_H
|
|
#define __TRACE_SYNTH_H
|
|
|
|
#include "trace_dynevent.h"
|
|
|
|
#define SYNTH_SYSTEM "synthetic"
|
|
#define SYNTH_FIELDS_MAX 64
|
|
|
|
#define STR_VAR_LEN_MAX MAX_FILTER_STR_VAL /* must be multiple of sizeof(u64) */
|
|
|
|
struct synth_field {
|
|
char *type;
|
|
char *name;
|
|
size_t size;
|
|
unsigned int offset;
|
|
unsigned int field_pos;
|
|
bool is_signed;
|
|
bool is_string;
|
|
bool is_dynamic;
|
|
};
|
|
|
|
struct synth_event {
|
|
struct dyn_event devent;
|
|
int ref;
|
|
char *name;
|
|
struct synth_field **fields;
|
|
unsigned int n_fields;
|
|
struct synth_field **dynamic_fields;
|
|
unsigned int n_dynamic_fields;
|
|
unsigned int n_u64;
|
|
struct trace_event_class class;
|
|
struct trace_event_call call;
|
|
struct tracepoint *tp;
|
|
struct module *mod;
|
|
};
|
|
|
|
extern struct synth_event *find_synth_event(const char *name);
|
|
|
|
#endif /* __TRACE_SYNTH_H */
|