diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/semaphore.c | 2 | ||||
-rw-r--r-- | kernel/trace/trace.c | 4 | ||||
-rw-r--r-- | kernel/trace/trace.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/kernel/semaphore.c b/kernel/semaphore.c index 5c2942e768cd..1a064adab658 100644 --- a/kernel/semaphore.c +++ b/kernel/semaphore.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/sched.h> | 31 | #include <linux/sched.h> |
32 | #include <linux/semaphore.h> | 32 | #include <linux/semaphore.h> |
33 | #include <linux/spinlock.h> | 33 | #include <linux/spinlock.h> |
34 | #include <linux/ftrace.h> | ||
34 | 35 | ||
35 | static noinline void __down(struct semaphore *sem); | 36 | static noinline void __down(struct semaphore *sem); |
36 | static noinline int __down_interruptible(struct semaphore *sem); | 37 | static noinline int __down_interruptible(struct semaphore *sem); |
@@ -53,6 +54,7 @@ void down(struct semaphore *sem) | |||
53 | { | 54 | { |
54 | unsigned long flags; | 55 | unsigned long flags; |
55 | 56 | ||
57 | ftrace_special(sem->count, 0, __LINE__); | ||
56 | spin_lock_irqsave(&sem->lock, flags); | 58 | spin_lock_irqsave(&sem->lock, flags); |
57 | if (likely(sem->count > 0)) | 59 | if (likely(sem->count > 0)) |
58 | sem->count--; | 60 | sem->count--; |
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2824cf48cdca..3271916ff033 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -901,7 +901,7 @@ tracing_sched_switch_trace(struct trace_array *tr, | |||
901 | entry->ctx.next_pid = next->pid; | 901 | entry->ctx.next_pid = next->pid; |
902 | entry->ctx.next_prio = next->prio; | 902 | entry->ctx.next_prio = next->prio; |
903 | entry->ctx.next_state = next->state; | 903 | entry->ctx.next_state = next->state; |
904 | __trace_stack(tr, data, flags, 4); | 904 | __trace_stack(tr, data, flags, 5); |
905 | __raw_spin_unlock(&data->lock); | 905 | __raw_spin_unlock(&data->lock); |
906 | raw_local_irq_restore(irq_flags); | 906 | raw_local_irq_restore(irq_flags); |
907 | } | 907 | } |
@@ -927,7 +927,7 @@ tracing_sched_wakeup_trace(struct trace_array *tr, | |||
927 | entry->ctx.next_pid = wakee->pid; | 927 | entry->ctx.next_pid = wakee->pid; |
928 | entry->ctx.next_prio = wakee->prio; | 928 | entry->ctx.next_prio = wakee->prio; |
929 | entry->ctx.next_state = wakee->state; | 929 | entry->ctx.next_state = wakee->state; |
930 | __trace_stack(tr, data, flags, 5); | 930 | __trace_stack(tr, data, flags, 6); |
931 | __raw_spin_unlock(&data->lock); | 931 | __raw_spin_unlock(&data->lock); |
932 | raw_local_irq_restore(irq_flags); | 932 | raw_local_irq_restore(irq_flags); |
933 | 933 | ||
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index f5de0601b408..c460e85e94ed 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -51,7 +51,7 @@ struct special_entry { | |||
51 | * Stack-trace entry: | 51 | * Stack-trace entry: |
52 | */ | 52 | */ |
53 | 53 | ||
54 | #define FTRACE_STACK_ENTRIES 5 | 54 | #define FTRACE_STACK_ENTRIES 8 |
55 | 55 | ||
56 | struct stack_entry { | 56 | struct stack_entry { |
57 | unsigned long caller[FTRACE_STACK_ENTRIES]; | 57 | unsigned long caller[FTRACE_STACK_ENTRIES]; |