diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/evsel.c | 5 | ||||
-rw-r--r-- | tools/perf/util/evsel.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 40626e5fc1c0..90f58cdd0fb0 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -681,6 +681,11 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts) | |||
681 | if (target__none(&opts->target) && perf_evsel__is_group_leader(evsel) && | 681 | if (target__none(&opts->target) && perf_evsel__is_group_leader(evsel) && |
682 | !opts->initial_delay) | 682 | !opts->initial_delay) |
683 | attr->enable_on_exec = 1; | 683 | attr->enable_on_exec = 1; |
684 | |||
685 | if (evsel->immediate) { | ||
686 | attr->disabled = 0; | ||
687 | attr->enable_on_exec = 0; | ||
688 | } | ||
684 | } | 689 | } |
685 | 690 | ||
686 | int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) | 691 | int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) |
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 8dfec05bcec2..d7f93ce0ebc1 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -84,6 +84,7 @@ struct perf_evsel { | |||
84 | bool supported; | 84 | bool supported; |
85 | bool needs_swap; | 85 | bool needs_swap; |
86 | bool no_aux_samples; | 86 | bool no_aux_samples; |
87 | bool immediate; | ||
87 | /* parse modifier helper */ | 88 | /* parse modifier helper */ |
88 | int exclude_GH; | 89 | int exclude_GH; |
89 | int nr_members; | 90 | int nr_members; |