This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# syscalls to be traced | |
SYSCALLS_KP="futex poll epoll_wait select mmap open close write read exit fork vfork clone execve" | |
SYSCALLS_TP="futex poll epoll_wait select mmap open close write read exit" | |
function print_with_spaces { | |
local MAX=$1 | |
local STR=$2 | |
local L=$(($MAX - $(echo $STR | wc -c))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# syscalls to be traced | |
SYSCALLS="futex poll epoll_wait select fork vfork clone exit execve mmap open close write read" | |
function print_with_spaces { | |
local MAX=$1 | |
local STR=$2 | |
local L=$(($MAX - $(echo $STR | wc -c))) | |
echo -n "$STR" |