mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-26 04:02:43 +07:00
perf evlist: Fix the class prefix for 'struct evlist' branch_type methods
To differentiate from libperf's 'struct perf_evlist' methods. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
8cedf3a5c1
commit
92c7d7cdf4
@ -410,8 +410,7 @@ static int report__setup_sample_type(struct report *rep)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ??? handle more cases than just ANY? */
|
/* ??? handle more cases than just ANY? */
|
||||||
if (!(perf_evlist__combined_branch_type(session->evlist) &
|
if (!(evlist__combined_branch_type(session->evlist) & PERF_SAMPLE_BRANCH_ANY))
|
||||||
PERF_SAMPLE_BRANCH_ANY))
|
|
||||||
rep->nonany_branch_mode = true;
|
rep->nonany_branch_mode = true;
|
||||||
|
|
||||||
#if !defined(HAVE_LIBUNWIND_SUPPORT) && !defined(HAVE_DWARF_SUPPORT)
|
#if !defined(HAVE_LIBUNWIND_SUPPORT) && !defined(HAVE_DWARF_SUPPORT)
|
||||||
|
@ -443,8 +443,7 @@ static int evsel__check_attr(struct evsel *evsel, struct perf_session *session)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (PRINT_FIELD(BRSTACKINSN) && !allow_user_set &&
|
if (PRINT_FIELD(BRSTACKINSN) && !allow_user_set &&
|
||||||
!(perf_evlist__combined_branch_type(session->evlist) &
|
!(evlist__combined_branch_type(session->evlist) & PERF_SAMPLE_BRANCH_ANY)) {
|
||||||
PERF_SAMPLE_BRANCH_ANY)) {
|
|
||||||
pr_err("Display of branch stack assembler requested, but non all-branch filter set\n"
|
pr_err("Display of branch stack assembler requested, but non all-branch filter set\n"
|
||||||
"Hint: run 'perf record -b ...'\n");
|
"Hint: run 'perf record -b ...'\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -1123,7 +1123,7 @@ u64 evlist__combined_sample_type(struct evlist *evlist)
|
|||||||
return __evlist__combined_sample_type(evlist);
|
return __evlist__combined_sample_type(evlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 perf_evlist__combined_branch_type(struct evlist *evlist)
|
u64 evlist__combined_branch_type(struct evlist *evlist)
|
||||||
{
|
{
|
||||||
struct evsel *evsel;
|
struct evsel *evsel;
|
||||||
u64 branch_type = 0;
|
u64 branch_type = 0;
|
||||||
|
@ -220,7 +220,7 @@ void perf_evlist__set_leader(struct evlist *evlist);
|
|||||||
|
|
||||||
u64 __evlist__combined_sample_type(struct evlist *evlist);
|
u64 __evlist__combined_sample_type(struct evlist *evlist);
|
||||||
u64 evlist__combined_sample_type(struct evlist *evlist);
|
u64 evlist__combined_sample_type(struct evlist *evlist);
|
||||||
u64 perf_evlist__combined_branch_type(struct evlist *evlist);
|
u64 evlist__combined_branch_type(struct evlist *evlist);
|
||||||
bool evlist__sample_id_all(struct evlist *evlist);
|
bool evlist__sample_id_all(struct evlist *evlist);
|
||||||
u16 perf_evlist__id_hdr_size(struct evlist *evlist);
|
u16 perf_evlist__id_hdr_size(struct evlist *evlist);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user