perf stat: Separate bperf from bpf_profiler
[linux-2.6-microblaze.git] / tools / perf / util / evsel.h
index 35805dc..d575390 100644 (file)
@@ -269,6 +269,11 @@ static inline bool evsel__is_bpf(struct evsel *evsel)
        return evsel->bpf_counter_ops != NULL;
 }
 
+static inline bool evsel__is_bperf(struct evsel *evsel)
+{
+       return evsel->bpf_counter_ops != NULL && list_empty(&evsel->bpf_counter_list);
+}
+
 #define EVSEL__MAX_ALIASES 8
 
 extern const char *const evsel__hw_cache[PERF_COUNT_HW_CACHE_MAX][EVSEL__MAX_ALIASES];