From: Chris Metcalf <cmetcalf@tilera.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH 12/14] arch/tile: support new info op generated by compiler
Date: Thu, 14 Oct 2010 16:46:22 -0400 [thread overview]
Message-ID: <f2edfa1e4f9aa1aa7fea3d69f75eccabcc0f1837.1287090291.git.cmetcalf@tilera.com> (raw)
In-Reply-To: <cover.1287090280.git.cmetcalf@tilera.com>
This just syncs the backtracing support in the kernel to the
upstream backtrace library.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
---
arch/tile/include/asm/backtrace.h | 5 ++++-
arch/tile/kernel/backtrace.c | 4 ++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/arch/tile/include/asm/backtrace.h b/arch/tile/include/asm/backtrace.h
index 758ca46..f18887d 100644
--- a/arch/tile/include/asm/backtrace.h
+++ b/arch/tile/include/asm/backtrace.h
@@ -146,7 +146,10 @@ enum {
CALLER_SP_IN_R52_BASE = 4,
- CALLER_SP_OFFSET_BASE = 8
+ CALLER_SP_OFFSET_BASE = 8,
+
+ /* Marks the entry point of certain functions. */
+ ENTRY_POINT_INFO_OP = 16
};
diff --git a/arch/tile/kernel/backtrace.c b/arch/tile/kernel/backtrace.c
index d3c41c1..55a6a74 100644
--- a/arch/tile/kernel/backtrace.c
+++ b/arch/tile/kernel/backtrace.c
@@ -369,6 +369,10 @@ static void find_caller_pc_and_caller_sp(CallerLocation *location,
/* Weird; reserved value, ignore it. */
continue;
}
+ if (info_operand & ENTRY_POINT_INFO_OP) {
+ /* This info op is ignored by the backtracer. */
+ continue;
+ }
/* Skip info ops which are not in the
* "one_ago" mode we want right now.
--
1.6.5.2
next prev parent reply other threads:[~2010-10-14 21:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 21:04 [PATCH 00/14] initial batch of changes for arch/tile for 2.6.37 Chris Metcalf
2010-10-14 18:54 ` [PATCH 01/14] kmemleak: add TILE to the list of supported architectures Chris Metcalf
2010-10-14 19:09 ` [PATCH 02/14] arch/tile: provide a definition of MAP_STACK Chris Metcalf
2010-10-14 19:12 ` [PATCH 03/14] arch/tile: properly export __mb_incoherent for modules Chris Metcalf
2010-10-14 19:14 ` [PATCH 04/14] arch/tile: change lower bound on syscall error return to -4095 Chris Metcalf
2010-10-14 21:22 ` Arnd Bergmann
2010-10-15 17:17 ` Chris Metcalf
2010-10-15 20:03 ` Arnd Bergmann
2010-10-14 19:16 ` [PATCH 05/14] arch/tile: various top-level Makefile cleanups Chris Metcalf
2010-10-14 19:19 ` [PATCH 06/14] arch/tile: prevent corrupt top frame from causing backtracer runaway Chris Metcalf
2010-10-14 19:57 ` [PATCH 07/14] arch/tile: Bomb C99 comments to C89 comments in tile's <arch/sim_def.h> Chris Metcalf
2010-10-14 20:00 ` [PATCH 08/14] arch/tile: add Tilera's <arch/sim.h> header as an open-source header Chris Metcalf
2010-10-14 20:23 ` [PATCH 09/14] arch/tile: parameterize system PLs to support KVM port Chris Metcalf
2010-10-14 20:32 ` [PATCH 10/14] arch/tile: enable single-step support for TILE-Gx Chris Metcalf
2010-10-14 20:39 ` [PATCH 11/14] arch/tile: minor whitespace/naming changes for string support files Chris Metcalf
2010-10-14 20:46 ` Chris Metcalf [this message]
2010-10-14 20:48 ` [PATCH 13/14] arch/tile: make ptrace() work properly for TILE-Gx COMPAT mode Chris Metcalf
2010-10-14 20:50 ` [PATCH 14/14] arch/tile: convert a BUG_ON to BUILD_BUG_ON Chris Metcalf
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=f2edfa1e4f9aa1aa7fea3d69f75eccabcc0f1837.1287090291.git.cmetcalf@tilera.com \
--to=cmetcalf@tilera.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®