Thread (32 messages) 32 messages, 3 authors, 2018-03-19

[PATCH v11 8/8] perf: ARM DynamIQ Shared Unit PMU support

From: mark.rutland@arm.com (Mark Rutland)
Date: 2018-02-23 11:36:01
Also in: lkml

On Thu, Feb 22, 2018 at 12:38:39PM -0800, Saravana Kannan wrote:
On 02/22/2018 03:33 AM, Mark Rutland wrote:
quoted
On Wed, Feb 21, 2018 at 06:32:46PM -0800, Saravana Kannan wrote:
quoted
I'm not exactly sure if we can add entries to perf_type_id. If that's
allowed maybe we need to add something line PERF_TYPE_DSU and use that?

Or if that's not allowed then would it be better to offset the DSU PMU
events by some number (say 0x1000) and then delete the event type check or
pass PERF_TYPE_RAW to perf_pmu_register()?
As above, neither of these should be necessary.
For the userspace interface. How about the kernel interface though?
perf_event_create_kernel_counter() takes attr.type as an input. But there's
no way to look up the DSU PMU's "type".
There is no lookup mechanism currently.

I take it you want to use DSU events from a kernel module?

It would be possible to have a simlar name -> type lookup mechanism
kernel-side, if necessary.

Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help