diff options
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 64f8bee31ce..f0227e93665 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -167,7 +167,6 @@ sys_perf_event_open(struct perf_event_attr *attr, | |||
167 | pid_t pid, int cpu, int group_fd, | 167 | pid_t pid, int cpu, int group_fd, |
168 | unsigned long flags) | 168 | unsigned long flags) |
169 | { | 169 | { |
170 | attr->size = sizeof(*attr); | ||
171 | return syscall(__NR_perf_event_open, attr, pid, cpu, | 170 | return syscall(__NR_perf_event_open, attr, pid, cpu, |
172 | group_fd, flags); | 171 | group_fd, flags); |
173 | } | 172 | } |
@@ -186,8 +185,9 @@ extern const char perf_version_string[]; | |||
186 | void pthread__unblock_sigwinch(void); | 185 | void pthread__unblock_sigwinch(void); |
187 | 186 | ||
188 | struct perf_record_opts { | 187 | struct perf_record_opts { |
189 | pid_t target_pid; | 188 | const char *target_pid; |
190 | pid_t target_tid; | 189 | const char *target_tid; |
190 | uid_t uid; | ||
191 | bool call_graph; | 191 | bool call_graph; |
192 | bool group; | 192 | bool group; |
193 | bool inherit_stat; | 193 | bool inherit_stat; |
@@ -198,7 +198,8 @@ struct perf_record_opts { | |||
198 | bool raw_samples; | 198 | bool raw_samples; |
199 | bool sample_address; | 199 | bool sample_address; |
200 | bool sample_time; | 200 | bool sample_time; |
201 | bool sample_id_all_avail; | 201 | bool sample_id_all_missing; |
202 | bool exclude_guest_missing; | ||
202 | bool system_wide; | 203 | bool system_wide; |
203 | bool period; | 204 | bool period; |
204 | unsigned int freq; | 205 | unsigned int freq; |