Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1245857
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 5/7] ftrace: allow arch-specific stack tracer |
| Date | 2015-10-13 17:50 +0200 |
| Message-ID | <qj9ZU-2xR-13@gated-at.bofh.it> (permalink) |
| References | <qhgj9-iz-21@gated-at.bofh.it> <qhgja-iz-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 8 Oct 2015 19:01:42 +0900
AKASHI Takahiro <takahiro.akashi@linaro.org> wrote:
> include/linux/ftrace.h | 10 ++++++++++
> kernel/trace/trace_stack.c | 22 ++++++++++++++--------
> 2 files changed, 24 insertions(+), 8 deletions(-)
>
> diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
> index d77b195..e538400 100644
> --- a/include/linux/ftrace.h
> +++ b/include/linux/ftrace.h
> @@ -270,7 +270,17 @@ static inline void ftrace_kill(void) { }
> #define FTRACE_STACK_FRAME_OFFSET 0
> #endif
>
> +#define STACK_TRACE_ENTRIES 500
> +
> +struct stack_trace;
> +
> +extern unsigned stack_dump_index[];
> +extern struct stack_trace max_stack_trace;
> +extern unsigned long max_stack_size;
> +extern arch_spinlock_t max_stack_lock;
> +
> extern int stack_tracer_enabled;
> +void print_max_stack(void);
OK, if we are making these external, they need to have better name
space naming.
stack_dump_index => stack_trace_index
max_stack_trace => stack_trace_max
max_stack_size => stack_trace_max_size
print_max_stack() => stack_trace_print()
-- Steve
> int
> stack_trace_sysctl(struct ctl_table *table, int write,
> void __user *buffer, size_t *lenp,
> diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c
> index 30521ea..ff1a191 100644
> --- a/kernel/trace/trace_stack.c
> +++ b/kernel/trace/trace_stack.c
> @@ -16,24 +16,22 @@
>
> #include "trace.h"
>
--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 5/7] ftrace: allow arch-specific stack tracer AKASHI Takahiro <takahiro.akashi@linaro.org> - 2015-10-08 12:10 +0200 Re: [PATCH v3 5/7] ftrace: allow arch-specific stack tracer Steven Rostedt <rostedt@goodmis.org> - 2015-10-13 17:50 +0200
csiph-web