All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Grant Grundler <grundler@google.com>
Cc: FIO_list <fio@vger.kernel.org>
Subject: Re: rand_seed declarations not consistent...is that ok?
Date: Tue, 28 Jan 2014 12:24:03 -0700	[thread overview]
Message-ID: <20140128192359.GB15212@kernel.dk> (raw)
In-Reply-To: <CANEJEGu_qW7rBB75B-Xppy8X-_=+dy951H7DeJ+9phJ4L=LVWg@mail.gmail.com>

On Tue, Jan 28 2014, Grant Grundler wrote:
> cscope tells me:
> C symbol: rand_seed
> 
>   File             Function                  Line
> 0 ioengine.h       <global>                    59 unsigned long rand_seed;
> 1 options.c        <global>                  1660 .off1 =
>                                                   td_var_offset(rand_seed),
> 2 thread_options.h <global>                   103 unsigned int rand_seed;
> 3 thread_options.h <global>                   327 uint32_t rand_seed;
> 4 verify.h         <global>                    34 uint64_t rand_seed;
> 
> Any reason we have 4 different declarations of the same name?
> Thoughts on if/how this should be fixed?
> 
> Even if it's not wrong, it's definitely confusing.

Heh no. But they are not all the same. Could be cleaned up, but the
parser has some expectations and the thread_options.h one has the local
and over-the-net client version (which is why they are different, one
matches the parser and the other is independent). I would suggest we
make 0/3/4 a uint64_t to unify that part. The option could be made
unsigned long long and the type changed.

-- 
Jens Axboe


  reply	other threads:[~2014-01-28 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-28 19:10 rand_seed declarations not consistent...is that ok? Grant Grundler
2014-01-28 19:24 ` Jens Axboe [this message]
2014-01-28 21:06   ` Grant Grundler

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=20140128192359.GB15212@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=grundler@google.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 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.