Re: [Jackit-devel] Re: jack, PREEMPT_DESKTOP, delayed interrupts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ingo Molnar <[email protected]> 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.

-- 
  joq
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux