All of lore.kernel.org
 help / color / mirror / Atom feed
* wakeup tracer not able to capture traces on 3.4 kernel
@ 2013-08-29 14:11 Prabhat Kumar Ravi
  2013-08-29 15:12 ` Prabhat Kumar Ravi
  0 siblings, 1 reply; 3+ messages in thread
From: Prabhat Kumar Ravi @ 2013-08-29 14:11 UTC (permalink / raw)
  To: linux-kernel

Hi,

I trying to capture traces through wakeup tracer, but not able to
capture it on 3.4 kernel with cortex A9 processor, armv7.
{{{
/ # mount -t debugfs nodev /debug
/ # sysctl kernel.ftrace_enabled=1
kernel.ftrace_enabled = 1
/ # echo wakeup > /debug/tracing/current_tracer
/ # echo latency-format > /debug/tracing/trace_options
/ # echo 0 > /debug/tracing/tracing_max_latency
/ # echo 1 > /debug/tracing/tracing_on
/ # sleep 10
/ # echo 0 > /debug/tracing/tracing_on
/ # cat /debug/tracing/trace
# tracer: wakeup
#
}}}

Please suggest me where I am wrong.

Regards,
Prabhat

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

* Re: wakeup tracer not able to capture traces on 3.4 kernel
  2013-08-29 14:11 wakeup tracer not able to capture traces on 3.4 kernel Prabhat Kumar Ravi
@ 2013-08-29 15:12 ` Prabhat Kumar Ravi
  2013-08-30 15:59   ` Prabhat Kumar Ravi
  0 siblings, 1 reply; 3+ messages in thread
From: Prabhat Kumar Ravi @ 2013-08-29 15:12 UTC (permalink / raw)
  To: linux-kernel

On Thu, Aug 29, 2013 at 7:41 PM, Prabhat Kumar Ravi
<prabhatravi09@gmail.com> wrote:
> Hi,
>
> I trying to capture traces through wakeup tracer, but not able to
> capture it on 3.4 kernel with cortex A9 processor, armv7.
> {{{
> / # mount -t debugfs nodev /debug
> / # sysctl kernel.ftrace_enabled=1
> kernel.ftrace_enabled = 1
> / # echo wakeup > /debug/tracing/current_tracer
> / # echo latency-format > /debug/tracing/trace_options
> / # echo 0 > /debug/tracing/tracing_max_latency
> / # echo 1 > /debug/tracing/tracing_on
> / # sleep 10
> / # echo 0 > /debug/tracing/tracing_on
> / # cat /debug/tracing/trace
> # tracer: wakeup
> #
> }}}

My target board is xilinx-zc702,
here in kernel/trace/trace.c:
void tracing_record_cmdline(struct task_struct *tsk)
{
if (atomic_read(&trace_record_cmdline_disabled) || !tracer_enabled ||
   !tracing_is_on())
-------------------------------> it not coming here at all.
return;

trace_save_cmdline(tsk);
}

Regards,
Prabhat

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

* Re: wakeup tracer not able to capture traces on 3.4 kernel
  2013-08-29 15:12 ` Prabhat Kumar Ravi
@ 2013-08-30 15:59   ` Prabhat Kumar Ravi
  0 siblings, 0 replies; 3+ messages in thread
From: Prabhat Kumar Ravi @ 2013-08-30 15:59 UTC (permalink / raw)
  To: linux-kernel

Thanks to all, I got solution, this issue is due to lack of proper
timer implementation.

On Thu, Aug 29, 2013 at 8:42 PM, Prabhat Kumar Ravi
<prabhatravi09@gmail.com> wrote:
> On Thu, Aug 29, 2013 at 7:41 PM, Prabhat Kumar Ravi
> <prabhatravi09@gmail.com> wrote:
>> Hi,
>>
>> I trying to capture traces through wakeup tracer, but not able to
>> capture it on 3.4 kernel with cortex A9 processor, armv7.
>> {{{
>> / # mount -t debugfs nodev /debug
>> / # sysctl kernel.ftrace_enabled=1
>> kernel.ftrace_enabled = 1
>> / # echo wakeup > /debug/tracing/current_tracer
>> / # echo latency-format > /debug/tracing/trace_options
>> / # echo 0 > /debug/tracing/tracing_max_latency
>> / # echo 1 > /debug/tracing/tracing_on
>> / # sleep 10
>> / # echo 0 > /debug/tracing/tracing_on
>> / # cat /debug/tracing/trace
>> # tracer: wakeup
>> #
>> }}}
>
> My target board is xilinx-zc702,
> here in kernel/trace/trace.c:
> void tracing_record_cmdline(struct task_struct *tsk)
> {
> if (atomic_read(&trace_record_cmdline_disabled) || !tracer_enabled ||
>    !tracing_is_on())
> -------------------------------> it not coming here at all.
> return;
>
> trace_save_cmdline(tsk);
> }

 Regards,
 Prabhat

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

end of thread, other threads:[~2013-08-30 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 14:11 wakeup tracer not able to capture traces on 3.4 kernel Prabhat Kumar Ravi
2013-08-29 15:12 ` Prabhat Kumar Ravi
2013-08-30 15:59   ` Prabhat Kumar Ravi

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.