Re: How to write marker info in MMIO trace from kernel

From: Steven Rostedt
Date: Tue May 04 2010 - 14:43:18 EST


On Tue, 2010-05-04 at 13:36 -0500, Larry Finger wrote:
> Stephen,
>
> I hope you are the correct person for this question.
>
> I would like to write information into the MMIO trace file similar to
> what the user space write to /sys/.../trace_marker would accomplish,
> however, I want to do it in place of printk statements in the driver I'm
> tracing. Do you have any suggestions on how to do this? I have tools to
> merge the trace dump with dmesg output, but the latter lags behind and I
> do not get good correlation.

You can use "trace_printk()". I think that is what you are looking for.

-- Steve


--
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/