Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf stat: Remove perf_evsel__read_cb function

It's no longer used, the stat command uses perf_evsel__read now.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1435310967-14570-19-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
d8ee3b54 7ddb1b6b

-23
-16
tools/perf/util/evsel.c
··· 939 939 *pscaled = scaled; 940 940 } 941 941 942 - int perf_evsel__read_cb(struct perf_evsel *evsel, int cpu, int thread, 943 - perf_evsel__read_cb_t cb) 944 - { 945 - struct perf_counts_values count; 946 - 947 - memset(&count, 0, sizeof(count)); 948 - 949 - if (FD(evsel, cpu, thread) < 0) 950 - return -EINVAL; 951 - 952 - if (readn(FD(evsel, cpu, thread), &count, sizeof(count)) < 0) 953 - return -errno; 954 - 955 - return cb(evsel, cpu, thread, &count); 956 - } 957 - 958 942 int perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread, 959 943 struct perf_counts_values *count) 960 944 {
-7
tools/perf/util/evsel.h
··· 229 229 (a)->attr.type == (b)->attr.type && \ 230 230 (a)->attr.config == (b)->attr.config) 231 231 232 - typedef int (perf_evsel__read_cb_t)(struct perf_evsel *evsel, 233 - int cpu, int thread, 234 - struct perf_counts_values *count); 235 - 236 - int perf_evsel__read_cb(struct perf_evsel *evsel, int cpu, int thread, 237 - perf_evsel__read_cb_t cb); 238 - 239 232 int perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread, 240 233 struct perf_counts_values *count); 241 234