Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349862
b: refs/heads/master
c: e46cbf7
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jan 23, 2013
1 parent 42835bb commit 4d1aa7c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 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: c29f122cd7fc178b72b1335b1fce0dff2e5c0f5d
refs/heads/master: e46cbf75c621725964fe1f6e7013e8bcd86a0e3d
30 changes: 17 additions & 13 deletions trunk/kernel/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,18 @@ struct tracer {
#define trace_recursion_buffer() ((current)->trace_recursion & 0x3ff)

/* for function tracing recursion */
#define TRACE_INTERNAL_BIT (1<<11)
#define TRACE_INTERNAL_NMI_BIT (1<<12)
#define TRACE_INTERNAL_IRQ_BIT (1<<13)
#define TRACE_INTERNAL_SIRQ_BIT (1<<14)
#define TRACE_GLOBAL_BIT (1<<15)
#define TRACE_GLOBAL_NMI_BIT (1<<16)
#define TRACE_GLOBAL_IRQ_BIT (1<<17)
#define TRACE_GLOBAL_SIRQ_BIT (1<<18)
#define TRACE_CONTROL_BIT (1<<19)
enum {
TRACE_INTERNAL_BIT = 11,
TRACE_INTERNAL_NMI_BIT,
TRACE_INTERNAL_IRQ_BIT,
TRACE_INTERNAL_SIRQ_BIT,

TRACE_GLOBAL_BIT,
TRACE_GLOBAL_NMI_BIT,
TRACE_GLOBAL_IRQ_BIT,
TRACE_GLOBAL_SIRQ_BIT,

TRACE_CONTROL_BIT,

/*
* Abuse of the trace_recursion.
Expand All @@ -315,11 +318,12 @@ struct tracer {
* was called in irq context but we have irq tracing off. Since this
* can only be modified by current, we can reuse trace_recursion.
*/
#define TRACE_IRQ_BIT (1<<20)
TRACE_IRQ_BIT,
};

#define trace_recursion_set(bit) do { (current)->trace_recursion |= (bit); } while (0)
#define trace_recursion_clear(bit) do { (current)->trace_recursion &= ~(bit); } while (0)
#define trace_recursion_test(bit) ((current)->trace_recursion & (bit))
#define trace_recursion_set(bit) do { (current)->trace_recursion |= (1<<(bit)); } while (0)
#define trace_recursion_clear(bit) do { (current)->trace_recursion &= ~(1<<(bit)); } while (0)
#define trace_recursion_test(bit) ((current)->trace_recursion & (1<<(bit)))

#define TRACE_PIPE_ALL_CPU -1

Expand Down

0 comments on commit 4d1aa7c

Please sign in to comment.