No description
  • Python 91.1%
  • Shell 8.9%
Find a file
2026-02-18 15:22:21 -03:00
docs Staring the job... 2026-02-18 12:06:41 -03:00
lib Add conftest... 2026-02-18 13:10:35 -03:00
scripts Staring the job... 2026-02-18 12:06:41 -03:00
tests Updating the tests 2026-02-18 15:22:21 -03:00
workloads Staring the job... 2026-02-18 12:06:41 -03:00
conftest.py Add conftest... 2026-02-18 13:10:35 -03:00
README.md Updating the tests 2026-02-18 15:22:21 -03:00

FreeBSD PMC Validation Suite

Kernel-level validation framework for hwpmc on modern x86 (AMD Zen focused). Enhance with DTrace for more tracing.

Requirements

  • FreeBSD with hwpmc enabled

  • pmcstat

  • Python + pytest

    sudo pkg install python3 py311-pip py311-pytest

Enable hwpmc

Add to /boot/loader.conf:

hwpmc_load="YES"

Running

Collect example:

pmcstat -s instructions -O reports/cpu.txt -l 20

Test:

pytest tests/

Validations

  • Counting accuracy
  • Workload correlation
  • Process attach
  • System-wide monitoring
  • Sampling mode

Target

Designed for:

  • FreeBSD kernel PMU validation
  • AMD platform bring-up
  • Performance tooling verification