Skip to content

AMD Family10h IBS support for oProfile driver

Barry Kasindorf lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3AMD Family10h IBS support for oProfile driverarch/x86/oprofile/nmi_int.c arch/x86/oprofile/op_counter.h+57 -21 reply
2/3AMD Family10h IBS support for oProfile driverarch/x86/kernel/apic_32.c arch/x86/kernel/apic_64.c arch/x86/oprofile/op_model_athlon.c +1 more+307 -21 reply
3/3AMD Family10h IBS support for oProfile driverdrivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h +1 more+184 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] AMD Family10h IBS support for oProfile driver

This patchset supports the new IBS profiling hardware available in the latest AMD CPUs in the oProfile driver.
---

These new AMD processors CPUs support Instruction Based Sampling (IBS). See

Instruction-Based Sampling: A New Performance Analysis Technique for AMD Family 10h Processors, November 19, 2007
http://developer.amd.com/assets/AMD_IBS_paper_EN.pdf

for more information about IBS.

IBS support requires changes to the oProfile driver to gather this information and initialize the new MSRs associated with these new features.

This patch adds 2 new types of Profiling samples IBS_FETCH and IBS_OP to the per CPU buffers and the event buffers of the oProfile driver.

It also adds new control entries to /dev/oprofile to control IBS sampling.

These changes are backward compatible with the previous PMC only version of the driver, and a separate patch is available to oProfile 0.9.3 to use this new data.

These changes have been extensively tested at AMD on Family10h systems.

Barry Kasindorf [email protected]