Re: [PATCH 1/3] perf tools: Add data object to handle perf data file
From: Jiri Olsa
Date: Wed Oct 16 2013 - 04:48:10 EST
On Wed, Oct 16, 2013 at 11:48:07AM +0900, Namhyung Kim wrote:
> Hi Jiri,
>
> On Tue, 15 Oct 2013 16:27:32 +0200, Jiri Olsa wrote:
> > This patch is adding 'struct perf_data_file' object as
> > a placeholder for all attributes regarding perf.data
> > file handling. Changing perf_session__new to take it
> > as an argument.
> >
> > The rest of the functionality will be added later to keep
> > this change simple enough, because all the places using
> > perf_session are changed now.
>
> All three look good.
thanks for review
>
> Btw, are you planning to support multiple per-cpu file record? As you
> know I suggested perf.data.dir approach in my perf-ftrace patchset (I'll
> resend a new version soonish) something like below. What do you think?
>
> perf.data.dir/
> |-- perf-cpu0.data
> |-- perf-cpu1.data
> |-- perf-cpu2.data
> `-- perf-cpu3.data
yep, my initial attempt is to store cpu related data
into separated files and do some post merge or provide
merge tool for that.
it's probably good idea to place them into
separate directory
>
> Maybe we could split sample data and other data (e.g. COMM, MMAP or some
> user data?) to another file(s).
you'd need to parse data stream for that
hum, or we could open that dummy event for auxiliary
events, and store them separately
thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/