Re: [PATCH 1/1] tracing, workqueuetrace: Make workqueue tracepoints use TRACE_EVENT macro

From: KOSAKI Motohiro
Date: Wed Apr 15 2009 - 02:47:39 EST


Hi

> > + TP_fast_assign(
> > + memcpy(__entry->thread_comm, wq_thread->comm, TASK_COMM_LEN);
>
>
>
> This is not about your patch but I see this pattern happen often. We should
> start think about a way to use tracing_record_cmdline for that.

I guess two movq isn't expensive than tracing_record_cmdline ;)


> > + TP_printk("thread=%s:%d work=%p func=%p", __entry->thread_comm,
>
> These pointer addresses are not very useful to display.
> We can zap work and display the func as a %pF.
>
> Not related to your patch: only the name of the func is useful,
> not its asm offset. A format for raw func name without offset would
> start to become very handy. I remember Andrew talked about that by the past.
>
> I wonder which format we could use for that. %pf ?

perhaps, static function need offset...




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/