All of lore.kernel.org
 help / color / mirror / Atom feed
* perf trace: Fix array handling & value truncation
@ 2010-05-13  6:03 Ian Munsie
  2010-05-13  6:03 ` [PATCH 1/7] perf trace: Defensive programming Ian Munsie
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Ian Munsie @ 2010-05-13  6:03 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo, Frederic Weisbecker, Steven Rostedt

This patch series fixes several issues with perf trace relating to the size of a long.

The first issue fixed by patch #2 is an assumption that tracepoints with arrays
as part of their output (for instance, raw_syscalls:sys_enter) that the size of
each element within the array is a long size. Due to further problems fixed by
patches #3 through #5, the long_size was not even being set in the
trace-event-parse.c file, and as a result the code was previously treating the
array elements as 0 size.

Patch #6 fixes issues where printing the values of pointers and longs from
64bit kernels were being truncated if perf was compiled as 32bit. This
obviously effects tracepoints with a "%p" or "%ld" in their output format, but
also affects the printout of the location of kprobes.

Patches #1 and #7 apply good software engineering practice to help spot future
regressions of these issues.

Thanks,
-Ian


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

end of thread, other threads:[~2010-05-15  3:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13  6:03 perf trace: Fix array handling & value truncation Ian Munsie
2010-05-13  6:03 ` [PATCH 1/7] perf trace: Defensive programming Ian Munsie
2010-05-13  6:03 ` [PATCH 2/7] perf trace: Correctly handle arrays Ian Munsie
2010-05-13 16:29   ` Steven Rostedt
2010-05-15  3:20     ` Frederic Weisbecker
2010-05-13 16:32   ` Steven Rostedt
2010-05-14 10:39     ` Peter Zijlstra
2010-05-14 12:54       ` Steven Rostedt
2010-05-13  6:03 ` [PATCH 3/7] Revert "perf: Fix warning while reading ring buffer headers" Ian Munsie
2010-05-15  3:39   ` Frederic Weisbecker
2010-05-13  6:03 ` [PATCH 4/7] perf trace: Rewind pointer in case field in header_page is missing Ian Munsie
2010-05-13  6:03 ` [PATCH 5/7] perf trace: use long_size from trace-event-read Ian Munsie
2010-05-13  6:03 ` [PATCH 6/7] perf trace: Fix value truncation with 64bit kernel and 32bit userspace Ian Munsie
2010-05-13  6:03 ` [PATCH 7/7] perf trace test: Test cases for kernel->host format string conversion Ian Munsie

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.