Skip to content

perf/ftrace: Introduce hexadecimal type casting

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am 147151064700.12957.1184322470361742842.stgit@devbox

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ftrace: kprobe: uprobe: Add x8/x16/x32/x64 for hexadecimal typesDocumentation/trace/kprobetrace.txt Documentation/trace/uprobetracer.txt kernel/trace/trace_kprobe.c +4 more+40 -191 reply
2/6ftrace: probe: Add README entries for k/uprobe-eventskernel/trace/trace.c+24 -01 reply
3/6perf probe: Add supported type casting of running kerneltools/perf/util/probe-file.c tools/perf/util/probe-file.h tools/perf/util/probe-finder.c+68 -01 reply
4/6perf probe: Support hexadecimal castingtools/perf/Documentation/perf-probe.txt tools/perf/util/probe-finder.c+12 -90 replies
5/6perf-probe: Use hexadecimal type by default if possibletools/perf/util/probe-finder.c+2 -10 replies
6/6ftrace: kprobe: uprobe: Show u8/u16/u32/u64 types in decimalDocumentation/trace/kprobetrace.txt Documentation/trace/uprobetracer.txt kernel/trace/trace_probe.c +2 more+15 -101 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchSteven Rostedt
1/6A-b
2/6A-b
3/6
4/6
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] perf/ftrace: Introduce hexadecimal type casting

Hi Arnaldo and Steven,

Here is an RFC series of hexadecimal type casting and changing default type casting of perf and ftrace.

I've introduced x8,x16,x32,x64 according to previous discussion on LKML.
https://lkml.org/lkml/2016/8/10/339

This series includes not only adding hexadecimal types (x8,x16,x32,x64), but also checking it is supported by running kernel and keeping the backward compativility.

[1/6] Add hexadecimal type casting, but does not touch
existing types like 'u8'.
[2/6] Show the supported types on README of ftrace so
that user application (e.g. perf) can check that.
[3/6] Add a type availability check to perf-probe. [4/6] Add hexadecimal prefix support to perf-probe if
it is supported by the kernel.
[5/6] Change the perf-probe default type casting for
unsigned type to hexadecimal (for backward compatibility)
[6/6] Change ftrace's 'uNN' to show value in decimal
and use 'xNN' by default (for backward compatibility)

This way, we can also add "octal" type, pointer type, and "character" type etc. and perf can check whether the kernel supports it or not. :)

Thanks,
---

Masami Hiramatsu (6):
ftrace: kprobe: uprobe: Add x8/x16/x32/x64 for hexadecimal types
ftrace: probe: Add README entries for k/uprobe-events perf probe: Add supported type casting of running kernel perf probe: Support hexadecimal casting
perf-probe: Use hexadecimal type by default if possible
ftrace: kprobe: uprobe: Show u8/u16/u32/u64 types in decimal

 tools/perf/Documentation/perf-probe.txt |    5 +--
 tools/perf/util/probe-file.c            |   57 +++++++++++++++++++++++++++++++
 tools/perf/util/probe-file.h            |   10 +++++
 tools/perf/util/probe-finder.c          |   19 +++++++---
 4 files changed, 81 insertions(+), 10 deletions(-)

--
Masami Hiramatsu (Linaro Ltd.) <[email protected]>