public inbox for trinity@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch suggestion] Probability flag for 32 bit syscalls
@ 2013-09-24 18:36 Ildar Muslukhov
  2013-09-24 18:50 ` Dave Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Ildar Muslukhov @ 2013-09-24 18:36 UTC (permalink / raw)
  To: trinity; +Cc: Dave Jones

Hi everyone,

In the children/random-syscalls.c file (function choose_syscall_table)
there is a FIXME section that right now disables 32 bit version of
syscall if a 64 bit version is present and enabled.

// FIXME: I forgot why this got disabled. Revisit.
//                      if (rand() % 100 < 10)
//

Just want to clear this one out. Should it be a command line
parameter? Something like -P 50 (for 50% probability, lets say of 32
bit). If so, what should be a default behaviour when the parameter is
not present 50/50 or 0/100 as it is right now.

-Ildar

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-25 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24 18:36 [Patch suggestion] Probability flag for 32 bit syscalls Ildar Muslukhov
2013-09-24 18:50 ` Dave Jones
2013-09-24 19:03   ` Ildar Muslukhov
2013-09-24 19:21     ` Dave Jones
2013-09-25 20:25       ` Ildar Muslukhov
2013-09-25 20:32         ` Dave Jones
2013-09-25 20:43           ` Ildar Muslukhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox