lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 29 Mar 2016 13:08:13 +0800
From:	Ricky Liang <jcliang@...omium.org>
To:	unlisted-recipients:; (no To-header on input)
Cc:	Ricky Liang <jcliang@...omium.org>,
	Javi Merino <javi.merino@....com>,
	Daniel Kurtz <djkurtz@...omium.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Ingo Molnar <mingo@...hat.com>,
	Zhang Rui <rui.zhang@...el.com>,
	Peter Feuerer <peter@...e.net>,
	Eduardo Valentin <edubezval@...il.com>,
	Jean Delvare <jdelvare@...e.de>,
	Sascha Hauer <s.hauer@...gutronix.de>,
	linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] thermal: fix thermal_power_allocator trace event

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

CC: Javi Merino <javi.merino@....com>
CC: Daniel Kurtz <djkurtz@...omium.org>
Signed-off-by: Ricky Liang <jcliang@...omium.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ