Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121260
b: refs/heads/master
c: 1fd8f2a
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Dec 4, 2008
1 parent f909b55 commit 2954edd
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 448 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: faec2ec505d397e9426754722b6e80d519c4938f
refs/heads/master: 1fd8f2a3f9a91b287a876cef830b21baafc8a799
46 changes: 0 additions & 46 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <linux/init.h>
#include <linux/types.h>
#include <linux/kallsyms.h>
#include <linux/bitops.h>

#ifdef CONFIG_FUNCTION_TRACER

Expand Down Expand Up @@ -392,49 +391,4 @@ static inline void ftrace_graph_init_task(struct task_struct *t) { }
static inline void ftrace_graph_exit_task(struct task_struct *t) { }
#endif

#ifdef CONFIG_TRACING
#include <linux/sched.h>

/* flags for current->trace */
enum {
TSK_TRACE_FL_TRACE_BIT = 0,
TSK_TRACE_FL_GRAPH_BIT = 1,
};
enum {
TSK_TRACE_FL_TRACE = 1 << TSK_TRACE_FL_TRACE_BIT,
TSK_TRACE_FL_GRAPH = 1 << TSK_TRACE_FL_GRAPH_BIT,
};

static inline void set_tsk_trace_trace(struct task_struct *tsk)
{
set_bit(TSK_TRACE_FL_TRACE_BIT, &tsk->trace);
}

static inline void clear_tsk_trace_trace(struct task_struct *tsk)
{
clear_bit(TSK_TRACE_FL_TRACE_BIT, &tsk->trace);
}

static inline int test_tsk_trace_trace(struct task_struct *tsk)
{
return tsk->trace & TSK_TRACE_FL_TRACE;
}

static inline void set_tsk_trace_graph(struct task_struct *tsk)
{
set_bit(TSK_TRACE_FL_GRAPH_BIT, &tsk->trace);
}

static inline void clear_tsk_trace_graph(struct task_struct *tsk)
{
clear_bit(TSK_TRACE_FL_GRAPH_BIT, &tsk->trace);
}

static inline int test_tsk_trace_graph(struct task_struct *tsk)
{
return tsk->trace & TSK_TRACE_FL_GRAPH;
}

#endif /* CONFIG_TRACING */

#endif /* _LINUX_FTRACE_H */
4 changes: 2 additions & 2 deletions trunk/include/linux/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ pid_t pid_vnr(struct pid *pid);
#define do_each_pid_task(pid, type, task) \
do { \
struct hlist_node *pos___; \
if ((pid) != NULL) \
if (pid != NULL) \
hlist_for_each_entry_rcu((task), pos___, \
&(pid)->tasks[type], pids[type].node) {
&pid->tasks[type], pids[type].node) {

/*
* Both old and new leaders may be attached to
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1380,10 +1380,6 @@ struct task_struct {
*/
atomic_t trace_overrun;
#endif
#ifdef CONFIG_TRACING
/* state flags for use by tracers */
unsigned long trace;
#endif
};

/*
Expand Down
Loading

0 comments on commit 2954edd

Please sign in to comment.