Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600557 > unrolled thread
| Started by | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| First post | 2017-03-14 16:10 +0100 |
| Last post | 2017-03-14 16:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 01/13] perf, tools, stat: Factor out callback for collecting event values Jiri Olsa <jolsa@redhat.com> - 2017-03-14 16:10 +0100
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2017-03-14 16:10 +0100 |
| Subject | Re: [PATCH 01/13] perf, tools, stat: Factor out callback for collecting event values |
| Message-ID | <tkWfh-1T2-43@gated-at.bofh.it> |
On Fri, Mar 10, 2017 at 01:24:34PM -0800, Andi Kleen wrote:
SNIP
> +
> +struct aggr_data {
> + u64 ena, run, val;
> + int id;
> + int nr;
> + int cpu;
> +};
> +
> +static void aggr_cb(struct perf_evsel *counter, void *data, bool first)
> +{
> + struct aggr_data *ad = data;
> + int cpu, s2;
> +
> + for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
> + struct perf_counts_values *counts;
> +
> + s2 = aggr_get_id(evsel_list->cpus, cpu);
why do use evsel_list instead of perf_evsel__cpus(counter),
which is in the original/removed code?
this patch is about adding collect_data.. if you want to
choose this part, please make it clear in separate patch
thanks,
jirka
Back to top | Article view | linux.kernel
csiph-web