kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how to test a linux driver for SMP concurrency issues
Date: Tue, 28 Jun 2011 22:34:25 +0700	[thread overview]
Message-ID: <BANLkTimMJsjqk+FT+xvqo-YeK=xeuzvYpQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimMADhwdJR=jOXSL=h+a5g-SN9doA@mail.gmail.com>

Hi AMit...

On Tue, Jun 28, 2011 at 19:36, Amit Nagal <helloin.amit@gmail.com> wrote:
> Hi ,
>
> i want to test a linux driver to identify concurrecy issue that may
> arise on a SMP system .
> can i be advised with ?usage of some tools / mechanisms , so that the
> driver can be made SMP safe ?

IMHO there is no easy answer here. What you need is careful code audit
and check the way you access shared resources
(variables/structures/etc).

Whenever you encounter such operations, decide whether you wanna make
it as fast path (must be done real quick) or slow path (longer delay
is acceptable).

In fast path, put spin locks locking/unlocking. In slow path, you
might use mutex or any kind of blocking locking.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

      parent reply	other threads:[~2011-06-28 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-28 12:36 how to test a linux driver for SMP concurrency issues Amit Nagal
2011-06-28 12:51 ` Daniel Baluta
2011-06-28 15:34 ` Mulyadi Santosa [this message]

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='BANLkTimMJsjqk+FT+xvqo-YeK=xeuzvYpQ@mail.gmail.com' \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 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).