Skip to content

perfmon2 minimal v3: introduction

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19perfmon2 minimal v3: generic headersinclude/linux/perfmon.h include/linux/perfmon_kern.h include/linux/perfmon_pmu.h+473 -00 replies
2/19perfmon2 minimal v3: base codeMakefile include/linux/sched.h perfmon/Makefile +6 more+667 -00 replies
3/19perfmon2 minimal v3: context switchinclude/linux/perfmon_kern.h perfmon/Makefile perfmon/perfmon_ctxsw.c+257 -10 replies
4/19perfmon2 minimal v3: interrupt handlinginclude/linux/perfmon_kern.h perfmon/Makefile perfmon/perfmon_intr.c+299 -10 replies
5/19perfmon2 minimal v3: X86 generic codearch/x86/Kconfig arch/x86/Makefile arch/x86/perfmon/Kconfig +5 more+1072 -00 replies
6/19perfmon2 minimal v3: X86 OProfile hooksarch/x86/oprofile/nmi_int.c include/linux/perfmon_kern.h perfmon/perfmon_res.c+99 -10 replies
7/19perfmon2 minimal v3: X86 64-bit hooksarch/x86/kernel/entry_64.S arch/x86/kernel/irqinit_64.c arch/x86/kernel/process_64.c +3 more+37 -20 replies
8/19perfmon2 minimal v3: X86 32-bit hooksarch/x86/kernel/apic_32.c arch/x86/kernel/entry_32.S arch/x86/kernel/process_32.c +2 more+24 -10 replies
9/19perfmon2 minimal v3: PMU mappingperfmon/Makefile perfmon/perfmon_pmu.c perfmon/perfmon_priv.h+259 -10 replies
10/19perfmon2 minimal v3: sysfs interfaceDocumentation/ABI/testing/sysfs-perfmon Documentation/ABI/testing/sysfs-perfmon-pmu perfmon/Makefile +5 more+472 -10 replies
11/19perfmon2 minimal v3: read-write registersinclude/linux/perfmon.h perfmon/Makefile perfmon/perfmon_priv.h +1 more+398 -10 replies
12/19perfmon2 minimal v3: monitoring activationperfmon/Makefile perfmon/perfmon_activate.c perfmon/perfmon_priv.h+141 -10 replies
13/19perfmon2 minimal v3: attach/detach supportperfmon/Makefile perfmon/perfmon_attach.c perfmon/perfmon_priv.h+241 -10 replies
14/19perfmon2 minimal v3: context creationperfmon/perfmon_ctx.c perfmon/perfmon_file.c perfmon/perfmon_priv.h+392 -00 replies
15/19perfmon2 minimal v3: X86 64-bit system calls supportarch/x86/ia32/ia32entry.S include/asm-x86/unistd_64.h+28 -00 replies
16/19perfmon2 minimal v3: X86 32-bit system calls supportarch/x86/kernel/syscall_table_32.S include/asm-x86/unistd_32.h+23 -00 replies
17/19perfmon2 minimal v3: system callsinclude/linux/perfmon.h kernel/sys_ni.c perfmon/Makefile +1 more+752 -13 replies
18/19perfmon2 minimal v3: Intel architectural PMU supportarch/x86/perfmon/Kconfig arch/x86/perfmon/Makefile arch/x86/perfmon/perfmon_intel_arch.c+500 -00 replies
19/19perfmon2 minimal v3: AMD64 processor supportarch/x86/perfmon/Kconfig arch/x86/perfmon/Makefile arch/x86/perfmon/perfmon_amd64.c+450 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 00/19] perfmon2 minimal v3: introduction

The following patches implement a minimal perfmon2 subsystem which provides access to the hardware performance counters of modern processors. Performance counters are very useful resource to extract micro-architectural-level information such the number of caches misses, or the number of instructions executed. The list of events which can be monitored in highly specific to each processor implmentation.

This series supports ONLY per-thread counting of PMU events (no sampling) for AMD64 and Intel processors with support for architectural perfmon (Core Duo/Solo, Core 2) in both 32 and 64 bit modes.

This is version 3 of the series. It is against Stephen Rothwell linux-next GIT tree. Compared to the previous version, there were a few more cleanups in the Makefile structure suggested by Stephen. The series also merges more code between 32 and 64 bit x86.

Please review.

More information about the perfmon2 project can be found at:

http://perfmon2.sourceforge.net

To test this series, it is possible to use libpfm and pfmon, both available from the web site above.