public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Question] perf header: Why the HEADER_EVENT_DESC is needed?
@ 2012-07-21 11:11 Namhyung Kim
  2012-07-21 17:16 ` Stephane Eranian
  0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2012-07-21 11:11 UTC (permalink / raw)
  To: Stephane Eranian
  Cc: Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra, LKML

Hi Stephane,

I wonder why we need to save the event descriptions in the feature area
of file header. Since the perf_event_attr, its ids and the event name
are already saved in the header, it seems a duplicate work to do that.
For printing the information, we might reuse those info or evlist
directly IMHO.

Am I missing something?

Thanks,
Namhyung

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Question] perf header: Why the HEADER_EVENT_DESC is needed?
  2012-07-21 11:11 [Question] perf header: Why the HEADER_EVENT_DESC is needed? Namhyung Kim
@ 2012-07-21 17:16 ` Stephane Eranian
  0 siblings, 0 replies; 2+ messages in thread
From: Stephane Eranian @ 2012-07-21 17:16 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra, LKML

On Sat, Jul 21, 2012 at 1:11 PM, Namhyung Kim <namhyung@kernel.org> wrote:
> Hi Stephane,
>
> I wonder why we need to save the event descriptions in the feature area
> of file header. Since the perf_event_attr, its ids and the event name
> are already saved in the header, it seems a duplicate work to do that.
> For printing the information, we might reuse those info or evlist
> directly IMHO.
>
> Am I missing something?

Unfortunately, I think you are.

There event names are not saved in header.c except indirectly by write_cmdline.
But more importantly, event_desc makes it possible to connect an event name as
passed on the cmdline with the corresponding attr struct.

Furthermore, it is also present in pipe mode, with the patch I posted
months ago.

Finally, you cannot arbitrarily remove features like this. We do have
tools that do
rely on the presence of EVENT_DESC.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-21 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-21 11:11 [Question] perf header: Why the HEADER_EVENT_DESC is needed? Namhyung Kim
2012-07-21 17:16 ` Stephane Eranian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox