tools lib traceevent, perf tools: Rename struct pevent to struct tep_handle
In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_" and not "pevent_". This changes the struct pevent to struct tep_handle. Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Yordan Karadzhov (VMware) <y.karadz@gmail.com> Cc: linux-trace-devel@vger.kernel.org Link: http://lkml.kernel.org/r/20180808180659.706175783@goodmis.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
354b064b8e
commit
096177a8b5
@@ -13,7 +13,7 @@ struct thread;
|
||||
struct plugin_list;
|
||||
|
||||
struct trace_event {
|
||||
struct pevent *pevent;
|
||||
struct tep_handle *pevent;
|
||||
struct plugin_list *plugin_list;
|
||||
};
|
||||
|
||||
@@ -34,20 +34,20 @@ void event_format__fprintf(struct event_format *event,
|
||||
void event_format__print(struct event_format *event,
|
||||
int cpu, void *data, int size);
|
||||
|
||||
int parse_ftrace_file(struct pevent *pevent, char *buf, unsigned long size);
|
||||
int parse_event_file(struct pevent *pevent,
|
||||
int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size);
|
||||
int parse_event_file(struct tep_handle *pevent,
|
||||
char *buf, unsigned long size, char *sys);
|
||||
|
||||
unsigned long long
|
||||
raw_field_value(struct event_format *event, const char *name, void *data);
|
||||
|
||||
void parse_proc_kallsyms(struct pevent *pevent, char *file, unsigned int size);
|
||||
void parse_ftrace_printk(struct pevent *pevent, char *file, unsigned int size);
|
||||
void parse_saved_cmdline(struct pevent *pevent, char *file, unsigned int size);
|
||||
void parse_proc_kallsyms(struct tep_handle *pevent, char *file, unsigned int size);
|
||||
void parse_ftrace_printk(struct tep_handle *pevent, char *file, unsigned int size);
|
||||
void parse_saved_cmdline(struct tep_handle *pevent, char *file, unsigned int size);
|
||||
|
||||
ssize_t trace_report(int fd, struct trace_event *tevent, bool repipe);
|
||||
|
||||
struct event_format *trace_find_next_event(struct pevent *pevent,
|
||||
struct event_format *trace_find_next_event(struct tep_handle *pevent,
|
||||
struct event_format *event);
|
||||
unsigned long long read_size(struct event_format *event, void *ptr, int size);
|
||||
unsigned long long eval_flag(const char *flag);
|
||||
@@ -83,7 +83,7 @@ struct scripting_ops {
|
||||
void (*process_stat)(struct perf_stat_config *config,
|
||||
struct perf_evsel *evsel, u64 tstamp);
|
||||
void (*process_stat_interval)(u64 tstamp);
|
||||
int (*generate_script) (struct pevent *pevent, const char *outfile);
|
||||
int (*generate_script) (struct tep_handle *pevent, const char *outfile);
|
||||
};
|
||||
|
||||
extern unsigned int scripting_max_stack;
|
||||
@@ -94,7 +94,7 @@ void setup_perl_scripting(void);
|
||||
void setup_python_scripting(void);
|
||||
|
||||
struct scripting_context {
|
||||
struct pevent *pevent;
|
||||
struct tep_handle *pevent;
|
||||
void *event_data;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user