[lttng-dev] Lttng add-context perf commands gives me error
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Wed Nov 18 09:45:30 EST 2015
----- On Nov 17, 2015, at 4:46 PM, Hani Nemati <hani_nemati at yahoo.com> wrote:
> Hi,
> I am trying to count last level cache misses by using lttng add-context command.
> I use add-context to add perf:cpu:LLC-load-misses to my channel but I see an
> error. There is no error for other perf events. Just two perf events including
> perf:cpu:LLC-load-misses and perf:cpu:LLC-store-misses give me the following
> error:
> Error: perf:cpu:LLC-load-misses: Add kernel context failed
> Warning: Some command(s) went wrong
> Here is result of "uname -a" on my computer:
> Linux nemati 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7 15:32:41 UTC
> 2015 x86_64 x86_64 x86_64 GNU/Linux
> Here is the command that I used:
> #lttng enable-channel -k test
> #Kernel channel test enabled for session hh
> #lttng add-context -k -t perf:cpu:LLC-load-misses -c test
> Error: perf:cpu:LLC-load-misses: Add kernel context failed
> Warning: Some command(s) went wrong
> I also tried it on other machines.
It is possible that your architecture does not expose this counter to perf.
Did you try using this PMC with the perf tool ?
Thanks,
Mathieu
> <<<<<<< /-/ /\ /\/ / /\/ E /\/\ /\ T / >>>>>>>>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20151118/78dd546f/attachment.html>
More information about the lttng-dev
mailing list