All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] Please revert the workload patch
@ 2012-06-16 11:16 Magnus Fromreide
  0 siblings, 0 replies; 4+ messages in thread
From: Magnus Fromreide @ 2012-06-16 11:16 UTC (permalink / raw)
  To: powertop

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

Hello.

Could you please revert the workload patch
(b45a38317777678b94cdf4cc81896e3a66db68bd) as it seems to try to
execute some random memory. When powertop is started as

./powertop

I see the following stack trace:

Breakpoint 1, system (line=0x7fffffffd440 "\020\020i") at pt-system.c:29
29      pt-system.c: No such file or directory.
(gdb) where
#0  system (line=0x7fffffffd440 "\020\020i") at pt-system.c:29
#1  0x0000000000456933 in one_measurement (seconds=20, workload=0x7fffffffd440 "\020\020i") at main.cpp:190
#2  0x00000000004572c2 in main (argc=1, argv=0x7fffffffe538) at main.cpp:455
(gdb) 

This shows up as a powertop beeing nonresponsive, flashing the
display excessively and warning about not managing to run the program.

/MF



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

* Re: [Powertop] Please revert the workload patch
@ 2012-06-18 15:19 Dirk Brandewie
  0 siblings, 0 replies; 4+ messages in thread
From: Dirk Brandewie @ 2012-06-18 15:19 UTC (permalink / raw)
  To: powertop

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

Hi Magnus,

This patch should fix your problem.  I will work with Chris to get it
pushed out.

BTW could not find the commit you quoted

--Dirk

diff --git a/src/main.cpp b/src/main.cpp
index 880d745..c57c984 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -452,7 +452,7 @@ int main(int argc, char **argv)

  	while (!leave_powertop) {
  		show_cur_tab();
-		one_measurement(time_out, workload);
+		one_measurement(time_out, NULL);
  		learn_parameters(15, 0);
  	}
  #ifndef DISABLE_NCURSES
-- 
1.7.7.6


On 06/16/2012 04:16 AM, Magnus Fromreide wrote:
> Hello.
>
> Could you please revert the workload patch
> (b45a38317777678b94cdf4cc81896e3a66db68bd) as it seems to try to
> execute some random memory. When powertop is started as
>
> ./powertop
>
> I see the following stack trace:
>
> Breakpoint 1, system (line=0x7fffffffd440 "\020\020i") at pt-system.c:29
> 29      pt-system.c: No such file or directory.
> (gdb) where
> #0  system (line=0x7fffffffd440 "\020\020i") at pt-system.c:29
> #1  0x0000000000456933 in one_measurement (seconds=20, workload=0x7fffffffd440 "\020\020i") at main.cpp:190
> #2  0x00000000004572c2 in main (argc=1, argv=0x7fffffffe538) at main.cpp:455
> (gdb)
>
> This shows up as a powertop beeing nonresponsive, flashing the
> display excessively and warning about not managing to run the program.
>
> /MF
>
>


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

* Re: [Powertop] Please revert the workload patch
@ 2012-06-18 16:43 Chris Ferron
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Ferron @ 2012-06-18 16:43 UTC (permalink / raw)
  To: powertop

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

Hi Magnus,
     Sorry about that, that patch was lost in the shuffle. All patches 
have now been applied upstream, and all should now be well.
-Chris

On 06/18/2012 08:19 AM, Dirk Brandewie wrote:
> Hi Magnus,
>
> This patch should fix your problem.  I will work with Chris to get it
> pushed out.
>
> BTW could not find the commit you quoted
>
> --Dirk
>
> diff --git a/src/main.cpp b/src/main.cpp
> index 880d745..c57c984 100644
> --- a/src/main.cpp
> +++ b/src/main.cpp
> @@ -452,7 +452,7 @@ int main(int argc, char **argv)
>
>      while (!leave_powertop) {
>          show_cur_tab();
> -        one_measurement(time_out, workload);
> +        one_measurement(time_out, NULL);
>          learn_parameters(15, 0);
>      }
>  #ifndef DISABLE_NCURSES


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

* Re: [Powertop] Please revert the workload patch
@ 2012-06-18 20:59 Magnus Fromreide
  0 siblings, 0 replies; 4+ messages in thread
From: Magnus Fromreide @ 2012-06-18 20:59 UTC (permalink / raw)
  To: powertop

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

On Mon, 2012-06-18 at 09:43 -0700, Chris Ferron wrote:
> Hi Magnus,
>      Sorry about that, that patch was lost in the shuffle. All patches 
> have now been applied upstream, and all should now be well.
> -Chris

Yes, this is fixed in the current head version.

/MF

> On 06/18/2012 08:19 AM, Dirk Brandewie wrote:
> > Hi Magnus,
> >
> > This patch should fix your problem.  I will work with Chris to get it
> > pushed out.
> >
> > BTW could not find the commit you quoted
> >
> > --Dirk
> >
> > diff --git a/src/main.cpp b/src/main.cpp
> > index 880d745..c57c984 100644
> > --- a/src/main.cpp
> > +++ b/src/main.cpp
> > @@ -452,7 +452,7 @@ int main(int argc, char **argv)
> >
> >      while (!leave_powertop) {
> >          show_cur_tab();
> > -        one_measurement(time_out, workload);
> > +        one_measurement(time_out, NULL);
> >          learn_parameters(15, 0);
> >      }
> >  #ifndef DISABLE_NCURSES
> 



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

end of thread, other threads:[~2012-06-18 20:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 16:43 [Powertop] Please revert the workload patch Chris Ferron
  -- strict thread matches above, loose matches on Subject: below --
2012-06-18 20:59 Magnus Fromreide
2012-06-18 15:19 Dirk Brandewie
2012-06-16 11:16 Magnus Fromreide

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.