On 06/14/2011 05:22 PM, Brad Campbell wrote: > On 14/06/11 15:20, Török Edwin wrote: >> >> I see wakeups both on my laptop (Core 2 Duo), and my desktop >> (AMD Phenom II), running 64-bit Linux 3.0-rc2. >> If you built the kernel yourself maybe you forgot to enable one of the >> CONFIG_* features that powertop needs? >> Try running powertop under strace, and see if powertop tries to open >> some /sys file that doesn't exist. > > It seems to open quite a few, but I'm struggling to figure out what I've > failed to enable. The perf > menu has all of 3 options, and one of those is listed as having no function. > Suggestions warmly > welcomed.
You need CONFIG_TRACEPOINTS: Symbol: TRACEPOINTS [=y] │ Type : boolean │ Selected by: TRACING [=y] || BLK_DEV_IO_TRACE [=y] && TRACING_SUPPORT [=y] && FTRACE [=y] && SYSFS [=y] && BLOCK [=y] Symbol: TRACING [=y] Selected by: GENERIC_TRACER [=y] || ENABLE_DEFAULT_TRACERS [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] && !GENERIC_TRACER [=y] ||KPROBE_EVENT [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] && KPROBES [=n] && HAVE_REGS_AND_STACK_ACCESS_API [=y] Symbol: GENERIC_TRACER [=y] Selected by: FUNCTION_TRACER [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] && HAVE_FUNCTION_TRACER [=y] || IRQSOFF_TRACER [=n] && TRACING_SUPPORT[=y] && FTRACE [=y] && TRACE_IRQFLAGS_SUPPORT [=y] && !ARCH_USES_GETTIMEOFFSET || PREEMPT_TRACER [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] && !ARCH_USES_GETTIMEOFFSET && PREEMPT [=y] || SCHED_TRACER [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] || FTRACE_SYSCALLS [=y] && TRACING_SUPPORT [=y]&& FTRACE [=y] && HAVE_SYSCALL_TRACEPOINTS [=y] || TRACE_BRANCH_PROFILING [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] || BLK_DEV_IO_TRACE [=y] && TRACING_SUPPORT [=y] && FTRACE [=y] && SYSFS [=y] && BLOCK [=y] || MMIOTRACE [=n] && TRACING_SUPPORT [=y] && FTRACE [=y] && HAVE_MMIOTRACE_SUPPORT [=y] && PCI [=y] If I'm reading that correctly then Powertop requires tracepoints, and tracepoints require ftrace. Is that right? Best regards, --Edwin _______________________________________________ Power mailing list [email protected] https://bughost.org/mailman/listinfo/power
