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)
Mon, Dec 1, 9:31 AM
Unknown Object (File)
Wed, Nov 26, 2:56 PM
Unknown Object (File)
Wed, Nov 26, 2:56 PM
Unknown Object (File)
Tue, Nov 25, 8:54 PM
Unknown Object (File)
Mon, Nov 24, 12:04 AM
Unknown Object (File)
Tue, Nov 18, 7:36 PM
Unknown Object (File)
Mon, Nov 10, 1:06 AM
Unknown Object (File)
Oct 29 2025, 9:29 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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.