Debian Codegraph @

ctdb/tests/UNIT/eventscripts/stubs/gstack

raw
1 #!/bin/sh
2
3 pid="$1"
4
5 if [ -n "$FAKE_PS_MAP" ]; then
6 command=$(echo "$FAKE_PS_MAP" |
7 awk -v pid="$pid" '$1 == pid { print $2 }')
8 fi
9
10 if [ -z "$command" ]; then
11 command="smbd"
12 fi
13
14 cat <<EOF
15 Thread 1 (Thread 0x7f688fbfb180 (LWP ${pid}) "${command}"):
16 #0 0x00007f688ff7a076 in open (FAKE ARGS...) at FAKE PLACE
17 ....
18 #3 0x000055cd368ead72 in main (argc=<optimized out>, argv=<optimized out>) at ${command}.c
19 EOF