[lkml]   [2005]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Jackit-devel] Re: jack, PREEMPT_DESKTOP, delayed interrupts?
Ingo Molnar <> writes:

> - if everything fails and automatic latency tracing does not show
> anything out of ordinary, then you could try to do "user-triggered
> tracing" of jackd's critical path. This is more laborous to do, but
> should pinpoint the latency reason in a pretty sure way.
> user-triggered tracing is done via adding those special gettimeofday
> calls to jackd and recompiling jackd. I've attached an older hack
> against jackd below, you might need to merge it to recent jackd. NOTE:
> this patch will only work if you are getting xrun messages from ALSA.
> It has to be reworked if your latencies are not actual xruns.

JACK sources already include a CHECK_PREEMPTION() macro which expands
to Ingo's special gettimeofday() calls. The trace is turned on and
then off automatically before and after the realtime critical section
in the process thread (see libjack/client.c).

Ingo's suggested ALSA backend patch is not presently included.

There are probably some other places where these macros could usefully
be added. We will integrate patches adding them in appropriate spots.
They do no harm in vanilla kernels without tracing enabled.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-08-31 14:04    [W:0.063 / U:16.868 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site