HomeFreeBSD

Wrap trace_set_debug_header in trace_[get|put]_tcd

Description

Wrap trace_set_debug_header in trace_[get|put]_tcd

To properly support CONFIG_PREEMPT enabled kernels, we must refrain from
using a CPU index when preemption is enabled. As a result, this change
moves the trace_set_debug_header call (which calls smp_processor_id)
within trace_get_tcd and trace_put_tcd (which disable and enable
preemption respectively).

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #160

Details

Provenance
Prakash Surya <surya1@llnl.gov>Authored on Aug 22 2012, 7:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 23 2012, 5:01 PM
Parents
rG039bae18ca30: Add copy-builtin to EXTRA_DIST
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9baf44bc17dd: Wrap trace_set_debug_header in trace_[get|put]_tcd (authored by Prakash Surya <surya1@llnl.gov>).Aug 23 2012, 5:01 PM