Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169472
b: refs/heads/master
c: 2774601
h: refs/heads/master
v: v3
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Oct 6, 2009
1 parent 81ebf26 commit 1b047b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26a50744b21fff65bd754874072857bee8967f4d
refs/heads/master: 2774601811bedd04ee7e38624343ea80b4a62d7e
4 changes: 3 additions & 1 deletion trunk/tools/perf/util/trace-event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2950,7 +2950,7 @@ int parse_ftrace_file(char *buf, unsigned long size)
return 0;
}

int parse_event_file(char *buf, unsigned long size, char *system__unused __unused)
int parse_event_file(char *buf, unsigned long size, char *sys)
{
struct event *event;
int ret;
Expand All @@ -2977,6 +2977,8 @@ int parse_event_file(char *buf, unsigned long size, char *system__unused __unuse
if (ret < 0)
die("failed to read event print fmt");

event->system = strdup(sys);

#define PRINT_ARGS 0
if (PRINT_ARGS && event->print_fmt.args)
print_args(event->print_fmt.args);
Expand Down
3 changes: 2 additions & 1 deletion trunk/tools/perf/util/trace-event.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ struct event {
int flags;
struct format format;
struct print_fmt print_fmt;
char *system;
};

enum {
Expand Down Expand Up @@ -167,7 +168,7 @@ void print_funcs(void);
void print_printk(void);

int parse_ftrace_file(char *buf, unsigned long size);
int parse_event_file(char *buf, unsigned long size, char *system);
int parse_event_file(char *buf, unsigned long size, char *sys);
void print_event(int cpu, void *data, int size, unsigned long long nsecs,
char *comm);

Expand Down

0 comments on commit 1b047b7

Please sign in to comment.