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)
Feb 8 2024, 11:43 PM
Unknown Object (File)
Dec 20 2023, 6:24 AM
Unknown Object (File)
Dec 13 2023, 3:12 PM
Unknown Object (File)
Dec 12 2023, 11:41 PM
Unknown Object (File)
Dec 12 2023, 12:52 PM
Unknown Object (File)
Dec 12 2023, 2:38 AM
Unknown Object (File)
Dec 11 2023, 1:56 PM
Unknown Object (File)
Dec 11 2023, 12: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.