Page MenuHomeFreeBSD

Improve EPOCH_TRACE
ClosedPublic

Authored by bz on Dec 3 2019, 2:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 5:15 AM
Unknown Object (File)
Fri, Nov 29, 9:44 PM
Unknown Object (File)
Oct 20 2024, 2:39 AM
Unknown Object (File)
Sep 26 2024, 6:04 PM
Unknown Object (File)
Sep 18 2024, 5:14 PM
Unknown Object (File)
Sep 8 2024, 1:10 PM
Unknown Object (File)
Sep 8 2024, 1:27 AM
Unknown Object (File)
Sep 7 2024, 12:21 PM
Subscribers

Details

Summary
Two changes to EPOCH_TRACE:
(1) add a sysctl to surpress the backtrace from epoch_trace_report().
    Sometimes the log line for the recursion is enough and the
    backtrace massively spams the console.
(2) In order to be able to go without the backtrace do not only
    print where the previous occurance happened, but also where
    the current one happens.  That way we have file:line information
    for both and can look at them without the need for getting line
    numbers from a debugging tool.

Note: (2) now gives rather long lines. E.g.:
Recursively entering epoch Net preemptible at /sys/netinet6/ip6_output.c:415, previously entered at /sys/netinet6/mld6.c:2226
and even longer if your sources are inside a subdirectory.
I was contemplating adding a \n\t for the second half.
Leave a comment if you think that would be good.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Dec 5 2019, 10:53 PM
This revision was automatically updated to reflect the committed changes.