Re: [RFC][PATCH 2/3] perf: Take a hot regs snapshot for traceevents
From: Steven Rostedt
Date: Thu Mar 04 2010 - 10:55:43 EST
On Thu, 2010-03-04 at 16:36 +0100, Ingo Molnar wrote:
> > This should be done anyway. But it would also let you decouple ftrace trace
> > events from perf trace events but still let the two use the same trace
> > points.
> I think the main thing would be to have a decoupled /eventfs - basically
> /debug/tracing/events/ moved to "/eventfs" or maybe to "/proc/events/". This
> would make them available more widely, and in a standardized way.
I know Greg once proposed a /tracefs directory. I don't really care how
things work as long as we don't lose functionality. Perhaps we should
have a standard tracefs dir, and have:
This would keep things nicely grouped but separate.
I could also decouple the printing of the formats from ftrace.h and then
in in the define_trace.h:
# include <trace/events.h>
# ifdef CONFIG_FTRACE_EVENTS
# include <trace/ftrace.h>
# ifdef CONFIG_PERF_EVENTS
# include <trace/perf.h>
Have the trace/events.h file create the files for the event directory.
But what about the enable and filter files in the event directory. How
would they be attached? Currently these modify the way ftrace works. I'm
assuming that perf enables these with the syscall. Should these files
still be specific to ftrace if enabled?
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/