powertop.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [Powertop] seg fault at clearlinux v2.10 with kernel 4.20
@ 2019-03-03 21:05 Kammela, Gayatri
  0 siblings, 0 replies; 3+ messages in thread
From: Kammela, Gayatri @ 2019-03-03 21:05 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 2192 bytes --]

Hi Victor,
4.20.10 has a kernel bug that breaks powertop. Please refer this https://lists.01.org/pipermail/powertop/2019-February/002040.html . Also, try latest Clear Linux version 28100.

Thanks,
Gayatri

> -----Original Message-----
> From: PowerTop [mailto:powertop-bounces(a)lists.01.org] On Behalf Of
> Victor Rodriguez
> Sent: Sunday, March 3, 2019 9:25 AM
> To: powertop(a)lists.01.org; Simental Magana, Marcos
> <marcos.simental.magana(a)intel.com>
> Subject: [Powertop] seg fault at clearlinux v2.10 with kernel 4.20
> 
> Hi Marc and I were debugging segfault in Clear Linux version 28020
> 
> Program received signal SIGSEGV, Segmentation fault.
>                                                     0x0000000000442b66 in perf_event::process
> (this=0x4a3ab0, cookie=cookie(a)entry=0x4b1d10) at perf/perf.cpp:233
> 233 if (perf_fd < 0)
> (gdb) bt
> #0  0x0000000000442b66 in perf_event::process (this=0x4a3ab0,
> cookie=cookie(a)entry=0x4b1d10) at perf/perf.cpp:233
> #1  0x00000000004439d8 in perf_bundle::process (this=0x4b1cc0) at
> perf/perf_bundle.cpp:326
> #2  0x0000000000420ce1 in process_cpu_data () at cpu/cpu.cpp:1037
> #3  0x00000000004146d5 in one_measurement (seconds=-4,
> seconds(a)entry=1, sample_interval=<optimized out>,
>     sample_interval(a)entry=5, workload=workload(a)entry=0x0) at
> main.cpp:255
> #4  0x000000000040aad3 in main (argc=1, argv=0x7fffffffcf58) at
> main.cpp:542
> 
> The bug seems to be in this call of the perf file descriptor
> https://github.com/fenrus75/powertop/blob/master/src/perf/perf_bundle.c
> pp#L323
> 
> by the call of perf_event::process in perf.cpp
> 
> I guess that perf_fd = sys_perf_event_open(&attr, -1, _cpu, -1, 0); is not
> generating the perf event
> 
> We have a copy of perf_event.h taken from the kernel and I wonder if we do
> need to update it
> 
> In the Clear Linux  we are running kernel: 4.20.10-698.native
> 
> Happy to help with the fix, just need a bit of direction
> 
> Regards
> 
> Victor Rodriguez
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Powertop] seg fault at clearlinux v2.10 with kernel 4.20
@ 2019-03-04 13:51 Victor Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Victor Rodriguez @ 2019-03-04 13:51 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 2403 bytes --]

Fixed , thanks :)

On Sun, Mar 3, 2019 at 3:05 PM Kammela, Gayatri
<gayatri.kammela(a)intel.com> wrote:
>
> Hi Victor,
> 4.20.10 has a kernel bug that breaks powertop. Please refer this https://lists.01.org/pipermail/powertop/2019-February/002040.html . Also, try latest Clear Linux version 28100.
>
> Thanks,
> Gayatri
>
> > -----Original Message-----
> > From: PowerTop [mailto:powertop-bounces(a)lists.01.org] On Behalf Of
> > Victor Rodriguez
> > Sent: Sunday, March 3, 2019 9:25 AM
> > To: powertop(a)lists.01.org; Simental Magana, Marcos
> > <marcos.simental.magana(a)intel.com>
> > Subject: [Powertop] seg fault at clearlinux v2.10 with kernel 4.20
> >
> > Hi Marc and I were debugging segfault in Clear Linux version 28020
> >
> > Program received signal SIGSEGV, Segmentation fault.
> >                                                     0x0000000000442b66 in perf_event::process
> > (this=0x4a3ab0, cookie=cookie(a)entry=0x4b1d10) at perf/perf.cpp:233
> > 233 if (perf_fd < 0)
> > (gdb) bt
> > #0  0x0000000000442b66 in perf_event::process (this=0x4a3ab0,
> > cookie=cookie(a)entry=0x4b1d10) at perf/perf.cpp:233
> > #1  0x00000000004439d8 in perf_bundle::process (this=0x4b1cc0) at
> > perf/perf_bundle.cpp:326
> > #2  0x0000000000420ce1 in process_cpu_data () at cpu/cpu.cpp:1037
> > #3  0x00000000004146d5 in one_measurement (seconds=-4,
> > seconds(a)entry=1, sample_interval=<optimized out>,
> >     sample_interval(a)entry=5, workload=workload(a)entry=0x0) at
> > main.cpp:255
> > #4  0x000000000040aad3 in main (argc=1, argv=0x7fffffffcf58) at
> > main.cpp:542
> >
> > The bug seems to be in this call of the perf file descriptor
> > https://github.com/fenrus75/powertop/blob/master/src/perf/perf_bundle.c
> > pp#L323
> >
> > by the call of perf_event::process in perf.cpp
> >
> > I guess that perf_fd = sys_perf_event_open(&attr, -1, _cpu, -1, 0); is not
> > generating the perf event
> >
> > We have a copy of perf_event.h taken from the kernel and I wonder if we do
> > need to update it
> >
> > In the Clear Linux  we are running kernel: 4.20.10-698.native
> >
> > Happy to help with the fix, just need a bit of direction
> >
> > Regards
> >
> > Victor Rodriguez
> > _______________________________________________
> > PowerTop mailing list
> > PowerTop(a)lists.01.org
> > https://lists.01.org/mailman/listinfo/powertop

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Powertop] seg fault at clearlinux v2.10 with kernel 4.20
@ 2019-03-03 17:25 Victor Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Victor Rodriguez @ 2019-03-03 17:25 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

Hi Marc and I were debugging segfault in Clear Linux version 28020

Program received signal SIGSEGV, Segmentation fault.
                                                    0x0000000000442b66
in perf_event::process (this=0x4a3ab0, cookie=cookie(a)entry=0x4b1d10)
at perf/perf.cpp:233
233 if (perf_fd < 0)
(gdb) bt
#0  0x0000000000442b66 in perf_event::process (this=0x4a3ab0,
cookie=cookie(a)entry=0x4b1d10) at perf/perf.cpp:233
#1  0x00000000004439d8 in perf_bundle::process (this=0x4b1cc0) at
perf/perf_bundle.cpp:326
#2  0x0000000000420ce1 in process_cpu_data () at cpu/cpu.cpp:1037
#3  0x00000000004146d5 in one_measurement (seconds=-4,
seconds(a)entry=1, sample_interval=<optimized out>,
    sample_interval(a)entry=5, workload=workload(a)entry=0x0) at main.cpp:255
#4  0x000000000040aad3 in main (argc=1, argv=0x7fffffffcf58) at main.cpp:542

The bug seems to be in this call of the perf file descriptor
https://github.com/fenrus75/powertop/blob/master/src/perf/perf_bundle.cpp#L323

by the call of perf_event::process in perf.cpp

I guess that perf_fd = sys_perf_event_open(&attr, -1, _cpu, -1, 0); is
not generating the perf event

We have a copy of perf_event.h taken from the kernel and I wonder if
we do need to update it

In the Clear Linux  we are running kernel: 4.20.10-698.native

Happy to help with the fix, just need a bit of direction

Regards

Victor Rodriguez

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-04 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-03 21:05 [Powertop] seg fault at clearlinux v2.10 with kernel 4.20 Kammela, Gayatri
  -- strict thread matches above, loose matches on Subject: below --
2019-03-04 13:51 Victor Rodriguez
2019-03-03 17:25 Victor Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).