virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Zoltan Kiss <zoltan.kiss@citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
	xen-devel@lists.xensource.com,
	Frederic Weisbecker <fweisbec@gmail.com>,
	linux-kernel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>,
	virtualization@lists.linux-foundation.org,
	Ingo Molnar <mingo@redhat.com>
Subject: Re: [PATCHv2] tracing/events: Add bounce tracing to swiotbl
Date: Thu, 26 Sep 2013 17:58:52 +0100	[thread overview]
Message-ID: <524467CC.7040908@citrix.com> (raw)
In-Reply-To: <20130925175649.GC7253@phenom.dumpdata.com>

On 25/09/13 18:56, Konrad Rzeszutek Wilk wrote:
> On Wed, Sep 18, 2013 at 05:04:17PM +0100, Zoltan Kiss wrote:
>> Hi,
>>
>> I haven't got a reply in the past 2 weeks, so I would like to bump
>> the patch, just to make sure it haven't fell off the radar.
>
> Hey,
>
> I have this in my queue to put on 3.13 as it is past the merge window.
> .. with that in mind:
>
>
> .. 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 would then rather do:

+	TP_printk("dev_name: %s dma_mask=%llx dev_addr=%llx "
+		"size=%zu swiotlb_force=",
+               __entry->swiotlb_force ? " yes" : "no",
+		__get_str(dev_name),

Or do you mean?:

+	TP_printk("dev_name: %s dma_mask=%llx dev_addr=%llx "
+		"size=%zu",
+               __entry->swiotlb_force ? " swiotlb_force" : "",
+		__get_str(dev_name),

This one doesn't tell you explicitly if swiotlb_force is NOT set, maybe 
that's not so good? And adds a bit of complexity to your grep regexp?
Either way is fine with me, but I think "swiotlb_force=0|1" is also 
pretty straightforward to understand, and I guess it makes printk 
slightly faster (I assume the conditional operator gives a little bit of 
overhead)

Regards,

Zoli

  parent reply	other threads:[~2013-09-26 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1378325465-10384-1-git-send-email-zoltan.kiss@citrix.com>
2013-09-18 16:04 ` [PATCHv2] tracing/events: Add bounce tracing to swiotbl Zoltan Kiss
2013-09-25 17:56   ` Konrad Rzeszutek Wilk
2013-09-25 18:26     ` Steven Rostedt
2013-09-26 16:58     ` Zoltan Kiss [this message]
2013-09-26 18:03       ` Konrad Rzeszutek Wilk
2013-09-04 20:11 Zoltan Kiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=524467CC.7040908@citrix.com \
    --to=zoltan.kiss@citrix.com \
    --cc=fweisbec@gmail.com \
    --cc=jeremy@goop.org \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).