perf evsel: Rename perf_missing_features::bpf_event to ::bpf

No need for that _event suffix, do just like all the other meta events
and do away with that.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Link: https://lkml.kernel.org/n/tip-bvc83f380dva83wlg52yd10t@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3f604b5f
...@@ -1072,8 +1072,7 @@ void perf_evsel__config(struct evsel *evsel, struct record_opts *opts, ...@@ -1072,8 +1072,7 @@ void perf_evsel__config(struct evsel *evsel, struct record_opts *opts,
attr->mmap2 = track && !perf_missing_features.mmap2; attr->mmap2 = track && !perf_missing_features.mmap2;
attr->comm = track; attr->comm = track;
attr->ksymbol = track && !perf_missing_features.ksymbol; attr->ksymbol = track && !perf_missing_features.ksymbol;
attr->bpf_event = track && !opts->no_bpf_event && attr->bpf_event = track && !opts->no_bpf_event && !perf_missing_features.bpf;
!perf_missing_features.bpf_event;
if (opts->record_namespaces) if (opts->record_namespaces)
attr->namespaces = track; attr->namespaces = track;
...@@ -1803,7 +1802,7 @@ int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, ...@@ -1803,7 +1802,7 @@ int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
evsel->core.attr.read_format &= ~(PERF_FORMAT_GROUP|PERF_FORMAT_ID); evsel->core.attr.read_format &= ~(PERF_FORMAT_GROUP|PERF_FORMAT_ID);
if (perf_missing_features.ksymbol) if (perf_missing_features.ksymbol)
evsel->core.attr.ksymbol = 0; evsel->core.attr.ksymbol = 0;
if (perf_missing_features.bpf_event) if (perf_missing_features.bpf)
evsel->core.attr.bpf_event = 0; evsel->core.attr.bpf_event = 0;
retry_sample_id: retry_sample_id:
if (perf_missing_features.sample_id_all) if (perf_missing_features.sample_id_all)
...@@ -1920,8 +1919,8 @@ int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, ...@@ -1920,8 +1919,8 @@ int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
perf_missing_features.aux_output = true; perf_missing_features.aux_output = true;
pr_debug2("Kernel has no attr.aux_output support, bailing out\n"); pr_debug2("Kernel has no attr.aux_output support, bailing out\n");
goto out_close; goto out_close;
} else if (!perf_missing_features.bpf_event && evsel->core.attr.bpf_event) { } else if (!perf_missing_features.bpf && evsel->core.attr.bpf_event) {
perf_missing_features.bpf_event = true; perf_missing_features.bpf = true;
pr_debug2("switching off bpf_event\n"); pr_debug2("switching off bpf_event\n");
goto fallback_missing_features; goto fallback_missing_features;
} else if (!perf_missing_features.ksymbol && evsel->core.attr.ksymbol) { } else if (!perf_missing_features.ksymbol && evsel->core.attr.ksymbol) {
......
...@@ -194,7 +194,7 @@ struct perf_missing_features { ...@@ -194,7 +194,7 @@ struct perf_missing_features {
bool write_backward; bool write_backward;
bool group_read; bool group_read;
bool ksymbol; bool ksymbol;
bool bpf_event; bool bpf;
bool aux_output; bool aux_output;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment