All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
To: linux-btrace@vger.kernel.org
Subject: Re: [Patch 2/3] driver data: pass zfcp data through blktrace
Date: Mon, 06 Oct 2008 16:45:15 +0000	[thread overview]
Message-ID: <1223311516.7724.16.camel@kitka.ibm.com> (raw)
In-Reply-To: <1216207558.26621.84.camel@kitka.ibm.com>


On Mon, 2008-10-06 at 12:59 +0200, Heiko Carstens wrote:
> > +	trace.flags = 0;
> > +	trace.magic = cpu_to_be32(ZFCP_BLK_DRV_DATA_MAGIC);
> > +	if (fsf_req->adapter->adapter_features & FSF_FEATURE_MEASUREMENT_DATA) {
> > +		trace.flags |= ZFCP_BLK_LAT_VALID;
> > +		lat_inf = &fsf_req->qtcb->prefix.prot_status_qual.latency_info;
> > +		trace.channel_lat = cpu_to_be64(lat_inf->channel_lat * ticks);
> > +		trace.fabric_lat = cpu_to_be64(lat_inf->fabric_lat * ticks);
> > +	}
> > +	if (fsf_req->status & ZFCP_STATUS_FSFREQ_ERROR)
> > +		trace.flags |= ZFCP_BLK_REQ_ERROR;
> > +	trace.inb_usage = cpu_to_be16(fsf_req->qdio_inb_usage);
> > +	trace.outb_usage = cpu_to_be16(fsf_req->qdio_outb_usage);
> 
> Could we please not add any cpu_to_be* calls to s390 only code? s390 is a big
> endian architecture and therefore these calls are confusing and pointless.
> 
> > +#else
> > +#define zfcp_fsf_trace_latency(fsf_req)	do { } while (0)
> > +#endif
> 
> Please convert that to a static inline function for type checking.


Correct. Fixed patch will follow..

Thanks,
Martin


  parent reply	other threads:[~2008-10-06 16:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16 11:25 [Patch 2/3] driver data: pass zfcp data through blktrace Martin Peschke
2008-07-16 11:25 ` Martin Peschke
2008-10-05 13:07 ` Martin Peschke
2008-10-06 10:59 ` Heiko Carstens
2008-10-06 16:45 ` Martin Peschke [this message]
2008-10-06 17:01   ` Martin Peschke
2008-10-06 17:01     ` Martin Peschke

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=1223311516.7724.16.camel@kitka.ibm.com \
    --to=mpeschke@linux.vnet.ibm.com \
    --cc=linux-btrace@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.