Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288666
b: refs/heads/master
c: 7e1ccd3
h: refs/heads/master
v: v3
  • Loading branch information
Stephane Eranian authored and Arnaldo Carvalho de Melo committed Feb 14, 2012
1 parent 1b88c7f commit 2e2f117
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 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: f1c67db7e351bf9fd328e368ba045cbeca11d513
refs/heads/master: 7e1ccd3804281fc0755eb726b654469c40a96d89
1 change: 0 additions & 1 deletion trunk/tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ sys_perf_event_open(struct perf_event_attr *attr,
pid_t pid, int cpu, int group_fd,
unsigned long flags)
{
attr->size = sizeof(*attr);
return syscall(__NR_perf_event_open, attr, pid, cpu,
group_fd, flags);
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/tools/perf/util/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ void event_attr_init(struct perf_event_attr *attr)
attr->exclude_host = 1;
if (!perf_guest)
attr->exclude_guest = 1;
/* to capture ABI version */
attr->size = sizeof(*attr);
}

int mkdir_p(char *path, mode_t mode)
Expand Down

0 comments on commit 2e2f117

Please sign in to comment.