Skip to content

ftrace: Add 'function-fork' trace option (v1)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ftrace: Fix function pid filter on instanceskernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h+9 -47 replies
2/4ftrace: Add 'function-fork' trace optionkernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h+46 -22 replies
3/4selftests: ftrace: Add -l/--logdir optiontools/testing/selftests/ftrace/ftracetest+5 -01 reply
4/4selftests: ftrace: Add a testcase for function PID filtertools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc+98 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMasami Hiramatsu
1/4
2/4
3/4A-b
4/4

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/4] ftrace: Add 'function-fork' trace option (v1)

Hello,

This patchset add 'function-fork' option to function tracer which makes pid filter to be inherited like 'event-fork' does. During the test, I found a bug of pid filter on an instance directory. The patch 1 fixes it and maybe it should go to the stable tree.

The function-fork option is disabled by default as event-fork does, but we might consider changing the default since it seems to be more natural from an user's perspective IMHO.

The code is also available at 'ftrace/function-fork-v1' branch on

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (4):
ftrace: Fix function pid filter on instances
ftrace: Add 'function-fork' trace option
selftests: ftrace: Add -l/--logdir option
selftests: ftrace: Add a testcase for function PID filter

 kernel/trace/ftrace.c                              | 47 ++++++++++-
 kernel/trace/trace.c                               |  6 +-
 kernel/trace/trace.h                               |  8 +-
 tools/testing/selftests/ftrace/ftracetest          |  5 ++
 .../ftrace/test.d/ftrace/func-filter-pid.tc        | 98 ++++++++++++++++++++++
 5 files changed, 158 insertions(+), 6 deletions(-)
 create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
Signature · 1 line
2.12.0