Skip to content

Commit

Permalink
perf stat: Fixup __perf_stat_evsel__is() prefix
Browse files Browse the repository at this point in the history
This is a perf_stat_evsel method, so should have that as its prefix,
previously it was swapped as __perf_evsel_stat__is().

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed Mar 9, 2021
1 parent 297e69b commit 9052034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tools/perf/util/stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ double rel_stddev_stats(double stddev, double avg)
return pct;
}

bool __perf_evsel_stat__is(struct evsel *evsel,
enum perf_stat_evsel_id id)
bool __perf_stat_evsel__is(struct evsel *evsel, enum perf_stat_evsel_id id)
{
struct perf_stat_evsel *ps = evsel->stats;

Expand Down
5 changes: 2 additions & 3 deletions tools/perf/util/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ struct perf_aggr_thread_value {
u64 ena;
};

bool __perf_evsel_stat__is(struct evsel *evsel,
enum perf_stat_evsel_id id);
bool __perf_stat_evsel__is(struct evsel *evsel, enum perf_stat_evsel_id id);

#define perf_stat_evsel__is(evsel, id) \
__perf_evsel_stat__is(evsel, PERF_STAT_EVSEL_ID__ ## id)
__perf_stat_evsel__is(evsel, PERF_STAT_EVSEL_ID__ ## id)

extern struct runtime_stat rt_stat;
extern struct stats walltime_nsecs_stats;
Expand Down

0 comments on commit 9052034

Please sign in to comment.