2007-01-09 22:16:25

by Gert Vervoort

[permalink] [raw]
Subject: oprofile broken on 2.6.19


When I try to use oprofile on 2.6.19, it does not seem to work:

[gert@apollo tmp]$ sudo opcontrol --no-vmlinux
[gert@apollo tmp]$ sudo opcontrol --start
/usr/bin/opcontrol: line 911: /dev/oprofile/0/enabled: No such file or directory/usr/bin/opcontrol: line 911:
/dev/oprofile/0/event: No such file or directory
/usr/bin/opcontrol: line 911: /dev/oprofile/0/count: No such file or directory
/usr/bin/opcontrol: line 911: /dev/oprofile/0/kernel: No such file or directory
/usr/bin/opcontrol: line 911: /dev/oprofile/0/user: No such file or directory
/usr/bin/opcontrol: line 911: /dev/oprofile/0/unit_mask: No such file or directory
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
Profiler running.
[gert@apollo tmp]$ ls /dev/oprofile/
1 backtrace_depth buffer_watershed dump stats
2 buffer cpu_buffer_size enable
3 buffer_size cpu_type pointer_size
[gert@apollo tmp]$ cat /var/lib/oprofile/oprofiled.log
oprofiled started Tue Jan 9 21:41:02 2007
kernel pointer size: 8
[gert@apollo tmp]$ uname -a
Linux apollo 2.6.19 #1 PREEMPT Thu Nov 30 18:52:13 CET 2006 x86_64 x86_64 x86_64 GNU/Linux
[gert@apollo tmp]$


Gert


2007-01-10 17:24:40

by Tomas Carnecky

[permalink] [raw]
Subject: Re: oprofile broken on 2.6.19

Gert Vervoort wrote:
>
> When I try to use oprofile on 2.6.19, it does not seem to work:
>

http://lkml.org/lkml/2006/11/22/172

tom

2007-01-10 17:27:10

by Tomas Carnecky

[permalink] [raw]
Subject: Re: oprofile broken on 2.6.19

Gert Vervoort wrote:
>
> When I try to use oprofile on 2.6.19, it does not seem to work:
>
> [gert@apollo tmp]$ sudo opcontrol --no-vmlinux
> [gert@apollo tmp]$ sudo opcontrol --start
> /usr/bin/opcontrol: line 911: /dev/oprofile/0/enabled: No such file or
> directory/usr/bin/opcontrol: line 911: /dev/oprofile/0/event: No such
> file or directory

oh.. and next time please first try google ;)
http://www.google.ch/search?q=%2Fdev%2Foprofile%2F0%2Fevent

tom

2007-01-10 17:31:51

by Gert Vervoort

[permalink] [raw]
Subject: Re: oprofile broken on 2.6.19

Tomas Carnecky wrote:
> Gert Vervoort wrote:
>
>> When I try to use oprofile on 2.6.19, it does not seem to work:
>>
>>
>
> http://lkml.org/lkml/2006/11/22/172
>
> tom
>
>
>
Disabling the nmi watchdog, as suggested in:
http://marc.theaimsgroup.com/?l=oprofile-list&m=116422889324043&w=2,
also makes oprofile work again.

Gert


2007-01-11 14:18:38

by Tomas Carnecky

[permalink] [raw]
Subject: Re: oprofile broken on 2.6.19

Gert Vervoort wrote:
> Tomas Carnecky wrote:
>> Gert Vervoort wrote:
>>> When I try to use oprofile on 2.6.19, it does not seem to work:
>>>
>> http://lkml.org/lkml/2006/11/22/172
>>
> Disabling the nmi watchdog, as suggested in:
> http://marc.theaimsgroup.com/?l=oprofile-list&m=116422889324043&w=2,
> also makes oprofile work again.
>

Oh.. that seem to be much easier then compiling a patched oprofile :)
However, I can't find any NMI option (grep NMI .config), and
CONFIG_WATCHDOG is disabled here.

tom

2007-01-11 14:47:59

by Eric Dumazet

[permalink] [raw]
Subject: Re: oprofile broken on 2.6.19

On Thursday 11 January 2007 15:37, Tomas Carnecky wrote:
> Gert Vervoort wrote:
> > Tomas Carnecky wrote:
> >> Gert Vervoort wrote:
> >>> When I try to use oprofile on 2.6.19, it does not seem to work:
> >>
> >> http://lkml.org/lkml/2006/11/22/172
> >
> > Disabling the nmi watchdog, as suggested in:
> > http://marc.theaimsgroup.com/?l=oprofile-list&m=116422889324043&w=2,
> > also makes oprofile work again.
>
> Oh.. that seem to be much easier then compiling a patched oprofile :)
> However, I can't find any NMI option (grep NMI .config), and
> CONFIG_WATCHDOG is disabled here.

Sure, but did you tried to boot with 'nmi_watchdog=0' appended in your boot
params ?

Eric

2007-01-11 16:59:16

by Tomas Carnecky

[permalink] [raw]
Subject: Re: oprofile broken on 2.6.19

Eric Dumazet wrote:
> On Thursday 11 January 2007 15:37, Tomas Carnecky wrote:
>> Gert Vervoort wrote:
>>> Tomas Carnecky wrote:
>>>> Gert Vervoort wrote:
>>>>> When I try to use oprofile on 2.6.19, it does not seem to work:
>>>> http://lkml.org/lkml/2006/11/22/172
>>> Disabling the nmi watchdog, as suggested in:
>>> http://marc.theaimsgroup.com/?l=oprofile-list&m=116422889324043&w=2,
>>> also makes oprofile work again.
>> Oh.. that seem to be much easier then compiling a patched oprofile :)
>> However, I can't find any NMI option (grep NMI .config), and
>> CONFIG_WATCHDOG is disabled here.
>
> Sure, but did you tried to boot with 'nmi_watchdog=0' appended in your boot
> params ?

No, I assumed since I don't have any watchdog, I wouldn't have the NMI
thing either... these silly assumptions.

tom