* how to test a linux driver for SMP concurrency issues
@ 2011-06-28 12:36 Amit Nagal
2011-06-28 12:51 ` Daniel Baluta
2011-06-28 15:34 ` Mulyadi Santosa
0 siblings, 2 replies; 3+ messages in thread
From: Amit Nagal @ 2011-06-28 12:36 UTC (permalink / raw)
To: kernelnewbies
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 ?
Thanx & Regards
Amit Nagal
^ permalink raw reply [flat|nested] 3+ messages in thread
* how to test a linux driver for SMP concurrency issues
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
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Baluta @ 2011-06-28 12:51 UTC (permalink / raw)
To: kernelnewbies
On Tue, Jun 28, 2011 at 3:36 PM, 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 ?
Hi,
Check make menuconfig -> Kernel Hacking section. lockdep seems the
tool to start with.
thanks,
Daniel.
^ permalink raw reply [flat|nested] 3+ messages in thread
* how to test a linux driver for SMP concurrency issues
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
1 sibling, 0 replies; 3+ messages in thread
From: Mulyadi Santosa @ 2011-06-28 15:34 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-28 15:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).