Re: [PATCH 05/61] perf tools: Introduce c2c_decode_stats function

From: Jiri Olsa
Date: Wed Sep 21 2016 - 05:18:39 EST


On Wed, Sep 21, 2016 at 09:08:40AM +0000, Stanislav Ievlev wrote:
> Hi, Jiri!
>
> Why are you not using unsigned integer for counters in c2c_stats structure?

hi,
never really thought of that, because that's one of the original
patches I could take almost untouched.. so no real reason ;-)

jirka

>
> On Mon, Sep 19, 2016 at 4:27 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> > Introducing c2c_decode_stats function, which decodes
> > data_src data into new struct c2c_stats.
> >
> > +struct c2c_stats {
> > + int nr_entries;
> > +
> > + int locks; /* count of 'lock' transactions */
> > + int store; /* count of all stores in trace */
> > + int st_uncache; /* stores to uncacheable address */
> > + int st_noadrs; /* cacheable store with no address */
> > + int st_l1hit; /* count of stores that hit L1D */
> > + int st_l1miss; /* count of stores that miss L1D */
> > + int load; /* count of all loads in trace */
> > + int ld_excl; /* exclusive loads, rmt/lcl DRAM -
> > snp none/miss */
> > + int ld_shared; /* shared loads, rmt/lcl DRAM - snp
> > hit */
> > + int ld_uncache; /* loads to uncacheable address */
> > + int ld_io; /* loads to io address */
> > + int ld_miss; /* loads miss */
> > + int ld_noadrs; /* cacheable load with no address */
> > + int ld_fbhit; /* count of loads hitting Fill Buffer
> > */
> > + int ld_l1hit; /* count of loads that hit L1D */
> > + int ld_l2hit; /* count of loads that hit L2D */
> > + int ld_llchit; /* count of loads that hit LLC */
> > + int lcl_hitm; /* count of loads with local HITM */
> > + int rmt_hitm; /* count of loads with remote HITM */
> > + int rmt_hit; /* count of loads with remote hit
> > clean; */
> > + int lcl_dram; /* count of loads miss to local DRAM
> > */
> > + int rmt_dram; /* count of loads miss to remote DRAM
> > */
> > + int nomap; /* count of load/stores with no phys
> > adrs */
> > + int noparse; /* count of unparsable data sources */
> > +};
> >
> >