Browse Source

Bernhard C. Schrenk:


			
			
				rocklinux
			
			
		
Bernhard C. Schrenk 20 years ago
parent
commit
a54b27c1ba
2 changed files with 10 additions and 4 deletions
  1. +7
    -2
      misc/tools-source/fl_stparse.c
  2. +3
    -2
      scripts/Build-Pkg

+ 7
- 2
misc/tools-source/fl_stparse.c

@ -130,11 +130,17 @@ int main(int argc, char ** argv) {
do { do {
// ignore this line if syscall returned error // ignore this line if syscall returned error
if ( strstr(line, " = -1 E") ) continue; if ( strstr(line, " = -1 E") ) continue;
if ( sscanf(line, "%d fork() = %d", &pid, &newpid) == 2 || if ( sscanf(line, "%d fork() = %d", &pid, &newpid) == 2 ||
sscanf(line, "%d clone(%[^)]) = %d", &pid, buf1,
&newpid) == 3 ||
sscanf(line, "%d vfork() = %d", &pid, &newpid) == 2 || sscanf(line, "%d vfork() = %d", &pid, &newpid) == 2 ||
sscanf(line, "%d <... fork resumed> ) = %d", sscanf(line, "%d <... fork resumed> ) = %d",
&pid, &newpid) == 2 || &pid, &newpid) == 2 ||
sscanf(line, "%d <... clone resumed> %[^)]) = %d",
&pid, buf1,
&newpid) == 3 ||
sscanf(line, "%d <... clone resumed> ) = %d",
&pid, &newpid) == 2 ||
sscanf(line, "%d <... vfork resumed> ) = %d", sscanf(line, "%d <... vfork resumed> ) = %d",
&pid, &newpid) == 2) { &pid, &newpid) == 2) {
sp1 = getproc(pid)->cwd; sp1 = getproc(pid)->cwd;
@ -159,7 +165,6 @@ int main(int argc, char ** argv) {
if ( sscanf(line, "%d open(\"%[^\"]\", %s", if ( sscanf(line, "%d open(\"%[^\"]\", %s",
&pid, buf1, buf2) == 3 ) { &pid, buf1, buf2) == 3 ) {
if (strstr(buf2, "O_RDONLY") == NULL) logfile = wlog; if (strstr(buf2, "O_RDONLY") == NULL) logfile = wlog;
else logfile = rlog; else logfile = rlog;

+ 3
- 2
scripts/Build-Pkg

@ -799,8 +799,9 @@ abort() {
SYSEXIT="_exit" SYSEXIT="_exit"
fi fi
strace -o $builddir/strace.out -F -f -q -e open,creat,mkdir,` strace -o $builddir/strace.out -F -f -q -e open,creat,mkdir,`
`mknod,link,symlink,rename,utime,chdir,execve,fork,`
`vfork,$SYSEXIT,exit_group -p `cat $builddir/build.pid` &
`mknod,link,symlink,rename,utime,chdir,execve,`
`fork,clone,vfork,`
`$SYSEXIT,exit_group -p `cat $builddir/build.pid` &
strace_pid=$! ; sleep 1 ; cd $base strace_pid=$! ; sleep 1 ; cd $base
fi fi

Loading…
Cancel
Save