Skip to contentSkip to conversation

Error using add-context for perf counters

DISCUSSION Matthew Khouzam 3 participants 3 messages Apr 3, 2013 – Apr 10, 2013 3 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi, I can confirm this bug, Has anyone else tried it?

Quoted 36 lines · Bernd Hufmann

Hello

I cannot add contexts for perf counters using lttng-tools v2.1.1 and I get an error (see below). When using lttng-tools 2.0.5 (on a different computer) it works. Could somebody from lttng development team look into that?

Thanks
Bernd

----------------------------------------------------------------------

Quoted 1 line

lttng create mySession

Session mySession created.
Traces will be written in /home/bernd/lttng-traces/mySession-20130319-145021

Quoted 1 line

lttng enable-event -a -k

All kernel events are enabled in channel channel0

Quoted 1 line

lttng add-context -k -t perf:branch-misses -t perf:cache-misses

PERROR: add context ioctl: Invalid argument [in kernel_add_channel_context() at kernel.c:47]
Error: perf:cache-misses: Add kernel context failed
PERROR: add context ioctl: Invalid argument [in kernel_add_channel_context() at kernel.c:47]
Error: perf:branch-misses: Add kernel context failed
Warning: Some command(s) went wrong

-----------------------------------------------------------------------
My setup is:
Ubuntu 12.04 with kernel 3.2.0-38
lttng-modules v2.1.1
lttng-tools v2.1.1

#3 lore raw
In reply to a message not in the archive

please open a bug report on the bug tracker for this issue if you still see it. Please let us know if you see it in 2.2-rc1 too.

Quoted 45 lines · * Matthew Khouzam ([email protected]) wrote:

Hi, I can confirm this bug, Has anyone else tried it?

Quoted 28 lines · Bernd Hufmann

Hello

I cannot add contexts for perf counters using lttng-tools v2.1.1 and I get an error (see below). When using lttng-tools 2.0.5 (on a different computer) it works. Could somebody from lttng development team look into that?

Thanks
Bernd

----------------------------------------------------------------------

Quoted 1 line

lttng create mySession

Session mySession created.
Traces will be written in /home/bernd/lttng-traces/mySession-20130319-145021

Quoted 1 line

lttng enable-event -a -k

All kernel events are enabled in channel channel0

Quoted 1 line

lttng add-context -k -t perf:branch-misses -t perf:cache-misses

PERROR: add context ioctl: Invalid argument [in kernel_add_channel_context() at kernel.c:47]
Error: perf:cache-misses: Add kernel context failed
PERROR: add context ioctl: Invalid argument [in kernel_add_channel_context() at kernel.c:47]
Error: perf:branch-misses: Add kernel context failed
Warning: Some command(s) went wrong

Quoted 8 lines

-----------------------------------------------------------------------
My setup is:
Ubuntu 12.04 with kernel 3.2.0-38
lttng-modules v2.1.1
lttng-tools v2.1.1

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#5 lore raw
In reply to a message not in the archive

Hi Mathieu

I tried it with 2.2-rc1 and it also fails.
I'll open a bug report for that.

Thanks
Bernd

Quoted 48 lines · Mathieu Desnoyers

please open a bug report on the bug tracker for this issue if you still see it. Please let us know if you see it in 2.2-rc1 too.

Quoted 44 lines · * Matthew Khouzam ([email protected]) wrote:

Hi, I can confirm this bug, Has anyone else tried it?

Quoted 28 lines · Bernd Hufmann

Hello

I cannot add contexts for perf counters using lttng-tools v2.1.1 and I get an error (see below). When using lttng-tools 2.0.5 (on a different computer) it works. Could somebody from lttng development team look into that?

Thanks
Bernd

----------------------------------------------------------------------

Quoted 1 line

lttng create mySession

Session mySession created.
Traces will be written in /home/bernd/lttng-traces/mySession-20130319-145021

Quoted 1 line

lttng enable-event -a -k

All kernel events are enabled in channel channel0

Quoted 1 line

lttng add-context -k -t perf:branch-misses -t perf:cache-misses

PERROR: add context ioctl: Invalid argument [in kernel_add_channel_context() at kernel.c:47]
Error: perf:cache-misses: Add kernel context failed
PERROR: add context ioctl: Invalid argument [in kernel_add_channel_context() at kernel.c:47]
Error: perf:branch-misses: Add kernel context failed
Warning: Some command(s) went wrong

Quoted 8 lines

-----------------------------------------------------------------------
My setup is:
Ubuntu 12.04 with kernel 3.2.0-38
lttng-modules v2.1.1
lttng-tools v2.1.1

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 1 line
This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer