diff options
Diffstat (limited to 'tools/perf/util/target.h')
-rw-r--r-- | tools/perf/util/target.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/target.h b/tools/perf/util/target.h index 446aa7a56f25..6ef01a83b24e 100644 --- a/tools/perf/util/target.h +++ b/tools/perf/util/target.h | |||
@@ -64,6 +64,11 @@ static inline bool target__none(struct target *target) | |||
64 | return !target__has_task(target) && !target__has_cpu(target); | 64 | return !target__has_task(target) && !target__has_cpu(target); |
65 | } | 65 | } |
66 | 66 | ||
67 | static inline bool target__has_per_thread(struct target *target) | ||
68 | { | ||
69 | return target->system_wide && target->per_thread; | ||
70 | } | ||
71 | |||
67 | static inline bool target__uses_dummy_map(struct target *target) | 72 | static inline bool target__uses_dummy_map(struct target *target) |
68 | { | 73 | { |
69 | bool use_dummy = false; | 74 | bool use_dummy = false; |
@@ -73,6 +78,8 @@ static inline bool target__uses_dummy_map(struct target *target) | |||
73 | else if (target__has_task(target) || | 78 | else if (target__has_task(target) || |
74 | (!target__has_cpu(target) && !target->uses_mmap)) | 79 | (!target__has_cpu(target) && !target->uses_mmap)) |
75 | use_dummy = true; | 80 | use_dummy = true; |
81 | else if (target__has_per_thread(target)) | ||
82 | use_dummy = true; | ||
76 | 83 | ||
77 | return use_dummy; | 84 | return use_dummy; |
78 | } | 85 | } |