Skip to content

Commit 477038b

Browse files
committed
Add clean_strace.sh to cleanup 'strace -f' output
* update README
1 parent 423d5d7 commit 477038b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ Currently supports (Mac only):
3535
## sservice
3636
Script meant to start/stop a service managed by Keepalived, by getting the latest config from git and backing up the current config before overwriting.
3737
It (will) support primary/secondary handling
38+
39+
## clean_*
40+
Various scripts to cleanup output of commands or logs.
41+
Use it as a filter in a pipe, like:
42+
```
43+
strace -f -p 666 | clean_strace.sh
44+
```

shell/bin/clean_strace.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
grep -v -e 'mprotect resumed' -e 'rt_sigaction resumed' -e 'wait resumed' -e mmap -e rt_sigaction -e mprotect -e munmap

0 commit comments

Comments
 (0)