perf stat: Move perf_stat_synthesize_config() to stat.c
So that it can be used globally. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20180830063252.23729-15-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
c2c247f2dd
commit
0a4e64d391
@@ -7,6 +7,7 @@
|
||||
#include "xyarray.h"
|
||||
#include "rblist.h"
|
||||
#include "perf.h"
|
||||
#include "event.h"
|
||||
|
||||
struct stats {
|
||||
double n, mean, M2;
|
||||
@@ -179,4 +180,9 @@ size_t perf_event__fprintf_stat_config(union perf_event *event, FILE *fp);
|
||||
int create_perf_stat_counter(struct perf_evsel *evsel,
|
||||
struct perf_stat_config *config,
|
||||
struct target *target);
|
||||
int perf_stat_synthesize_config(struct perf_stat_config *config,
|
||||
struct perf_tool *tool,
|
||||
struct perf_evlist *evlist,
|
||||
perf_event__handler_t process,
|
||||
bool attrs);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user