lkml.org 
[lkml]   [2009]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3 -tip] perf_counter tools: Add support to set of multiple events in one shot
From
Date
On Mon, 2009-06-29 at 05:57 +0200, Ingo Molnar wrote:

> The above patterns i suggested _already cover_ 'multiple events'.
>
> We might define further aliases like:
>
> all := "*"
> all-sw := "sw-*"
>
> but it should all be in terms of patterns and regular expressions,
> not via some hardcoded special-case thing as your posted patches
> did.
>

It seems to me very confusing and needs lot of book-keeping and need to
rewrite whole tools/perf/util/parse-events.c because :

* means all perf_event_types :
PERF_TYPE_HARDWARE,
PERF_TYPE_SOFTWARE,
PERF_TYPE_TRACEPOINT,
PERF_TYPE_HW_CACHE,
PERF_TYPE_RAW

hw-* means all hardware events :
PERF_TYPE_HARDWARE,
PERF_TYPE_HW_CACHE,
PERF_TYPE_RAW

sw-* means all software events :
PERF_TYPE_SOFTWARE,
PERF_TYPE_TRACEPOINT

*cache* means all cache based events :
PERF_COUNT_CACHE_REFERENCES, /* Generalized H/W */
PERF_COUNT_CACHE_MISSES, /* Generalized H/W */
PERF_TYPE_HW_CACHE, /* Generalized Cache */

*write* means all write based events :
(L1D, WRITE, ACCESS),
(L1D, WRITE, MISS),
(LL, WRITE, ACCESS),
(LL, WRITE, MISS),
(DTLB, WRITE, ACCESS),
(DTLB, WRITE, MISS)

Please let me know why it looks complex to me, is it really complex or I am going in wrong direction.

Thanks,

--
JSR




\
 
 \ /
  Last update: 2009-06-30 10:41    [W:0.059 / U:1.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site