[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1279797100.20942.81.camel@minggr.sh.intel.com>
Date: Thu, 22 Jul 2010 19:11:40 +0800
From: Lin Ming <ming.m.lin@...el.com>
To: Ingo Molnar <mingo@...e.hu>, Dave Airlie <airlied@...hat.com>,
Reinette Chatre <reinette.chatre@...el.com>,
Jens Axboe <jaxboe@...ionio.com>, Avi Kivity <avi@...hat.com>,
"James E.J. Bottomley" <James.Bottomley@...e.de>,
Johannes Berg <johannes@...solutions.net>,
Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>,
Huang Ying <ying.huang@...el.com>,
Andi Kleen <ak@...ux.intel.com>
Cc: Robert Richter <robert.richter@....com>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
Johannes Berg <johannes@...solutions.net>,
Peter Zijlstra <peterz@...radead.org>,
Greg KH <greg@...ah.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Paul Mundt <lethal@...ux-sh.org>,
"eranian@...il.com" <eranian@...il.com>,
"Gary.Mohr@...l.com" <Gary.Mohr@...l.com>,
"arjan@...ux.intel.com" <arjan@...ux.intel.com>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
Paul Mackerras <paulus@...ba.org>,
"David S. Miller" <davem@...emloft.net>,
Russell King <rmk+kernel@....linux.org.uk>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Will Deacon <will.deacon@....com>,
Maynard Johnson <mpjohn@...ibm.com>,
Carl Love <carll@...ibm.com>,
Kay Sievers <kay.sievers@...y.org>,
lkml <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [RFC][PATCH v1 00/15] perf: export events in a structured way via
sysfs
Hi, all
(CC driver maintainers since many device tracepoint events are exported)
This patch series is based on the discussion of
[rfc] Describe events in a structured way via sysfs
http://lkml.org/lkml/2010/5/21/102
Applied on top of Peter's perf tree, perf-pmu branch.
Hareware/Software/Tracepoint events are exported in a structured way via
sysfs, like below
I throw out these patches to see if various events are put under correct
sysfs point.
Robert Richter and Corey Ashford have some ideas about what event
attributes should be shown in sysfs, but now let's just show "config"
and "type" for demo of sysfs structure.
And I'll document the sysfs ABI in later version.
1. Hardware events
/sys/devices/system/cpu/cpu0...cpuN/events
|-- L1-dcache-load-misses ===> event name
| |-- config ===> config value for the event
| `-- type ===> event type
|-- cycles
| |-- config
| `-- type
.....
2. Software events
/sys/kernel/events
|-- page-faults
| |-- config
| `-- type
|-- context-switches
| |-- config
| `-- type
....
3. Tracepoint events
/sys/devices/pci0000:00/0000:00:02.0/events
|-- i915_gem_object_create
| |-- config
| `-- type
|-- i915_gem_object_bind
| |-- config
| `-- type
....
/sys/devices/system/kvm/kvm0/events
|-- kvm_entry
| |-- config
| `-- type
|-- kvm_hypercall
| |-- config
| `-- type
....
Welcome for any comment.
Thanks,
Lin Ming
--
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