trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove this param as it not adds any value any more
@ 2015-10-29  8:56 Praveen K. Pandey
  2015-10-29  9:13 ` Dave Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Praveen K. Pandey @ 2015-10-29  8:56 UTC (permalink / raw)
  To: trinity; +Cc: Praveen K. Pandey

Signed-off-by: Praveen K. Pandey <praveen@linux.vnet.ibm.com>
---
 Documentation/TODO         | 1 -
 children/random-syscalls.c | 8 --------
 include/params.h           | 1 -
 params.c                   | 9 +--------
 4 files changed, 1 insertion(+), 18 deletions(-)

diff --git a/Documentation/TODO b/Documentation/TODO
index 73ea04a..25b2b5d 100644
--- a/Documentation/TODO
+++ b/Documentation/TODO
@@ -228,7 +228,6 @@
   - if we find a blocking fd, check if it's a socket, and shutdown() it.
     (tricky: we need to do the shutdown in the main process, and then tell other children)
 
-* make -p take an arg for seconds
 
 * things to check.
   - execve occasionally returns -ESRCH. Why ?
diff --git a/children/random-syscalls.c b/children/random-syscalls.c
index 697661b..eae4c55 100644
--- a/children/random-syscalls.c
+++ b/children/random-syscalls.c
@@ -12,7 +12,6 @@
 #include "debug.h"
 #include "locks.h"
 #include "log.h"
-#include "params.h"	// dopause
 #include "pids.h"
 #include "random.h"
 #include "shm.h"
@@ -129,10 +128,6 @@ retry:
 	 */
 	len = strlen(rec->prebuffer);
 
-	/* If we're going to pause, might as well sync pre-syscall */
-	if (dopause == TRUE)
-		synclogs();
-
 	old = rec->tv.tv_sec;
 	do_syscall(rec);
 
@@ -172,9 +167,6 @@ retry:
 	/* Output the syscall result, and clean up */
 	output_syscall_postfix(rec);
 
-	if (dopause == TRUE)
-		sleep(1);
-
 	handle_syscall_ret(rec);
 
 	return TRUE;
diff --git a/include/params.h b/include/params.h
index 7244a2f..1c04f40 100644
--- a/include/params.h
+++ b/include/params.h
@@ -31,7 +31,6 @@ extern unsigned int specific_domain;
 extern bool do_specific_domain;
 extern char *specific_domain_optarg;
 extern bool no_domains[TRINITY_PF_MAX];
-extern bool dopause;
 extern bool show_syscall_list;
 extern bool show_ioctl_list;
 extern unsigned char quiet_level;
diff --git a/params.c b/params.c
index 8b1cd3b..0a33e2d 100644
--- a/params.c
+++ b/params.c
@@ -31,7 +31,6 @@ unsigned int user_specified_children = 0;
 bool do_specific_domain = FALSE;
 bool no_domains[TRINITY_PF_MAX];
 
-bool dopause = FALSE;
 bool show_syscall_list = FALSE;
 bool show_ioctl_list = FALSE;
 unsigned char quiet_level = 0;
@@ -92,12 +91,11 @@ static void usage(void)
 	outputerr("\n");
 	outputerr(" -c#,@: target specific syscall (takes syscall name as parameter and optionally 32 or 64 as bit-width. Default:both).\n");
 	outputerr(" -N#: do # syscalls then exit.\n");
-	outputerr(" -p:  pause after syscall.\n");
 	outputerr(" -s#: use # as random seed.\n");
 	exit(EXIT_SUCCESS);
 }
 
-static const char paramstr[] = "a:b:c:C:dDE:g:hIl:LmN:P:pqr:s:ST:V:vx:X";
+static const char paramstr[] = "a:b:c:C:dDE:g:hIl:LmN:P:qr:s:ST:V:vx:X";
 
 static const struct option longopts[] = {
 	{ "arch", required_argument, NULL, 'a' },
@@ -234,11 +232,6 @@ void parse_args(int argc, char *argv[])
 			syscalls_todo = strtoll(optarg, NULL, 10);
 			break;
 
-		/* Pause after each syscall */
-		case 'p':
-			dopause = TRUE;
-			break;
-
 		case 'P':
 			do_specific_domain = TRUE;
 			specific_domain = strtol(optarg, NULL, 10);
-- 
1.9.3

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

* Re: [PATCH] remove this param as it not adds any value any more
  2015-10-29  8:56 [PATCH] remove this param as it not adds any value any more Praveen K. Pandey
@ 2015-10-29  9:13 ` Dave Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Jones @ 2015-10-29  9:13 UTC (permalink / raw)
  To: Praveen K. Pandey; +Cc: trinity

On Thu, Oct 29, 2015 at 02:26:13PM +0530, Praveen K. Pandey wrote:
 > Signed-off-by: Praveen K. Pandey <praveen@linux.vnet.ibm.com>
 > ---
 >  Documentation/TODO         | 1 -
 >  children/random-syscalls.c | 8 --------
 >  include/params.h           | 1 -
 >  params.c                   | 9 +--------
 >  4 files changed, 1 insertion(+), 18 deletions(-)

Looks good, applied.

thanks.

	Dave

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

* Re: [PATCH] remove this param as it not adds any value any more
  2015-10-26  5:50 Praveen K. Pandey
@ 2015-10-27  1:09 ` Dave Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Jones @ 2015-10-27  1:09 UTC (permalink / raw)
  To: Praveen K. Pandey; +Cc: trinity

On Mon, Oct 26, 2015 at 11:20:09AM +0530, Praveen K. Pandey wrote:

 >  Documentation/TODO | 2 --
 >  params.c           | 1 -
 >  2 files changed, 3 deletions(-)

This is incomplete.  You also need to remove the 'p' entry
from the paramstr, the 'p' case in the switch, the dopause variable,
and all uses of it.

	Dave

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

* [PATCH] remove this param as it not adds any value any more
@ 2015-10-26  5:50 Praveen K. Pandey
  2015-10-27  1:09 ` Dave Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Praveen K. Pandey @ 2015-10-26  5:50 UTC (permalink / raw)
  To: trinity; +Cc: Praveen K. Pandey

Signed-off-by: Praveen K. Pandey <praveen@linux.vnet.ibm.com>
---
 Documentation/TODO | 2 --
 params.c           | 1 -
 2 files changed, 3 deletions(-)

diff --git a/Documentation/TODO b/Documentation/TODO
index 73ea04a..c5af727 100644
--- a/Documentation/TODO
+++ b/Documentation/TODO
@@ -228,8 +228,6 @@
   - if we find a blocking fd, check if it's a socket, and shutdown() it.
     (tricky: we need to do the shutdown in the main process, and then tell other children)
 
-* make -p take an arg for seconds
-
 * things to check.
   - execve occasionally returns -ESRCH. Why ?
   - disappearing processes. 'oom killed maybe' when no oom.
diff --git a/params.c b/params.c
index 8b1cd3b..9aa6109 100644
--- a/params.c
+++ b/params.c
@@ -92,7 +92,6 @@ static void usage(void)
 	outputerr("\n");
 	outputerr(" -c#,@: target specific syscall (takes syscall name as parameter and optionally 32 or 64 as bit-width. Default:both).\n");
 	outputerr(" -N#: do # syscalls then exit.\n");
-	outputerr(" -p:  pause after syscall.\n");
 	outputerr(" -s#: use # as random seed.\n");
 	exit(EXIT_SUCCESS);
 }
-- 
1.9.3

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

end of thread, other threads:[~2015-10-29  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-29  8:56 [PATCH] remove this param as it not adds any value any more Praveen K. Pandey
2015-10-29  9:13 ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2015-10-26  5:50 Praveen K. Pandey
2015-10-27  1:09 ` Dave Jones

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).