summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-10-31 19:23:21 +0000
committerhunt <hunt>2005-10-31 19:23:21 +0000
commitb4e1e09cca183a8cb9879511e9a5b5e53d8c90d5 (patch)
tree59a016d15c457e897a414cfa47e3efbee04a35c7 /runtime/stack.c
parent1c9db4fdf66fe88a731319b99942872fa567d742 (diff)
downloadsystemtap-steved-b4e1e09cca183a8cb9879511e9a5b5e53d8c90d5.tar.gz
systemtap-steved-b4e1e09cca183a8cb9879511e9a5b5e53d8c90d5.tar.xz
systemtap-steved-b4e1e09cca183a8cb9879511e9a5b5e53d8c90d5.zip
2005-10-31 Martin Hunt <hunt@redhat.com>
* ALL: Cleanup copyrights.
Diffstat (limited to 'runtime/stack.c')
-rw-r--r--runtime/stack.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/runtime/stack.c b/runtime/stack.c
index c09b8171..206d656a 100644
--- a/runtime/stack.c
+++ b/runtime/stack.c
@@ -1,4 +1,5 @@
-/* Stack tracing functions
+/* -*- linux-c -*-
+ * Stack tracing functions
* Copyright (C) 2005 Red Hat Inc.
* Copyright (C) 2005 Intel Corporation.
*
@@ -11,7 +12,6 @@
#ifndef _STACK_C_ /* -*- linux-c -*- */
#define _STACK_C_
-
/** @file stack.c
* @brief Stack Tracing Functions
*/
@@ -50,16 +50,16 @@ static void __stp_stack_sprint (String str, unsigned long *stack, int verbose, i
#elif defined (__ia64__)
struct dump_para{
- unsigned long *sp;
- String str;
+ unsigned long *sp;
+ String str;
};
static void __stp_show_stack_sym(struct unw_frame_info *info, void *arg)
{
- unsigned long ip, skip=1;
- String str = ((struct dump_para*)arg)->str;
- struct pt_regs *regs = container_of(((struct dump_para*)arg)->sp, struct pt_regs, r12);
-
+ unsigned long ip, skip=1;
+ String str = ((struct dump_para*)arg)->str;
+ struct pt_regs *regs = container_of(((struct dump_para*)arg)->sp, struct pt_regs, r12);
+
do {
unw_get_ip(info, &ip);
if (ip == 0) break;
@@ -76,10 +76,10 @@ static void __stp_show_stack_sym(struct unw_frame_info *info, void *arg)
static void __stp_show_stack_addr(struct unw_frame_info *info, void *arg)
{
- unsigned long ip, skip=1;
- String str = ((struct dump_para*)arg)->str;
- struct pt_regs *regs = container_of(((struct dump_para*)arg)->sp, struct pt_regs, r12);
-
+ unsigned long ip, skip=1;
+ String str = ((struct dump_para*)arg)->str;
+ struct pt_regs *regs = container_of(((struct dump_para*)arg)->sp, struct pt_regs, r12);
+
do {
unw_get_ip(info, &ip);
if (ip == 0) break;
@@ -94,14 +94,14 @@ static void __stp_show_stack_addr(struct unw_frame_info *info, void *arg)
static void __stp_stack_sprint (String str, unsigned long *stack, int verbose, int levels)
{
- struct dump_para para;
+ struct dump_para para;
para.str = str;
para.sp = stack;
if (verbose)
- unw_init_running(__stp_show_stack_sym, &para);
+ unw_init_running(__stp_show_stack_sym, &para);
else
- unw_init_running(__stp_show_stack_addr, &para);
+ unw_init_running(__stp_show_stack_addr, &para);
}
#elif defined (__i386__)