On Wed, 25 Sep 2013 13:56:49 -0400
Konrad Rzeszutek Wilk <[email protected]> wrote:
> .. snip..
> > >+ TP_printk("dev_name: %s dma_mask=%llx dev_addr=%llx "
> > >+ "size=%zu swiotlb_force=%x",
> > >+ __get_str(dev_name),
> > >+ __entry->dma_mask,
> > >+ (unsigned long long)__entry->dev_addr,
> > >+ __entry->size,
> > >+ __entry->swiotlb_force)
>
> Would it make sense to do something like this:
>
> __entry->swiotlb_force ? "swiotlb_force" : "")
I think that's fine. I do believe that the libtraceevents can parse the
"?:" syntax.
-- Steve
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization