Re: [PATCH 3/4] x86, mce: Add persistent MCE event

From: Ingo Molnar
Date: Tue May 03 2011 - 04:28:00 EST



* Borislav Petkov <bp@xxxxxxxxx> wrote:

> I'm guessing that when we move those to /sysfs, this mechanism will have to
> change too so it might make sense to move that functionality to persistent.c.
> Let me see what I can do.

Yes, we really do not want to increase the debugfs mess. This looks like an
implementational detail but from a tooling POV it's quite essential.

As a starting point check out Peter's patch from November 2010:

[RFC][PATCH 8/8] perf: Sysfs events

https://lkml.org/lkml/2010/11/17/489

That patch should still apply cleanly to the latest tree.

In the end we want all events (including regular hw events) to be easily
available via sysfs enumeration. The goal is that ideally when you type 'perf
list' it should only access /sys.

Thanks,

Ingo
--
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/