Page MenuHomeFreeBSD

hwpmc: release a PMC whose ID could not be copied out
Needs ReviewPublic

Authored by afscoelho_gmail.com on Sat, Oct 10, 1:21 AM.
Tags
None
Referenced Files
F175358027: D60562.id189317.diff
Sat, Oct 10, 6:37 AM
F175356988: D60562.diff
Sat, Oct 10, 6:25 AM
F175345715: D60562.diff
Sat, Oct 10, 4:22 AM
F175345296: D60562.diff
Sat, Oct 10, 4:15 AM
F175343289: D60562.id189317.diff
Sat, Oct 10, 3:46 AM
F175343094: D60562.diff
Sat, Oct 10, 3:44 AM
F175342816: D60562.diff
Sat, Oct 10, 3:41 AM
F175341571: D60562.id189317.diff
Sat, Oct 10, 3:26 AM
Subscribers

Details

Reviewers
mhorne
gnn
ali_mashtizadeh.com
Group Reviewers
pmc
Summary

If copyout of the new PMC ID fails, the caller cannot use or release
the PMC. Release it in the kernel.

Test Plan

Built amd64 GENERIC + hwpmc.ko, GENERIC without HWPMC_HOOKS, and arm64.
Ran tests/sys/pmc on AMD Zen 6 (LBR v2).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77935
Build 74818: arc lint + arc unit