Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sally:/home/tteikhua/simple-pt>sudo bash ./tester
- + trap failed ERR 0
- ++ pwd
- + export LD_LIBRARY_PATH=/home/tteikhua/simple-pt/../processor-trace/build/lib
- + LD_LIBRARY_PATH=/home/tteikhua/simple-pt/../processor-trace/build/lib
- + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:.
- + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:.
- + PREFIX=stest
- + EXTRA='-t '
- + STDCMD=loop
- + CMD=loop
- + gcc -o loop loop.c -g
- + run
- + sptcmd -t -o stest taskset -c 0 loop
- Wrote initial process maps to stest.maps
- foo
- cpu 0 offset 32320, 31 KB, writing to stest.0
- cpu 1 offset 31168, 30 KB, writing to stest.1
- cpu 2 offset 6800, 6 KB, writing to stest.2
- cpu 3 offset 1344, 1 KB, writing to stest.3
- cpu 4 offset 34272, 33 KB, writing to stest.4
- cpu 5 offset 1120, 1 KB, writing to stest.5
- cpu 6 offset 8576, 8 KB, writing to stest.6
- cpu 7 offset 1584, 1 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q '__libc_start_main.*main' stest.out
- + grep -q page_fault stest.out
- + run -c loop
- + sptcmd -t -o stest -c loop taskset -c 0 loop
- foo
- cpu 0 offset 18480, 18 KB, writing to stest.0
- cpu 1 offset 208, 0 KB, writing to stest.1
- cpu 2 offset 176, 0 KB, writing to stest.2
- cpu 3 offset 128, 0 KB, writing to stest.3
- cpu 4 offset 176, 0 KB, writing to stest.4
- cpu 5 offset 176, 0 KB, writing to stest.5
- cpu 6 offset 144, 0 KB, writing to stest.6
- cpu 7 offset 176, 0 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q '__libc_start_main.*main' stest.out
- + grep -q page_fault stest.out
- + run --disretc --no-user
- + sptcmd -t -o stest --disretc --no-user taskset -c 0 loop
- Wrote initial process maps to stest.maps
- foo
- cpu 0 offset 108432, 105 KB, writing to stest.0
- cpu 1 offset 96112, 93 KB, writing to stest.1
- cpu 2 offset 13568, 13 KB, writing to stest.2
- cpu 3 offset 37600, 36 KB, writing to stest.3
- cpu 4 offset 29648, 28 KB, writing to stest.4
- cpu 5 offset 1344, 1 KB, writing to stest.5
- cpu 6 offset 1248, 1 KB, writing to stest.6
- cpu 7 offset 4560, 4 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q page_fault stest.out
- + run --no-kernel -c loop
- + sptcmd -t -o stest --no-kernel -c loop taskset -c 0 loop
- foo
- cpu 0 offset 5792, 5 KB, writing to stest.0
- cpu 1 offset 208, 0 KB, writing to stest.1
- cpu 2 offset 176, 0 KB, writing to stest.2
- cpu 3 offset 176, 0 KB, writing to stest.3
- cpu 4 offset 144, 0 KB, writing to stest.4
- cpu 5 offset 208, 0 KB, writing to stest.5
- cpu 6 offset 144, 0 KB, writing to stest.6
- cpu 7 offset 144, 0 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q '__libc_start_main.*main' stest.out
- + grep -v -q page_fault stest.out
- + CMD=BC1s
- + run --no-kernel -c bc
- + sptcmd -t -o stest --no-kernel -c bc taskset -c 0 BC1s
- cpu 0 offset 935184, 2048 KB, writing to stest.0
- cpu 1 offset 11056, 10 KB, writing to stest.1
- cpu 2 offset 12096, 11 KB, writing to stest.2
- cpu 3 offset 12304, 12 KB, writing to stest.3
- cpu 4 offset 2208, 2 KB, writing to stest.4
- cpu 5 offset 10064, 9 KB, writing to stest.5
- cpu 6 offset 6496, 6 KB, writing to stest.6
- cpu 7 offset 11840, 11 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + CMD=loop
- ++ stat -c %s stest.0
- + '[' 2097152 -eq 2097152 ']'
- + run --no-user
- + sptcmd -t -o stest --no-user taskset -c 0 loop
- Wrote initial process maps to stest.maps
- foo
- cpu 0 offset 23344, 22 KB, writing to stest.0
- cpu 1 offset 2400, 2 KB, writing to stest.1
- cpu 2 offset 4640, 4 KB, writing to stest.2
- cpu 3 offset 11952, 11 KB, writing to stest.3
- cpu 4 offset 8352, 8 KB, writing to stest.4
- cpu 5 offset 5968, 5 KB, writing to stest.5
- cpu 6 offset 23712, 23 KB, writing to stest.6
- cpu 7 offset 3056, 2 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q page_fault stest.out
- + ./ptfeature cyc
- ++ nm loop
- ++ awk '$3 == "main" { print "0x" $1 } '
- + MAIN=0x00000000004005d6
- ++ nm loop
- ++ awk '$3 == "_fini" { print "0x" $1 } '
- + FINI=0x00000000004006b4
- + ./ptfeature filter
- + run --filter 0x00000000004005d6,0x00000000004006b4 -c loop
- + sptcmd -t -o stest --filter 0x00000000004005d6,0x00000000004006b4 -c loop taskset -c 0 loop
- foo
- cpu 0 offset 272, 0 KB, writing to stest.0
- cpu 1 offset 144, 0 KB, writing to stest.1
- cpu 2 offset 208, 0 KB, writing to stest.2
- cpu 3 offset 144, 0 KB, writing to stest.3
- cpu 4 offset 144, 0 KB, writing to stest.4
- cpu 5 offset 208, 0 KB, writing to stest.5
- cpu 6 offset 176, 0 KB, writing to stest.6
- cpu 7 offset 176, 0 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -v -q write stest.out
- + ./ptfeature stop
- + run --stop-range 0x00000000004005d6,0x00000000004006b4 -K -c loop
- + sptcmd -t -o stest --stop-range 0x00000000004005d6,0x00000000004006b4 -K -c loop taskset -c 0 loop
- foo
- cpu 0 offset 5328, 5 KB, writing to stest.0
- cpu 1 offset 208, 0 KB, writing to stest.1
- cpu 2 offset 160, 0 KB, writing to stest.2
- cpu 3 offset 144, 0 KB, writing to stest.3
- cpu 4 offset 176, 0 KB, writing to stest.4
- cpu 5 offset 208, 0 KB, writing to stest.5
- cpu 6 offset 144, 0 KB, writing to stest.6
- cpu 7 offset 176, 0 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q __libc_start_main stest.out
- + grep -v -q -w main stest.out
- + ./ptfeature cyc psb mtc
- + run --cyc 1 --mtc 1 --psb 1
- + sptcmd -t -o stest --cyc 1 --mtc 1 --psb 1 taskset -c 0 loop
- Wrote initial process maps to stest.maps
- foo
- cpu 0 offset 150688, 147 KB, writing to stest.0
- cpu 1 offset 7232, 7 KB, writing to stest.1
- cpu 2 offset 63632, 62 KB, writing to stest.2
- cpu 3 offset 2992, 2 KB, writing to stest.3
- cpu 4 offset 2640, 2 KB, writing to stest.4
- cpu 5 offset 29840, 29 KB, writing to stest.5
- cpu 6 offset 114976, 112 KB, writing to stest.6
- cpu 7 offset 7280, 7 KB, writing to stest.7
- Wrote sideband to stest.sideband
- + sptdecode --sideband stest.sideband --pt stest.0
- + grep -q main stest.out
- + cp loop loop2
- + cp loop loop3
- + cp loop loop4
- + gcc -g -o dwarf dwarf.c -DTEST=1 -g -ldwarf -lelf
- + dwarf loop:0x00000000004005d6 loop2:0x00000000004005d6 loop3:0x00000000004005d6 loop4:0x00000000004005d6
- loop:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
- loop2:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
- loop3:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
- loop4:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
- + rm loop2 loop3 loop4 dwarf
- + set +x
- SUCCEEDED
Add Comment
Please, Sign In to add comment