History

Merge commit 'v2.6.35-rc3' into perf/core

Merge reason: Go from -rc1 base to -rc3 base, merge in fixes.

Ingo Molnar committed 16 years ago

Commit 646b1db2 parents 0f2c3de 7e27d6e1019 files · +83287 −7720Browse files

Showing the changes to include/trace (3 of 1019 files). Show all

Unified · Split

3 files
  1. include/trace/events/ext4.h +1 −4
  2. include/trace/events/sched.h +18 −1
  3. include/trace/events/signal.h +2 −1
include/trace/events/ext4.h+1−4
@@ -306,7 +306,6 @@ TRACE_EVENT(ext4_da_writepages_result, · 305 unmodified lines
306306 __field( int, pages_written )
307307 __field( long, pages_skipped )
308308 __field( char, more_io )
309− __field( char, no_nrwrite_index_update )
310309 __field( pgoff_t, writeback_index )
311310 ),
312311
@@ -317,16 +316,14 @@ TRACE_EVENT(ext4_da_writepages_result, · 4 unmodified lines
317316 __entry->pages_written = pages_written;
318317 __entry->pages_skipped = wbc->pages_skipped;
319318 __entry->more_io = wbc->more_io;
320− __entry->no_nrwrite_index_update = wbc->no_nrwrite_index_update;
321319 __entry->writeback_index = inode->i_mapping->writeback_index;
322320 ),
323321
324− TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld more_io %d no_nrwrite_index_update %d writeback_index %lu",
322+ TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld more_io %d writeback_index %lu",
325323 jbd2_dev_to_name(__entry->dev),
326324 (unsigned long) __entry->ino, __entry->ret,
327325 __entry->pages_written, __entry->pages_skipped,
328326 __entry->more_io,
329− __entry->no_nrwrite_index_update,
330327 (unsigned long) __entry->writeback_index)
331328 );
332329
include/trace/events/sched.h+18−1
@@ -115,6 +115,23 @@ DEFINE_EVENT(sched_wakeup_template, sched_wakeup_new, · 114 unmodified lines
115115 TP_PROTO(struct task_struct *p, int success),
116116 TP_ARGS(p, success));
117117
118+#ifdef CREATE_TRACE_POINTS
119+static inline long __trace_sched_switch_state(struct task_struct *p)
120+{
121+ long state = p->state;
122+
123+#ifdef CONFIG_PREEMPT
124+ /*
125+ * For all intents and purposes a preempted task is a running task.
126+ */
127+ if (task_thread_info(p)->preempt_count & PREEMPT_ACTIVE)
128+ state = TASK_RUNNING;
129+#endif
130+
131+ return state;
132+}
133+#endif
134+
118135 /*
119136 * Tracepoint for task switches, performed by the scheduler:
120137 */
@@ -139,7 +156,7 @@ TRACE_EVENT(sched_switch, · 18 unmodified lines
139156 memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN);
140157 __entry->prev_pid = prev->pid;
141158 __entry->prev_prio = prev->prio;
142− __entry->prev_state = prev->state;
159+ __entry->prev_state = __trace_sched_switch_state(prev);
143160 memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN);
144161 __entry->next_pid = next->pid;
145162 __entry->next_prio = next->prio;
include/trace/events/signal.h+2−1
@@ -10,7 +10,8 @@ · 9 unmodified lines
1010
1111 #define TP_STORE_SIGINFO(__entry, info) \
1212 do { \
13− if (info == SEND_SIG_NOINFO) { \
13+ if (info == SEND_SIG_NOINFO || \
14+ info == SEND_SIG_FORCED) { \
1415 __entry->errno = 0; \
1516 __entry->code = SI_USER; \
1617 } else if (info == SEND_SIG_PRIV) { \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t