diff options
author | hunt <hunt> | 2005-10-31 19:23:21 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-10-31 19:23:21 +0000 |
commit | b4e1e09cca183a8cb9879511e9a5b5e53d8c90d5 (patch) | |
tree | 59a016d15c457e897a414cfa47e3efbee04a35c7 /runtime/stack.c | |
parent | 1c9db4fdf66fe88a731319b99942872fa567d742 (diff) | |
download | systemtap-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.c | 30 |
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, ¶); + unw_init_running(__stp_show_stack_sym, ¶); else - unw_init_running(__stp_show_stack_addr, ¶); + unw_init_running(__stp_show_stack_addr, ¶); } #elif defined (__i386__) |