* [Powertop] Some more NaNs in report when CONFIG_TRACING is not enabled
@ 2012-08-17 11:51 Igor Zhbanov
0 siblings, 0 replies; 2+ messages in thread
From: Igor Zhbanov @ 2012-08-17 11:51 UTC (permalink / raw)
To: powertop
[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]
Hello!
When you run the PowerTOP on the kernel with CONFIG_TRACING disabled,
you will get several NaNs (not a number) in the report. PowerTOP doesn't correctly
handle the situation when /sys/kernel/debug is present but /sys/kernel/debug/tracing is not.
So the PowerTOP will be unable to get information about trace events. And instead of
arguing about that or skipping some tests, it will run and produce wrong reports.
Since there will be no trace events captured, the measurement_time variable
in src/process/do_process.c will remain zero. So the functions like total_wakeups(),
total_gpu_ops(), total_disk_hits(), etc. will happily divide total by zero.
Yes, I know that it is not very useful to run the PowerTOP with tracing disabled (although
the PowerTOP can still report information about devices), but I suppose that the PowerTOP
should check whether /sys/kernel/debug/tracing presents and say something if not.
And as I see the PowerTOP almost never check the result of file opening functions.
If it cannot open a file, the PowerTOP just silently skip it.
Thank you.
--
Best regards,
Igor Zhbanov,
Expert Software Engineer,
phone: +7 (495) 797 25 00 ext 3806
e-mail: i.zhbanov(a)samsung.com
ASWG, Moscow R&D center, Samsung Electronics
12 Dvintsev street, building 1
127018, Moscow, Russian Federation
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Powertop] Some more NaNs in report when CONFIG_TRACING is not enabled
@ 2012-08-17 16:34 Chris Ferron
0 siblings, 0 replies; 2+ messages in thread
From: Chris Ferron @ 2012-08-17 16:34 UTC (permalink / raw)
To: powertop
[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]
On 08/17/2012 04:51 AM, Igor Zhbanov wrote:
> Hello!
>
> When you run the PowerTOP on the kernel with CONFIG_TRACING disabled,
> you will get several NaNs (not a number) in the report. PowerTOP
> doesn't correctly
> handle the situation when /sys/kernel/debug is present but
> /sys/kernel/debug/tracing is not.
>
> So the PowerTOP will be unable to get information about trace events.
> And instead of
> arguing about that or skipping some tests, it will run and produce
> wrong reports.
>
> Since there will be no trace events captured, the measurement_time
> variable
> in src/process/do_process.c will remain zero. So the functions like
> total_wakeups(),
> total_gpu_ops(), total_disk_hits(), etc. will happily divide total by
> zero.
>
> Yes, I know that it is not very useful to run the PowerTOP with
> tracing disabled (although
> the PowerTOP can still report information about devices), but I
> suppose that the PowerTOP
> should check whether /sys/kernel/debug/tracing presents and say
> something if not.
>
> And as I see the PowerTOP almost never check the result of file
> opening functions.
> If it cannot open a file, the PowerTOP just silently skip it.
>
> Thank you.
>
Great, thanks, I will start look at this.
-Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-17 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 16:34 [Powertop] Some more NaNs in report when CONFIG_TRACING is not enabled Chris Ferron
-- strict thread matches above, loose matches on Subject: below --
2012-08-17 11:51 Igor Zhbanov
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.