All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal: fix thermal_power_allocator trace event
@ 2016-03-29  5:08 Ricky Liang
  2016-03-29  8:11 ` Ricky Liang
  0 siblings, 1 reply; 2+ messages in thread
From: Ricky Liang @ 2016-03-29  5:08 UTC (permalink / raw)
  Cc: Ricky Liang, Javi Merino, Daniel Kurtz, Steven Rostedt,
	Ingo Molnar, Zhang Rui, Peter Feuerer, Eduardo Valentin,
	Jean Delvare, Sascha Hauer, open list

Fix the dynamic array length in printing the thermal_power_allocator
trace event.

CC: Javi Merino <javi.merino@arm.com>
CC: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Ricky Liang <jcliang@chromium.org>
---
 include/trace/events/thermal_power_allocator.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/trace/events/thermal_power_allocator.h b/include/trace/events/thermal_power_allocator.h
index 5afae8f..85e5391 100644
--- a/include/trace/events/thermal_power_allocator.h
+++ b/include/trace/events/thermal_power_allocator.h
@@ -45,10 +45,10 @@ TRACE_EVENT(thermal_power_allocator,
 	TP_printk("thermal_zone_id=%d req_power={%s} total_req_power=%u granted_power={%s} total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%d delta_temperature=%d",
 		__entry->tz_id,
 		__print_array(__get_dynamic_array(req_power),
-                              __entry->num_actors, 4),
+                              __get_dynamic_array_len(req_power), 4),
 		__entry->total_req_power,
 		__print_array(__get_dynamic_array(granted_power),
-                              __entry->num_actors, 4),
+                              __get_dynamic_array_len(granted_power), 4),
 		__entry->total_granted_power, __entry->power_range,
 		__entry->max_allocatable_power, __entry->current_temp,
 		__entry->delta_temp)
-- 
2.1.2

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

* Re: [PATCH] thermal: fix thermal_power_allocator trace event
  2016-03-29  5:08 [PATCH] thermal: fix thermal_power_allocator trace event Ricky Liang
@ 2016-03-29  8:11 ` Ricky Liang
  0 siblings, 0 replies; 2+ messages in thread
From: Ricky Liang @ 2016-03-29  8:11 UTC (permalink / raw)
  To: Ricky Liang
  Cc: Javi Merino, Daniel Kurtz, Steven Rostedt, Ingo Molnar,
	Zhang Rui, Peter Feuerer, Eduardo Valentin, Jean Delvare,
	Sascha Hauer, open list

Please ignore this patch. I found out that I missed out the patch that
changed the second parameter of __print_array() to number of elements.

On Tue, Mar 29, 2016 at 1:08 PM, Ricky Liang <jcliang@chromium.org> wrote:
> Fix the dynamic array length in printing the thermal_power_allocator
> trace event.
>
> CC: Javi Merino <javi.merino@arm.com>
> CC: Daniel Kurtz <djkurtz@chromium.org>
> Signed-off-by: Ricky Liang <jcliang@chromium.org>
> ---
>  include/trace/events/thermal_power_allocator.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/trace/events/thermal_power_allocator.h b/include/trace/events/thermal_power_allocator.h
> index 5afae8f..85e5391 100644
> --- a/include/trace/events/thermal_power_allocator.h
> +++ b/include/trace/events/thermal_power_allocator.h
> @@ -45,10 +45,10 @@ TRACE_EVENT(thermal_power_allocator,
>         TP_printk("thermal_zone_id=%d req_power={%s} total_req_power=%u granted_power={%s} total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%d delta_temperature=%d",
>                 __entry->tz_id,
>                 __print_array(__get_dynamic_array(req_power),
> -                              __entry->num_actors, 4),
> +                              __get_dynamic_array_len(req_power), 4),
>                 __entry->total_req_power,
>                 __print_array(__get_dynamic_array(granted_power),
> -                              __entry->num_actors, 4),
> +                              __get_dynamic_array_len(granted_power), 4),
>                 __entry->total_granted_power, __entry->power_range,
>                 __entry->max_allocatable_power, __entry->current_temp,
>                 __entry->delta_temp)
> --
> 2.1.2
>

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

end of thread, other threads:[~2016-03-29  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29  5:08 [PATCH] thermal: fix thermal_power_allocator trace event Ricky Liang
2016-03-29  8:11 ` Ricky Liang

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.