Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1302502
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 6/8] perf script: Display stat events by default |
| Date | 2016-01-06 10:40 +0100 |
| Message-ID | <qNSJs-7HI-5@gated-at.bofh.it> (permalink) |
| References | <qNHbk-8sH-11@gated-at.bofh.it> <qNHbl-8sH-31@gated-at.bofh.it> <qNIAq-Oy-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jan 05, 2016 at 07:49:27PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > [acme@zoo linux]$ > [acme@zoo linux]$ perf script > CPU THREAD VAL ENA RUN TIME EVENT > 65535 4883 356474 356474 356474 690200 task-clock > 65535 4883 1 356474 356474 690200 context-switches > 65535 4883 0 356474 356474 690200 cpu-migrations > 65535 4883 54 356474 356474 690200 page-faults > 65535 4883 1044123 360329 360329 690200 cycles > 65535 4883 716911 360329 360329 690200 stalled-cycles-frontend > 65535 4883 0 0 0 690200 stalled-cycles-backend > 65535 4883 694609 360329 360329 690200 instructions > 65535 4883 140037 360329 360329 690200 branches > 65535 4883 7920 360329 360329 690200 branch-misses > [acme@zoo linux]$ there's wrong conversion from u16 (-1) cpu data to int cpu_map->map[0] attached patch fixes that for me, not sure why I did not see that before.. I'll send new version shortly thanks, jirka --- diff --git a/tools/perf/util/cpumap.c b/tools/perf/util/cpumap.c index a0717b93d8f5..581aec244ac1 100644 --- a/tools/perf/util/cpumap.c +++ b/tools/perf/util/cpumap.c @@ -189,7 +189,7 @@ static struct cpu_map *cpu_map__from_entries(struct cpu_map_entries *cpus) unsigned i; for (i = 0; i < cpus->nr; i++) - map->map[i] = (int)cpus->cpu[i]; + map->map[i] = (int)(s16)cpus->cpu[i]; } return map; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv8 0/8] perf stat: Add scripting support Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
[PATCH 5/8] perf script: Add stat default handlers Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
[tip:perf/core] perf script: Add stat default handlers tip-bot for Jiri Olsa <tipbot@zytor.com> - 2016-01-09 17:40 +0100
[PATCH 1/8] perf stat record: Keep sample_type 0 for pipe session Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
[tip:perf/core] perf stat record: Keep sample_type 0 for pipe session tip-bot for Jiri Olsa <tipbot@zytor.com> - 2016-01-09 17:30 +0100
[PATCH 8/8] perf script: Add stat-cpi.py script Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
Re: [PATCH 8/8] perf script: Add stat-cpi.py script Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-06 00:00 +0100
[PATCH 6/8] perf script: Display stat events by default Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
Re: [PATCH 6/8] perf script: Display stat events by default Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-05 23:50 +0100
Re: [PATCH 6/8] perf script: Display stat events by default Jiri Olsa <jolsa@redhat.com> - 2016-01-06 10:40 +0100
[PATCH 2/8] perf script: Process cpu/threads maps Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
[tip:perf/core] perf script: Process cpu/threads maps tip-bot for Jiri Olsa <tipbot@zytor.com> - 2016-01-09 17:30 +0100
[PATCH 4/8] perf script: Add process_stat/process_stat_interval scripting interface Jiri Olsa <jolsa@kernel.org> - 2016-01-05 22:20 +0100
[tip:perf/core] perf script: Add process_stat/ process_stat_interval scripting interface tip-bot for Jiri Olsa <tipbot@zytor.com> - 2016-01-09 17:40 +0100
Re: [PATCHv8 0/8] perf stat: Add scripting support Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-05 23:40 +0100
Re: [PATCHv8 0/8] perf stat: Add scripting support Jiri Olsa <jolsa@redhat.com> - 2016-01-06 10:10 +0100
csiph-web