Page MenuHomeFreeBSD

hwpmc: split out PMC_OP_PMCALLOCATE
ClosedPublic

Authored by mhorne on May 26 2023, 6:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 14, 7:54 AM
Unknown Object (File)
Sun, Dec 14, 6:26 AM
Unknown Object (File)
Mon, Dec 1, 9:31 AM
Unknown Object (File)
Nov 26 2025, 2:56 PM
Unknown Object (File)
Nov 26 2025, 2:56 PM
Unknown Object (File)
Nov 25 2025, 8:54 PM
Unknown Object (File)
Nov 24 2025, 12:04 AM
Unknown Object (File)
Nov 18 2025, 7:36 PM
Subscribers

Details

Summary

This is the biggest one.

Flip the return values of the pmc_can_allocate_row() and
pmc_can_allocate_rowindex() functions to boolean types, like their
naming implies. We weren't actually using the error codes they were
returning.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51720
Build 48611: arc lint + arc unit

Event Timeline

jkoshy added inline comments.
sys/dev/hwpmc/hwpmc_mod.c
3459

Setting pmc to NULL seems redundant.

This revision is now accepted and ready to land.Jun 13 2023, 7:18 AM
This revision was automatically updated to reflect the committed changes.
mhorne marked an inline comment as done.