trace.h (9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb) trace.h (1155de47cd66d0c496d5a6fb2223e980ef1285b2)
1#ifndef _LINUX_KERNEL_TRACE_H
2#define _LINUX_KERNEL_TRACE_H
3
4#include <linux/fs.h>
5#include <asm/atomic.h>
6#include <linux/sched.h>
7#include <linux/clocksource.h>
8#include <linux/ring_buffer.h>

--- 583 unchanged lines hidden (view full) ---

592print_graph_function(struct trace_iterator *iter)
593{
594 return TRACE_TYPE_UNHANDLED;
595}
596#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
597
598extern struct pid *ftrace_pid_trace;
599
1#ifndef _LINUX_KERNEL_TRACE_H
2#define _LINUX_KERNEL_TRACE_H
3
4#include <linux/fs.h>
5#include <asm/atomic.h>
6#include <linux/sched.h>
7#include <linux/clocksource.h>
8#include <linux/ring_buffer.h>

--- 583 unchanged lines hidden (view full) ---

592print_graph_function(struct trace_iterator *iter)
593{
594 return TRACE_TYPE_UNHANDLED;
595}
596#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
597
598extern struct pid *ftrace_pid_trace;
599
600#ifdef CONFIG_FUNCTION_TRACER
600static inline int ftrace_trace_task(struct task_struct *task)
601{
602 if (!ftrace_pid_trace)
603 return 1;
604
605 return test_tsk_trace_trace(task);
606}
601static inline int ftrace_trace_task(struct task_struct *task)
602{
603 if (!ftrace_pid_trace)
604 return 1;
605
606 return test_tsk_trace_trace(task);
607}
608#else
609static inline int ftrace_trace_task(struct task_struct *task)
610{
611 return 1;
612}
613#endif
607
608/*
609 * trace_iterator_flags is an enumeration that defines bit
610 * positions into trace_flags that controls the output.
611 *
612 * NOTE: These bits must match the trace_options array in
613 * trace.c.
614 */

--- 231 unchanged lines hidden ---
614
615/*
616 * trace_iterator_flags is an enumeration that defines bit
617 * positions into trace_flags that controls the output.
618 *
619 * NOTE: These bits must match the trace_options array in
620 * trace.c.
621 */

--- 231 unchanged lines hidden ---