On Mon, 21 Apr 2014, Adrien BAK wrote:

> However, it seems that I can't record a sequence of power events :
> 
> perf record -a -e power/energy-pkg/ sleep 1
> Error:
> The sys_perf_event_open() syscall returned with 22 (Invalid argument) for
> event (power/energy-pkg/).
> /bin/dmesg may provide additional information.
> No CONFIG_PERF_EVENTS=y kernel support configured?

RAPL events cannot generate interrupts, so I don't think you can sample 
like this.

You can possibly sample using some other event (like one of the software 
clock events) and include the RAPL event in the list of events to record, 
not sure if that will accomplish what you're trying to do.

Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to