lkml.org 
[lkml]   [2009]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/5] tracing/events: use %pf in workqueue trace events
Date
From: Anton Blanchard <anton@samba.org>

Using %pf instead of %pF supresses printing of the function offset
which will always be 0.

[ Impact: cleanup workqueue events traces output ]

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
---
Documentation/trace/workqueue.txt | 6 +++---
include/trace/events/workqueue.h | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Documentation/trace/workqueue.txt b/Documentation/trace/workqueue.txt
index 4019a8a..c446b28 100644
--- a/Documentation/trace/workqueue.txt
+++ b/Documentation/trace/workqueue.txt
@@ -107,8 +107,8 @@ worklet_cancel worklet_enqueue worklet_execute workqueue_destruction
# TASK-PID CPU# TIMESTAMP FUNCTION
# | | | | |

-<...>-5627 [000] 4597.858645: worklet_enqueue: thread=ata/0:508 func=ata_pio_task+0x0/0x280 cpu=0
-<...>-508 [000] 4597.858660: worklet_execute: thread=ata/0:508 work=ffff88007e9e67b8 func=ata_pio_task+0x0/0x280
+<...>-5627 [000] 4597.858645: worklet_enqueue: thread=ata/0:508 func=ata_pio_task cpu=0
+<...>-508 [000] 4597.858660: worklet_execute: thread=ata/0:508 work=ffff88007e9e67b8 func=ata_pio_task
<...>-508 [000] 4597.858684: worklet_complete: thread=ata/0:508 work=ffff88007e9e67b8
-<...>-2437 [000] 4597.861259: worklet_cancel: func=ata_pio_task+0x0/0x280
+<...>-2437 [000] 4597.861259: worklet_cancel: func=ata_pio_task
[...]
diff --git a/include/trace/events/workqueue.h b/include/trace/events/workqueue.h
index 49608c7..6cb7833 100644
--- a/include/trace/events/workqueue.h
+++ b/include/trace/events/workqueue.h
@@ -32,7 +32,7 @@ TRACE_EVENT(worklet_enqueue,
__entry->cpu = cpu;
),

- TP_printk("thread=%s:%d func=%pF cpu=%d", __entry->thread_comm,
+ TP_printk("thread=%s:%d func=%pf cpu=%d", __entry->thread_comm,
__entry->thread_pid, __entry->func, __entry->cpu)
);

@@ -63,7 +63,7 @@ TRACE_EVENT(worklet_enqueue_delayed,
__entry->delay = delay;
),

- TP_printk("thread=%s:%d func=%pF cpu=%d delay=%lu",
+ TP_printk("thread=%s:%d func=%pf cpu=%d delay=%lu",
__entry->thread_comm, __entry->thread_pid, __entry->func,
__entry->cpu, __entry->delay)
);
@@ -88,7 +88,7 @@ TRACE_EVENT(worklet_execute,
__entry->func = work->func;
),

- TP_printk("thread=%s:%d work=%p func=%pF", __entry->thread_comm,
+ TP_printk("thread=%s:%d work=%p func=%pf", __entry->thread_comm,
__entry->thread_pid, __entry->work, __entry->func)
);

@@ -128,7 +128,7 @@ TRACE_EVENT(worklet_cancel,
__entry->func = work->func;
),

- TP_printk("func=%pF", __entry->func)
+ TP_printk("func=%pf", __entry->func)
);

/* Trace the creation of one workqueue thread on a cpu */
--
1.6.2.3


\
 
 \ /
  Last update: 2009-06-01 19:21    [W:0.053 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site