perf evsel: Move ignore_missing_thread() to fallback code
[linux-2.6-microblaze.git] / tools / perf / util / evsel.h
index 8038309..b749bee 100644 (file)
@@ -150,6 +150,7 @@ struct evsel {
                struct bperf_leader_bpf *leader_skel;
                struct bperf_follower_bpf *follower_skel;
        };
+       unsigned long           open_flags;
 };
 
 struct perf_missing_features {
@@ -286,6 +287,17 @@ int evsel__open_per_thread(struct evsel *evsel, struct perf_thread_map *threads)
 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
                struct perf_thread_map *threads);
 void evsel__close(struct evsel *evsel);
+int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus,
+               struct perf_thread_map *threads);
+bool evsel__detect_missing_features(struct evsel *evsel);
+
+enum rlimit_action { NO_CHANGE, SET_TO_MAX, INCREASED_MAX };
+bool evsel__increase_rlimit(enum rlimit_action *set_rlimit);
+
+bool evsel__ignore_missing_thread(struct evsel *evsel,
+                                 int nr_cpus, int cpu,
+                                 struct perf_thread_map *threads,
+                                 int thread, int err);
 
 struct perf_sample;