Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191241
b: refs/heads/master
c: 5710fca
h: refs/heads/master
i:
  191239: ea5af31
v: v3
  • Loading branch information
Stephane Eranian authored and Frederic Weisbecker committed Apr 24, 2010
1 parent 7df4449 commit fbe9425
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: e4cef1f65061429c3e8b356233e87dc6653a9da5
refs/heads/master: 5710fcad7c367adefe5634dc998f1f88780a8457
13 changes: 7 additions & 6 deletions trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,6 @@ parse_single_tracepoint_event(char *sys_name,
u64 id;
int fd;

attr->sample_type |= PERF_SAMPLE_RAW;
attr->sample_type |= PERF_SAMPLE_TIME;
attr->sample_type |= PERF_SAMPLE_CPU;

attr->sample_period = 1;

snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path,
sys_name, evt_name);

Expand All @@ -442,6 +436,13 @@ parse_single_tracepoint_event(char *sys_name,
attr->type = PERF_TYPE_TRACEPOINT;
*strp = evt_name + evt_length;

attr->sample_type |= PERF_SAMPLE_RAW;
attr->sample_type |= PERF_SAMPLE_TIME;
attr->sample_type |= PERF_SAMPLE_CPU;

attr->sample_period = 1;


return EVT_HANDLED;
}

Expand Down

0 comments on commit fbe9425

Please sign in to comment.