From: Lee Nipper <lee.nipper@freescale.com>
To: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: powerpc ftrace functionality
Date: Mon, 19 Jan 2009 14:51:18 -0600 [thread overview]
Message-ID: <1232398278.24188.318.camel@al08linux99> (raw)
Is ftrace functional with latest kernel on powerpc (32-bit) ?
I was checking basic functionality using the README steps.
The output of tracing/trace includes the header but nothing more (no trace lines).
It appears broken unless I'm missing something.
Below is the interaction.
Lee
# mkdir /debug
# mount -t debugfs nodev /debug
# cat /debug/tracing/available_tracers
wakeup function sched_switch nop
# cat /debug/tracing/current_tracer
nop
# echo sched_switch > /debug/tracing/current_tracer
# cat /debug/tracing/current_tracer
sched_switch
# cat /debug/tracing/trace_options
print-parent nosym-offset nosym-addr noverbose noraw nohex nobin noblock nostack
trace nosched-tree ftrace_printk noftrace_preempt nobranch annotate nouserstackt
race nosym-userobj noprintk-msg-only
# echo 1 > /debug/tracing/tracing_enabled
# sleep 1
# cat /debug/tracing/trace > /tmp/trace.txt
# echo 0 > /debug/tracing/tracing_enabled
# cat /tmp/trace.txt
# tracer: sched_switch
#
# TASK-PID CPU# TIMESTAMP FUNCTION
# | | | | |
#
#
#
# uname -a
Linux freescale 2.6.29-rc2-00013-gf3b8436 #12 Mon Jan 19 11:28:33 CST 2009 ppc unknown
#
# gunzip -c - < /proc/config.gz | egrep 'FTRACE|FUNCTION|SCHED_TRACER'
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_FUNCTION_TRACER=y
CONFIG_SCHED_TRACER=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_FTRACE_MCOUNT_RECORD=y
CONFIG_FTRACE_SELFTEST=y
CONFIG_FTRACE_STARTUP_TEST=y
# dmesg | grep trace
ftrace: allocating 8054 entries in 40 pages
Testing tracer nop: PASSED
Testing tracer sched_switch: PASSED
Testing tracer function: PASSED
Testing dynamic ftrace: PASSED
Testing tracer wakeup: PASSED
#
next reply other threads:[~2009-01-19 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-19 20:51 Lee Nipper [this message]
2009-01-23 16:52 ` powerpc ftrace functionality Lee Nipper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1232398278.24188.318.camel@al08linux99 \
--to=lee.nipper@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).