aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-perl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c
index d50658b7d9e0..4c1b3d72a1d2 100644
--- a/tools/perf/util/scripting-engines/trace-event-perl.c
+++ b/tools/perf/util/scripting-engines/trace-event-perl.c
@@ -56,7 +56,7 @@ INTERP my_perl;
56#define FTRACE_MAX_EVENT \ 56#define FTRACE_MAX_EVENT \
57 ((1 << (sizeof(unsigned short) * 8)) - 1) 57 ((1 << (sizeof(unsigned short) * 8)) - 1)
58 58
59struct event *events[FTRACE_MAX_EVENT]; 59struct event_format *events[FTRACE_MAX_EVENT];
60 60
61extern struct scripting_context *scripting_context; 61extern struct scripting_context *scripting_context;
62 62
@@ -181,7 +181,7 @@ static void define_flag_field(const char *ev_name,
181 LEAVE; 181 LEAVE;
182} 182}
183 183
184static void define_event_symbols(struct event *event, 184static void define_event_symbols(struct event_format *event,
185 const char *ev_name, 185 const char *ev_name,
186 struct print_arg *args) 186 struct print_arg *args)
187{ 187{
@@ -233,10 +233,10 @@ static void define_event_symbols(struct event *event,
233 define_event_symbols(event, ev_name, args->next); 233 define_event_symbols(event, ev_name, args->next);
234} 234}
235 235
236static inline struct event *find_cache_event(int type) 236static inline struct event_format *find_cache_event(int type)
237{ 237{
238 static char ev_name[256]; 238 static char ev_name[256];
239 struct event *event; 239 struct event_format *event;
240 240
241 if (events[type]) 241 if (events[type])
242 return events[type]; 242 return events[type];
@@ -262,7 +262,7 @@ static void perl_process_tracepoint(union perf_event *pevent __unused,
262 static char handler[256]; 262 static char handler[256];
263 unsigned long long val; 263 unsigned long long val;
264 unsigned long s, ns; 264 unsigned long s, ns;
265 struct event *event; 265 struct event_format *event;
266 int type; 266 int type;
267 int pid; 267 int pid;
268 int cpu = sample->cpu; 268 int cpu = sample->cpu;
@@ -450,7 +450,7 @@ static int perl_stop_script(void)
450 450
451static int perl_generate_script(const char *outfile) 451static int perl_generate_script(const char *outfile)
452{ 452{
453 struct event *event = NULL; 453 struct event_format *event = NULL;
454 struct format_field *f; 454 struct format_field *f;
455 char fname[PATH_MAX]; 455 char fname[PATH_MAX];
456 int not_first, count; 456 int not_first, count;