Skip to content

Instantly share code, notes, and snippets.

View ldorau's full-sized avatar

Lukasz Dorau ldorau

  • Intel
  • Gdansk, Poland
View GitHub Profile
#!/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)))
#!/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"