HomeFreeBSD

MFC r345675, r345689

Description

MFC r345675, r345689

r345675:
fusefs: convert debug printfs into dtrace probes

fuse(4) was heavily instrumented with debug printf statements that could
only be enabled with compile-time flags. They fell into three basic groups:

  1. Totally redundant with dtrace FBT probes. These I deleted.
  2. Print textual information, usually error messages. These I converted to SDT probes of the form fuse:fuse:FILE:trace. They work just like the old printf statements except they can be enabled at runtime with dtrace. They can be filtered by FILE and/or by priority.
  3. More complicated probes that print detailed information. These I converted into ad-hoc SDT probes.

Also, de-inline fuse_internal_cache_attrs. It's big enough to be a regular
function, and this way it gets a dtrace FBT probe.

This commit is a merge of r345304, r344914, r344703, and r344664 from
projects/fuse2.

Reviewed by: cem
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19667

r345689:
fix the GENERIC-NODEBUG build after r345675

Submitted by: cy
Reported by: cy, Michael Butler <imb@protected-networks.net>
X-MFC-With: 345675

Details

Committed
asomersSep 6 2019, 6:02 PM
Reviewer
cem
Differential Revision
D19667: fusefs: convert debug printfs into dtrace probes
Parents
rS351943: MFC r344183-r344187, r344333-r344334, r344407, r344857, r344865 (by cem)
Branches
Unknown
Tags
Unknown