diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-04-26 01:15:15 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-02 14:17:58 -0400 |
commit | bea0340582dc47b447a014f5bf9f460925afdaf4 (patch) | |
tree | 0fe4a6fe7b287367b127ac7394086ff0c913588a /tools/perf/perf.h | |
parent | c651214e90e5c150015f7524a6bfc298ad61435f (diff) |
perf tools: Introduce struct perf_target
The perf_target struct will be used for taking care of cpu/thread maps
based on user's input. Since it is used on various subcommands it'd
better factoring it out.
Thanks to Arnaldo for suggesting the better name.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1335417327-11796-2-git-send-email-namhyung.kim@lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 15 |
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 | ||
208 | void pthread__unblock_sigwinch(void); | 208 | void pthread__unblock_sigwinch(void); |
209 | 209 | ||
210 | struct perf_record_opts { | 210 | struct 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 | |||
219 | struct 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 |