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 1, 2:51 AM
Unknown Object (File)
Nov 5 2024, 8:22 AM
Unknown Object (File)
Oct 28 2024, 4:57 PM
Unknown Object (File)
Sep 27 2024, 10:07 PM
Unknown Object (File)
Sep 23 2024, 6:57 AM
Unknown Object (File)
Sep 20 2024, 4:21 AM
Unknown Object (File)
Sep 10 2024, 6:51 AM
Unknown Object (File)
Sep 4 2024, 1:30 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 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.