login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
31
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Steven Rostedt
Subject:
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
Date: Monday, August 30, 2010 - 6:31 pm
On Wed, 2010-08-25 at 11:32 +1000, Anton Blanchard wrote:
quoted text
> save_stack_trace() stores the instruction pointer, not the function > descriptor. On ppc64 the trace stack code currently dereferences the > instruction pointer and shows 8 bytes of instructions in our backtraces: > > # cat /sys/kernel/debug/tracing/stack_trace > Depth Size Location (26 entries) > ----- ---- -------- > 0) 5424 112 0x6000000048000004 > 1) 5312 160 0x60000000ebad01b0 > 2) 5152 160 0x2c23000041c20030 > 3) 4992 240 0x600000007c781b79 > 4) 4752 160 0xe84100284800000c > 5) 4592 192 0x600000002fa30000 > 6) 4400 256 0x7f1800347b7407e0 > 7) 4144 208 0xe89f0108f87f0070 > 8) 3936 272 0xe84100282fa30000 > > Since we aren't dealing with function descriptors, use %pS instead of %pF > to fix it: > > # cat /sys/kernel/debug/tracing/stack_trace > Depth Size Location (26 entries) > ----- ---- -------- > 0) 5424 112 ftrace_call+0x4/0x8 > 1) 5312 160 .current_io_context+0x28/0x74 > 2) 5152 160 .get_io_context+0x48/0xa0 > 3) 4992 240 .cfq_set_request+0x94/0x4c4 > 4) 4752 160 .elv_set_request+0x60/0x84 > 5) 4592 192 .get_request+0x2d4/0x468 > 6) 4400 256 .get_request_wait+0x7c/0x258 > 7) 4144 208 .__make_request+0x49c/0x610 > 8) 3936 272 .generic_make_request+0x390/0x434 > > Signed-off-by: Anton Blanchard <anton@samba.org>
Thanks, I'll test this to make sure it doesn't break x86, and then push it into a stable/-rc patch queue. -- Steve
quoted text
> --- > > Index: powerpc.git/kernel/trace/trace_stack.c > =================================================================== > --- powerpc.git.orig/kernel/trace/trace_stack.c 2010-08-25 11:03:52.337982567 +1000 > +++ powerpc.git/kernel/trace/trace_stack.c 2010-08-25 11:03:55.018371055 +1000 > @@ -249,7 +249,7 @@ static int trace_lookup_stack(struct seq > { > unsigned long addr = stack_dump_trace[i]; > > - return seq_printf(m, "%pF\n", (void *)addr); > + return seq_printf(m, "%pS\n", (void *)addr); > } > > static void print_disabled(struct seq_file *m)
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] tracing/trace_stack: Fix stack trace on ppc64
, Anton Blanchard
, (Tue Aug 24, 6:32 pm)
[tip:perf/urgent] tracing/trace_stack: Fix stack trace on ...
, tip-bot for Anton Bl ...
, (Wed Aug 25, 5:58 am)
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
, Steven Rostedt
, (Mon Aug 30, 6:31 pm)
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
, Frederic Weisbecker
, (Tue Aug 31, 7:21 am)
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
, Steven Rostedt
, (Tue Aug 31, 7:58 am)
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
, Frederic Weisbecker
, (Tue Aug 31, 8:14 am)
Re: [PATCH] tracing/trace_stack: Fix stack trace on ppc64
, Ingo Molnar
, (Tue Aug 31, 10:36 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate