[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140218134944.GB2350@infradead.org>
Date: Tue, 18 Feb 2014 10:49:44 -0300
From: Arnaldo Carvalho de Melo <acme@...stprotocols.net>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Don Zickus <dzickus@...hat.com>,
LKML <linux-kernel@...r.kernel.org>, jmario@...hat.com,
fowles@...each.com, eranian@...gle.com,
David Ahern <dsahern@...il.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Mike Galbraith <efault@....de>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <peterz@...radead.org>,
Richard Fowles <rfowles@...hat.com>
Subject: Re: [PATCH 02/21] perf c2c: Dump raw records, decode data_src bits
Em Tue, Feb 18, 2014 at 01:53:35PM +0100, Jiri Olsa escreveu:
> On Mon, Feb 10, 2014 at 12:28:57PM -0500, Don Zickus wrote:
> > From: Arnaldo Carvalho de Melo <acme@...hat.com>
<SNIP>
> > +static int perf_c2c__process_load_store(struct perf_c2c *c2c,
> > + struct perf_sample *sample,
> > + struct addr_location *al)
> > +{
> > + if (c2c->raw_records)
> > + perf_sample__fprintf(sample, ' ', "raw input", al, stdout);
> > +
> > return 0;
> > }
> > static const struct perf_evsel_str_handler handlers[] = {
> > - { "cpu/mem-loads,ldlat=30/pp", perf_c2c__process_load, },
> > - { "cpu/mem-stores/pp", perf_c2c__process_store, },
> > + { "cpu/mem-loads,ldlat=30/pp", perf_c2c__process_load_store, },
> > + { "cpu/mem-stores/pp", perf_c2c__process_load_store, },
> hm.. so it's only one function for both handlers.. no need
> to use handlers at all then, right?
This was just an skeleton from where to continue, so no, the idea isn't
to have just one function for both.
- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists