Skip to content
Browse files

wrapper.c: don't set "PROCESS START" marker

Now the full-trace.sh script uses the first context switch to the traced
process as a marker to trim the trace. It is useless to set the "PROCESS
START" marker.
  • Loading branch information...
1 parent 59ea825 commit 429f725d17ebd28dcd00eeb1b85f6f3fab955a97 @ariava ariava committed with Dec 15, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 wrapper.c
View
12 wrapper.c
@@ -58,8 +58,7 @@ int main (int argc, char **argv)
exit(-1);
if (fork() > 0) {
- int fd_pid, fd_mrk;
- char line[64];
+ int fd_pid;
char pid[64];
int s, ret;
@@ -72,15 +71,6 @@ int main (int argc, char **argv)
}
close(fd_pid);
- fd_mrk = open(tracing_file("trace_marker"), O_WRONLY);
- s = sprintf(line, "----------- PROCESS START -----------\n");
- ret = write(fd_mrk, line, s);
- if (ret == -1) {
- printf("error!\n");
- exit(1);
- }
- close(fd_mrk);
-
execvp(argv[1], argv+1);
}

0 comments on commit 429f725

Please sign in to comment.
Something went wrong with that request. Please try again.