Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146209
b: refs/heads/master
c: a202355
h: refs/heads/master
i:
  146207: 8d60fc4
v: v3
  • Loading branch information
Tim Bird authored and Steven Rostedt committed Jun 3, 2009
1 parent 904f34d commit d0da116
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 236 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: 64edbc562034f2ec3fce382cb208fab40586d005
refs/heads/master: a2023556409cf7fec5d67a26f7fcfa57c5a4086d
100 changes: 0 additions & 100 deletions trunk/include/trace/events/workqueue.h

This file was deleted.

25 changes: 25 additions & 0 deletions trunk/include/trace/workqueue.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef __TRACE_WORKQUEUE_H
#define __TRACE_WORKQUEUE_H

#include <linux/tracepoint.h>
#include <linux/workqueue.h>
#include <linux/sched.h>

DECLARE_TRACE(workqueue_insertion,
TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
TP_ARGS(wq_thread, work));

DECLARE_TRACE(workqueue_execution,
TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
TP_ARGS(wq_thread, work));

/* Trace the creation of one workqueue thread on a cpu */
DECLARE_TRACE(workqueue_creation,
TP_PROTO(struct task_struct *wq_thread, int cpu),
TP_ARGS(wq_thread, cpu));

DECLARE_TRACE(workqueue_destruction,
TP_PROTO(struct task_struct *wq_thread),
TP_ARGS(wq_thread));

#endif /* __TRACE_WORKQUEUE_H */
2 changes: 1 addition & 1 deletion trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ void ring_buffer_discard_commit(struct ring_buffer *buffer,

bpage = cpu_buffer->tail_page;

if (bpage == (void *)addr && rb_page_write(bpage) == old_index) {
if (bpage->page == (void *)addr && rb_page_write(bpage) == old_index) {
/*
* This is on the tail page. It is possible that
* a write could come in and move the tail page
Expand Down
Loading

0 comments on commit d0da116

Please sign in to comment.