linux/kernel/stacktrace.c
<<
/opt4.1/spae=v 4.1/form=v 4.1a /opt4. href="../linux+v3.7.4/kernel/stacktrace.c">/opt4.1img src="../.static/gfx/right.png" alt=">>">/o1/spae=v/o1spae class="lxr_search">/opt/opt4.1input typ3.1hidden" nam3.1navtarget" v3.1">/opt4.1input typ3.1text" nam3.1search" id.1search">/opt4.1butt >typ3.1submit">Search/opt4.Prefsv 4.1/a>/o1/spae=vpt4. .1/div=vpt4. .1form acalue="ajax+*" method="post" onsubmit="return false;">/o1input typ3.1hidden" nam3.1ajax_lookup" id.1ajax_lookup" v3.1">/pt4. .1/form=v/pt4. .1div class="headingbott m">v 1div id.1file_contents"=
. .11/a>1spae class="comment">/*1/spae=v. .21/a>1spae class="comment"> * kernel/stacktrace.c1/spae=v. .31/a>1spae class="comment"> *1/spae=v. .41/a>1spae class="comment"> * Stack trace management funcalues1/spae=v. .51/a>1spae class="comment"> *1/spae=v. .61/a>1spae class="comment"> *  Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>1/spae=v. .71/a>1spae class="comment"> */1/spae=v. .81/a>#include <linux/sched.h1/a>>v. .91/a>#include <linux/kernel.h1/a>>v. tiona>#include <linux/export.h1/a>>v. 111/a>#include <linux/kallsyms.h1/a>>v. 121/a>#include <linux/stacktrace.h1/a>>v. 131/a>v. 141/a>void.1a href="+code=print_stack_trace" class="sref">print_stack_trace1/a>(struct.1a href="+code=stack_trace" class="sref">stack_trace1/a> *1a href="+code=trace" class="sref">trace1/a>, int.1a href="+code=spaces" class="sref">spaces1/a>)v. 151/a>{v. 161/a>        int.1a href="+code=i" class="sref">i1/a>;v. 171/a>v. 181/a>        if (1a href="+code=WARN_ON" class="sref">WARN_ON1/a>(!1a href="+code=trace" class="sref">trace1/a>->1a href="+code=entries" class="sref">entries1/a>))v. 191/a>                return;v. 201/a>v. 211/a>        for (1a href="+code=i" class="sref">i1/a> = 0;.1a href="+code=i" class="sref">i1/a> <.1a href="+code=trace" class="sref">trace1/a>->1a href="+code=nr_entries" class="sref">nr_entries1/a>;.1a href="+code=i" class="sref">i1/a>++) {v. 221/a>                1a href="+code=printk" class="sref">printk1/a>(1spae class="string">"%*c"1/spae=, 1 +.1a href="+code=spaces" class="sref">spaces1/a>, 1spae class="string">' '1/spae=);v. 231/a>                1a href="+code=print_ip_sym" class="sref">print_ip_sym1/a>(1a href="+code=trace" class="sref">trace1/a>->1a href="+code=entries" class="sref">entries1/a>[1a href="+code=i" class="sref">i1/a>]);v. 241/a>        }v. 251/a>}v. 261/a>1a href="+code=EXPORT_SYMBOL_GPL" class="sref">EXPORT_SYMBOL_GPL1/a>(1a href="+code=print_stack_trace" class="sref">print_stack_trace1/a>);v. 271/a>v. 281/a>1spae class="comment">/*1/spae=v. 291/a>1spae class="comment"> * Architectures that do not implement save_stack_trace_tsk or1/spae=v. 301/a>1spae class="comment"> * save_stack_trace_regs get this weak alias and a once-per-bootup warning1/spae=v. 311/a>1spae class="comment"> * (whenever this facility is utilized - for example by procfs):1/spae=v. 321/a>1spae class="comment"> */1/spae=v. 331/a>1a href="+code=__weak" class="sref">__weak1/a> voidv. 341/a>1a href="+code=save_stack_trace_tsk" class="sref">save_stack_trace_tsk1/a>(struct.1a href="+code=task_struct" class="sref">task_struct1/a> *1a href="+code=tsk" class="sref">tsk1/a>, struct.1a href="+code=stack_trace" class="sref">stack_trace1/a> *1a href="+code=trace" class="sref">trace1/a>)v. 351/a>{v. 361/a>        1a href="+code=WARN_ONCE" class="sref">WARN_ONCE1/a>(1, 1a href="+code=KERN_INFO" class="sref">KERN_INFO1/a> 1spae class="string">"save_stack_trace_tsk() not implemented yet.\n"1/spae=);v. 371/a>}v. 381/a>v. 391/a>1a href="+code=__weak" class="sref">__weak1/a> voidv. 401/a>1a href="+code=save_stack_trace_regs" class="sref">save_stack_trace_regs1/a>(struct.1a href="+code=pt_regs" class="sref">pt_regs1/a> *1a href="+code=regs" class="sref">regs1/a>, struct.1a href="+code=stack_trace" class="sref">stack_trace1/a> *1a href="+code=trace" class="sref">trace1/a>)v. 411/a>{v. 421/a>        1a href="+code=WARN_ONCE" class="sref">WARN_ONCE1/a>(1, 1a href="+code=KERN_INFO" class="sref">KERN_INFO1/a> 1spae class="string">"save_stack_trace_regs() not implemented yet.\n"1/spae=);v. 431/a>}v. 441/a>1/pre>
The original LXR software by the LXR community1/a>, this experimental vers	  >by lxr@linux.no1/a>.
1/div=v1div class="subfooter">
lxr.linux.no kindly hosted by Redpill Linpro AS1/a>, provider of Linux consulting and operaalues services since 1995.
1/div=v
1/body=v1/html=v