HomeFreeBSD

Only trigger SET_ERROR tracepoint event on error

Description

Only trigger SET_ERROR tracepoint event on error

Currently, the SET_ERROR tracepoint triggers regardless of whether there
is an error or not. On Illumos, SET_ERROR only triggers on an actual
error, which is avoids irrelevant noise. Linux 2.6.38 added support for
conditional tracepoints, so we modify SET_ERROR to use them when they
are avaliable for functionality equivalent to the Illumos functionality.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4043

Details

Provenance
Richard Yao <richard.yao@clusterhq.com>Authored on Nov 25 2015, 3:39 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 3 2015, 1:16 AM
Parents
rGa179a3aa3512: Fix zdb_dump_block on little endian systems
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb22e2797970b: Only trigger SET_ERROR tracepoint event on error (authored by Richard Yao <richard.yao@clusterhq.com>).Dec 3 2015, 1:16 AM