All of lore.kernel.org
 help / color / mirror / Atom feed
* How to show hda trace events in a self-built kernel?
@ 2014-04-23  7:35 Lin, Mengdong
  2014-04-23  8:31 ` David Henningsson
  0 siblings, 1 reply; 3+ messages in thread
From: Lin, Mengdong @ 2014-04-23  7:35 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org,
	David Henningsson (david.henningsson@canonical.com)

Hi,

How to show hda trace events in a self-built kernel?

With a self-built kernel under Ubuntu 13.04 or 13.10, I enabled hda trace events by
#cd /sys/kernel/debug/tracing/
#echo 1 > events/hda/enable
#echo 1 > events/had_intel/enable

Then I check the codec proc entry and run "cat trace". But I got no output of the hda trace events.

But I switch to the original kernel in Ubuntu 13.04 or 13.10 and repeat the above steps, I can get the output of hda trace events.

Thanks
Mengdong

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to show hda trace events in a self-built kernel?
  2014-04-23  7:35 How to show hda trace events in a self-built kernel? Lin, Mengdong
@ 2014-04-23  8:31 ` David Henningsson
  2014-04-23  9:21   ` Lin, Mengdong
  0 siblings, 1 reply; 3+ messages in thread
From: David Henningsson @ 2014-04-23  8:31 UTC (permalink / raw)
  To: Lin, Mengdong, alsa-devel@alsa-project.org


On 2014-04-23 09:35, Lin, Mengdong wrote:
> Hi,
>
> How to show hda trace events in a self-built kernel?
>
> With a self-built kernel under Ubuntu 13.04 or 13.10, I enabled hda
> trace events by
>
> #cd /sys/kernel/debug/tracing/
>
> #echo 1 > events/hda/enable
>
> #echo 1 > events/had_intel/enable
>
> Then I check the codec proc entry and run “cat trace”. But I got no
> output of the hda trace events.

Did you forget to do:
# echo 1 > tracing_on

You might also want to set current_tracer to something.

Otherwise I don't know what the problem can be.

-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to show hda trace events in a self-built kernel?
  2014-04-23  8:31 ` David Henningsson
@ 2014-04-23  9:21   ` Lin, Mengdong
  0 siblings, 0 replies; 3+ messages in thread
From: Lin, Mengdong @ 2014-04-23  9:21 UTC (permalink / raw)
  To: David Henningsson, alsa-devel@alsa-project.org

Thanks, David!

tracing_on is '1' by default and current_tracer is 'nop', same for both kernels.

I also notice the 'net' trace event output is okay on the same kernel on which I cannot get hda trace event output.

Regards
Mengdong

> -----Original Message-----
> From: David Henningsson [mailto:david.henningsson@canonical.com]
> Sent: Wednesday, April 23, 2014 4:32 PM
> To: Lin, Mengdong; alsa-devel@alsa-project.org
> Subject: Re: How to show hda trace events in a self-built kernel?
> 
> 
> On 2014-04-23 09:35, Lin, Mengdong wrote:
> > Hi,
> >
> > How to show hda trace events in a self-built kernel?
> >
> > With a self-built kernel under Ubuntu 13.04 or 13.10, I enabled hda
> > trace events by
> >
> > #cd /sys/kernel/debug/tracing/
> >
> > #echo 1 > events/hda/enable
> >
> > #echo 1 > events/had_intel/enable
> >
> > Then I check the codec proc entry and run "cat trace". But I got no
> > output of the hda trace events.
> 
> Did you forget to do:
> # echo 1 > tracing_on

> You might also want to set current_tracer to something.
> 
> Otherwise I don't know what the problem can be.
> 
> --
> David Henningsson, Canonical Ltd.
> https://launchpad.net/~diwic

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-23  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23  7:35 How to show hda trace events in a self-built kernel? Lin, Mengdong
2014-04-23  8:31 ` David Henningsson
2014-04-23  9:21   ` Lin, Mengdong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.