Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1189744
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 02/47] perf stat: Introduce struct perf_stat_config |
| Date | 2015-07-22 10:40 +0200 |
| Message-ID | <pOXJg-1yo-11@gated-at.bofh.it> (permalink) |
| References | <pOEZX-8q0-3@gated-at.bofh.it> <pOF9E-9M-19@gated-at.bofh.it> <pOJwB-6vp-7@gated-at.bofh.it> <pOJGi-6Gx-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jul 21, 2015 at 02:37:26PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 21, 2015 at 02:24:19PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Jul 21, 2015 at 02:31:22PM +0200, Jiri Olsa escreveu: > > > Moving aggr_mode into new struct. The point is to centralize > > > the base stat config so it could be used localy together with > > > other stat routines in other parts of perf code. > > > > Why not use 'struct perf_stat' for that? It is already there and is > > supposed to hold the stat tool internal state. Yeah, lots of those > > globals should go there as well, just like we have the 'perf_sched', > > 'perf_top', 'perf_script',y etc structs. hm, but it's used as perf_evsel priv data.. the 'struct perf_stat_config' is coupled with the same event, we could switch the name for: 'struct perf_stat' -> 'struct perf_evsel_stat' 'struct perf_stat_cmd' -> 'struct perf_stat' and move 'struct perf_stat_record' under 'struct perf_stat' ;-) > > Erm, saw some more patches, this stuff gets marshalled into perf.data, > continuing to read... Probably you made this somehow extensible... yep, I'm storing it in 'tag-value' way, it's mentioned in the changelog jirka -- 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 | Find similar | Unroll thread
Re: [PATCH 02/47] perf stat: Introduce struct perf_stat_config Jiri Olsa <jolsa@redhat.com> - 2015-07-22 10:40 +0200
csiph-web