Prev: [RFC][PATCH v1 14/15] perf: export tracepoint events via sysfs: scsi
Next: [RFC][PATCH v1 03/15] perf: export software events via sysfs
From: Lin Ming on 22 Jul 2010 07:20 mce tracepoint events are exported like below, /sys/devices/system/machinecheck/machinecheck0/events/ `-- mce_record |-- config `-- type /sys/devices/system/machinecheck/machinecheck1/events/ `-- mce_record |-- config `-- type --- arch/x86/kernel/cpu/mcheck/mce.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 7a6f81e..eb6e127 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -1971,6 +1971,8 @@ static __cpuinit int mce_create_device(unsigned int cpu) if (err) return err; + perf_sys_add_tp(&per_cpu(mce_dev, cpu).kobj, "mce"); + for (i = 0; mce_attrs[i]; i++) { err = sysdev_create_file(&per_cpu(mce_dev, cpu), mce_attrs[i]); if (err) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |