Prev: [RFC] x86: perf swallows all NMIs when registered with a user
Next: [PATCH] scripts/checkpatch.pl: Add more exceptions to 80 char lines
From: Rafael J. Wysocki on 22 Jul 2010 18:00 On Thursday, July 22, 2010, Lin Ming wrote: > power tracepoint events are exported like below, > > /sys/power/events/ > |-- power_end > | |-- config > | `-- type > |-- power_frequency > | |-- config > | `-- type > `-- power_start > |-- config > `-- type Any details? > --- > kernel/power/main.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/kernel/power/main.c b/kernel/power/main.c > index b58800b..6749374 100644 > --- a/kernel/power/main.c > +++ b/kernel/power/main.c > @@ -12,6 +12,7 @@ > #include <linux/string.h> > #include <linux/resume-trace.h> > #include <linux/workqueue.h> > +#include <linux/perf_event.h> > > #include "power.h" > > @@ -269,6 +270,9 @@ static int __init pm_init(void) > power_kobj = kobject_create_and_add("power", NULL); > if (!power_kobj) > return -ENOMEM; > + > + perf_sys_add_tp(power_kobj, "power"); > + Why isn't it done in drivers/base/power/sysfs.c ? > return sysfs_create_group(power_kobj, &attr_group); > } Rafael -- 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/ |