Skip to content

perf: add two new features

Adrian Hunter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf: fix broken union in perf_event_mmap_pageinclude/uapi/linux/perf_event.h+5 -325 replies
2/5x86: add ability to calculate TSC from perf sample timestampsarch/x86/include/asm/tsc.h arch/x86/kernel/cpu/perf_event.c arch/x86/kernel/tsc.c +1 more+33 -20 replies
3/5perf tools: add test for converting perf time to/from TSCtools/perf/Makefile tools/perf/arch/x86/Makefile tools/perf/arch/x86/util/tsc.c +4 more+268 -00 replies
4/5perf: add 'keep tracking' flag to PERF_EVENT_IOC_DISABLEinclude/linux/perf_event.h include/uapi/linux/perf_event.h kernel/events/core.c+21 -20 replies
5/5perf tools: add 'keep tracking' testtools/perf/Makefile tools/perf/tests/builtin-test.c tools/perf/tests/keep-tracking.c +3 more+211 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchAdrian Hunter
1/5Also-Fixed-by
2/5
3/5
4/5
5/5

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/5] perf: add two new features

Hi

Please consider these two new perf features:
x86: add ability to calculate TSC from perf sample timestamps
perf: add 'keep tracking' flag to PERF_EVENT_IOC_DISABLE

This is also a minor fix:
perf: fix broken union in perf_event_mmap_page

And tests in perf tools:
perf tools: add test for converting perf time to/from TSC perf tools: add 'keep tracking' test

Adrian Hunter (5):
perf: fix broken union in perf_event_mmap_page
x86: add ability to calculate TSC from perf sample timestamps perf tools: add test for converting perf time to/from TSC
perf: add 'keep tracking' flag to PERF_EVENT_IOC_DISABLE perf tools: add 'keep tracking' test

 arch/x86/include/asm/tsc.h          |   1 +
 arch/x86/kernel/cpu/perf_event.c    |   6 ++
 arch/x86/kernel/tsc.c               |   6 ++
 include/linux/perf_event.h          |   1 +
 include/uapi/linux/perf_event.h     |  29 +++++-
 kernel/events/core.c                |  21 ++++-
 tools/perf/Makefile                 |   4 +
 tools/perf/arch/x86/Makefile        |   2 +
 tools/perf/arch/x86/util/tsc.c      |  59 ++++++++++++
 tools/perf/arch/x86/util/tsc.h      |  20 ++++
 tools/perf/tests/builtin-test.c     |  10 ++
 tools/perf/tests/keep-tracking.c    | 168 ++++++++++++++++++++++++++++++++++
 tools/perf/tests/perf-time-to-tsc.c | 177 ++++++++++++++++++++++++++++++++++++
 tools/perf/tests/tests.h            |   2 +
 tools/perf/util/evlist.c            |  32 +++++++
 tools/perf/util/evlist.h            |   5 +
 16 files changed, 537 insertions(+), 6 deletions(-)
 create mode 100644 tools/perf/arch/x86/util/tsc.c
 create mode 100644 tools/perf/arch/x86/util/tsc.h
 create mode 100644 tools/perf/tests/keep-tracking.c
 create mode 100644 tools/perf/tests/perf-time-to-tsc.c

Regards
Adrian