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, Feb 22, 11:03 AM
Unknown Object (File)
Sat, Feb 21, 11:48 AM
Unknown Object (File)
Fri, Feb 20, 3:27 PM
Unknown Object (File)
Mon, Feb 9, 9:32 AM
Unknown Object (File)
Jan 27 2026, 2:31 AM
Unknown Object (File)
Jan 25 2026, 10:12 PM
Unknown Object (File)
Jan 20 2026, 10:38 PM
Unknown Object (File)
Dec 14 2025, 7:54 AM
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.