Page MenuHomeFreeBSD

set default rate if event description lacks one / filter sample rate for API misue
ClosedPublic

Authored by mmacy on Aug 30 2018, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 20, 3:46 PM
Unknown Object (File)
Thu, Sep 10, 6:38 PM
Unknown Object (File)
Thu, Sep 10, 2:37 AM
Unknown Object (File)
Wed, Sep 9, 12:37 PM
Unknown Object (File)
Tue, Sep 8, 3:58 AM
Unknown Object (File)
Sat, Sep 5, 6:12 PM
Unknown Object (File)
Sat, Sep 5, 12:32 PM
Unknown Object (File)
Sat, Sep 5, 8:17 AM
Subscribers

Details

Summary

Not all event descriptions have a sample rate (such as inst_retired.any) this will restore the legacy behavior of using 65536 in that case. It also prevents accidental API misuse that could lead to panic.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230985

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable