]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix endianness bug in histogram trigger
authorSven Schnelle <svens@linux.ibm.com>
Wed, 18 Dec 2019 07:44:27 +0000 (08:44 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 21 Dec 2019 21:08:59 +0000 (16:08 -0500)
commit6541ef8b6ae0e88ea084a953739461839690c607
tree517ee633a516434cfc8a99cda6d9cf9e60c3322a
parentfcc1526064854339aaa4a951b0b8ee6402696c2e
tracing: Fix endianness bug in histogram trigger

At least on PA-RISC and s390 synthetic histogram triggers are failing
selftests because trace_event_raw_event_synth() always writes a 64 bit
values, but the reader expects a field->size sized value. On little endian
machines this doesn't hurt, but on big endian this makes the reader always
read zero values.

Link: http://lore.kernel.org/linux-trace-devel/20191218074427.96184-4-svens@linux.ibm.com
Cc: stable@vger.kernel.org
Fixes: 00a1b9a7a86b6 ("tracing: Add support for 'synthetic' events")
Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c