Page MenuHomeFreeBSD

Measure latency of PMC interruptions
ClosedPublic

Authored by wma on Jul 23 2021, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 2:49 PM
Unknown Object (File)
Oct 21 2024, 3:37 AM
Unknown Object (File)
Oct 18 2024, 6:43 PM
Unknown Object (File)
Oct 3 2024, 8:49 AM
Unknown Object (File)
Sep 27 2024, 5:42 AM
Unknown Object (File)
Sep 26 2024, 3:59 PM
Unknown Object (File)
Sep 26 2024, 10:59 AM
Unknown Object (File)
Sep 6 2024, 1:48 AM
Subscribers

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wma requested review of this revision.Jul 23 2021, 8:09 AM
wma created this revision.
wma added a reviewer: kib.
sys/kern/kern_intr.c
79

I suggest to have it_waiting defined always, the effect on memory usage is minuscule.

80

What is the locking protocol for it_waiting? Is it locked by it_thread thread lock?

1025

Can you explain the desired semantic for intr waiting_5 soft event?

Good point about locking. I modified the code to use atomics instead.

Also, removed waiting_5 and let the user to choose the threshold when the PMC event is triggered (default = 1).

In D31283#714889, @wma wrote:

Any further comments?

New soft events should be documented in the pmc.soft(3) man page.

sys/kern/kern_intr.c
1465

Why not pass frame here?

This revision was not accepted when it landed; it landed in state Needs Review.Sep 13 2021, 4:12 AM
This revision was automatically updated to reflect the committed changes.