aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r--tools/perf/perf.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 89e3355ab173..7e226c0e0e31 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -207,10 +207,17 @@ extern const char perf_version_string[];
207 207
208void pthread__unblock_sigwinch(void); 208void pthread__unblock_sigwinch(void);
209 209
210struct perf_record_opts { 210struct perf_target {
211 const char *target_pid; 211 const char *pid;
212 const char *target_tid; 212 const char *tid;
213 const char *cpu_list;
214 const char *uid_str;
213 uid_t uid; 215 uid_t uid;
216 bool system_wide;
217};
218
219struct perf_record_opts {
220 struct perf_target target;
214 bool call_graph; 221 bool call_graph;
215 bool group; 222 bool group;
216 bool inherit_stat; 223 bool inherit_stat;
@@ -223,7 +230,6 @@ struct perf_record_opts {
223 bool sample_time; 230 bool sample_time;
224 bool sample_id_all_missing; 231 bool sample_id_all_missing;
225 bool exclude_guest_missing; 232 bool exclude_guest_missing;
226 bool system_wide;
227 bool period; 233 bool period;
228 unsigned int freq; 234 unsigned int freq;
229 unsigned int mmap_pages; 235 unsigned int mmap_pages;
@@ -231,7 +237,6 @@ struct perf_record_opts {
231 int branch_stack; 237 int branch_stack;
232 u64 default_interval; 238 u64 default_interval;
233 u64 user_interval; 239 u64 user_interval;
234 const char *cpu_list;
235}; 240};
236 241
237#endif 242#endif