aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_workqueue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/trace/trace_workqueue.c b/kernel/trace/trace_workqueue.c
index 4664990fe9c5..46c8dc896bd3 100644
--- a/kernel/trace/trace_workqueue.c
+++ b/kernel/trace/trace_workqueue.c
@@ -99,8 +99,6 @@ static void probe_workqueue_creation(struct task_struct *wq_thread, int cpu)
99 pr_warning("trace_workqueue: not enough memory\n"); 99 pr_warning("trace_workqueue: not enough memory\n");
100 return; 100 return;
101 } 101 }
102 tracing_record_cmdline(wq_thread);
103
104 INIT_LIST_HEAD(&cws->list); 102 INIT_LIST_HEAD(&cws->list);
105 cws->cpu = cpu; 103 cws->cpu = cpu;
106 104
@@ -195,11 +193,12 @@ static int workqueue_stat_show(struct seq_file *s, void *p)
195 struct cpu_workqueue_stats *cws = p; 193 struct cpu_workqueue_stats *cws = p;
196 unsigned long flags; 194 unsigned long flags;
197 int cpu = cws->cpu; 195 int cpu = cws->cpu;
196 struct task_struct *tsk = find_task_by_vpid(cws->pid);
198 197
199 seq_printf(s, "%3d %6d %6u %s\n", cws->cpu, 198 seq_printf(s, "%3d %6d %6u %s\n", cws->cpu,
200 atomic_read(&cws->inserted), 199 atomic_read(&cws->inserted),
201 cws->executed, 200 cws->executed,
202 trace_find_cmdline(cws->pid)); 201 tsk ? tsk->comm : "<...>");
203 202
204 spin_lock_irqsave(&workqueue_cpu_stat(cpu)->lock, flags); 203 spin_lock_irqsave(&workqueue_cpu_stat(cpu)->lock, flags);
205 if (&cws->list == workqueue_cpu_stat(cpu)->list.next) 204 if (&cws->list == workqueue_cpu_stat(cpu)->list.next)