Re: [RFC][PATCH v1 04/15] perf: export tracepoint events viasysfs: sched, raw_syscalls etc.
From: Steven Rostedt
Date: Thu Jul 22 2010 - 09:28:12 EST
On Thu, 2010-07-22 at 19:12 +0800, Lin Ming wrote:
> Below tracepoint events are exported under /sys/kernel/events/.
> sched, raw_syscalls, irq, timer, signal, workqueue, lock and bkl
>
>
> +/*
> + * tracepoint events: sched, raw_syscalls, irq, timer, signal,
> + * workqueue, lock and bkl are exported to
> + * /sys/kernel/events/
> + */
> +static void perf_sys_add_kernel_events(void)
> +{
> + if (!sys_kernel_events_kobj)
> + return;
> +
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "raw_syscalls");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "sched");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "irq");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "timer");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "signal");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "workqueue");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "lock");
> + perf_sys_add_tp_events(sys_kernel_events_kobj, "bkl");
Why are these hard-coded and not create by the event system types?
-- Steve
> +}
> +
--
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/