tthtlc

Running simple-pt on my skylakes

Jan 25th, 2016
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1. sally:/home/tteikhua/simple-pt>sudo bash ./tester
  2. + trap failed ERR 0
  3. ++ pwd
  4. + export LD_LIBRARY_PATH=/home/tteikhua/simple-pt/../processor-trace/build/lib
  5. + LD_LIBRARY_PATH=/home/tteikhua/simple-pt/../processor-trace/build/lib
  6. + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:.
  7. + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:.
  8. + PREFIX=stest
  9. + EXTRA='-t '
  10. + STDCMD=loop
  11. + CMD=loop
  12. + gcc -o loop loop.c -g
  13. + run
  14. + sptcmd -t -o stest taskset -c 0 loop
  15. Wrote initial process maps to stest.maps
  16. foo
  17. cpu 0 offset 32320, 31 KB, writing to stest.0
  18. cpu 1 offset 31168, 30 KB, writing to stest.1
  19. cpu 2 offset 6800, 6 KB, writing to stest.2
  20. cpu 3 offset 1344, 1 KB, writing to stest.3
  21. cpu 4 offset 34272, 33 KB, writing to stest.4
  22. cpu 5 offset 1120, 1 KB, writing to stest.5
  23. cpu 6 offset 8576, 8 KB, writing to stest.6
  24. cpu 7 offset 1584, 1 KB, writing to stest.7
  25. Wrote sideband to stest.sideband
  26. + sptdecode --sideband stest.sideband --pt stest.0
  27. + grep -q '__libc_start_main.*main' stest.out
  28. + grep -q page_fault stest.out
  29. + run -c loop
  30. + sptcmd -t -o stest -c loop taskset -c 0 loop
  31. foo
  32. cpu 0 offset 18480, 18 KB, writing to stest.0
  33. cpu 1 offset 208, 0 KB, writing to stest.1
  34. cpu 2 offset 176, 0 KB, writing to stest.2
  35. cpu 3 offset 128, 0 KB, writing to stest.3
  36. cpu 4 offset 176, 0 KB, writing to stest.4
  37. cpu 5 offset 176, 0 KB, writing to stest.5
  38. cpu 6 offset 144, 0 KB, writing to stest.6
  39. cpu 7 offset 176, 0 KB, writing to stest.7
  40. Wrote sideband to stest.sideband
  41. + sptdecode --sideband stest.sideband --pt stest.0
  42. + grep -q '__libc_start_main.*main' stest.out
  43. + grep -q page_fault stest.out
  44. + run --disretc --no-user
  45. + sptcmd -t -o stest --disretc --no-user taskset -c 0 loop
  46. Wrote initial process maps to stest.maps
  47. foo
  48. cpu 0 offset 108432, 105 KB, writing to stest.0
  49. cpu 1 offset 96112, 93 KB, writing to stest.1
  50. cpu 2 offset 13568, 13 KB, writing to stest.2
  51. cpu 3 offset 37600, 36 KB, writing to stest.3
  52. cpu 4 offset 29648, 28 KB, writing to stest.4
  53. cpu 5 offset 1344, 1 KB, writing to stest.5
  54. cpu 6 offset 1248, 1 KB, writing to stest.6
  55. cpu 7 offset 4560, 4 KB, writing to stest.7
  56. Wrote sideband to stest.sideband
  57. + sptdecode --sideband stest.sideband --pt stest.0
  58. + grep -q page_fault stest.out
  59. + run --no-kernel -c loop
  60. + sptcmd -t -o stest --no-kernel -c loop taskset -c 0 loop
  61. foo
  62. cpu 0 offset 5792, 5 KB, writing to stest.0
  63. cpu 1 offset 208, 0 KB, writing to stest.1
  64. cpu 2 offset 176, 0 KB, writing to stest.2
  65. cpu 3 offset 176, 0 KB, writing to stest.3
  66. cpu 4 offset 144, 0 KB, writing to stest.4
  67. cpu 5 offset 208, 0 KB, writing to stest.5
  68. cpu 6 offset 144, 0 KB, writing to stest.6
  69. cpu 7 offset 144, 0 KB, writing to stest.7
  70. Wrote sideband to stest.sideband
  71. + sptdecode --sideband stest.sideband --pt stest.0
  72. + grep -q '__libc_start_main.*main' stest.out
  73. + grep -v -q page_fault stest.out
  74. + CMD=BC1s
  75. + run --no-kernel -c bc
  76. + sptcmd -t -o stest --no-kernel -c bc taskset -c 0 BC1s
  77. cpu 0 offset 935184, 2048 KB, writing to stest.0
  78. cpu 1 offset 11056, 10 KB, writing to stest.1
  79. cpu 2 offset 12096, 11 KB, writing to stest.2
  80. cpu 3 offset 12304, 12 KB, writing to stest.3
  81. cpu 4 offset 2208, 2 KB, writing to stest.4
  82. cpu 5 offset 10064, 9 KB, writing to stest.5
  83. cpu 6 offset 6496, 6 KB, writing to stest.6
  84. cpu 7 offset 11840, 11 KB, writing to stest.7
  85. Wrote sideband to stest.sideband
  86. + sptdecode --sideband stest.sideband --pt stest.0
  87. + CMD=loop
  88. ++ stat -c %s stest.0
  89. + '[' 2097152 -eq 2097152 ']'
  90. + run --no-user
  91. + sptcmd -t -o stest --no-user taskset -c 0 loop
  92. Wrote initial process maps to stest.maps
  93. foo
  94. cpu 0 offset 23344, 22 KB, writing to stest.0
  95. cpu 1 offset 2400, 2 KB, writing to stest.1
  96. cpu 2 offset 4640, 4 KB, writing to stest.2
  97. cpu 3 offset 11952, 11 KB, writing to stest.3
  98. cpu 4 offset 8352, 8 KB, writing to stest.4
  99. cpu 5 offset 5968, 5 KB, writing to stest.5
  100. cpu 6 offset 23712, 23 KB, writing to stest.6
  101. cpu 7 offset 3056, 2 KB, writing to stest.7
  102. Wrote sideband to stest.sideband
  103. + sptdecode --sideband stest.sideband --pt stest.0
  104. + grep -q page_fault stest.out
  105. + ./ptfeature cyc
  106. ++ nm loop
  107. ++ awk '$3 == "main" { print "0x" $1 } '
  108. + MAIN=0x00000000004005d6
  109. ++ nm loop
  110. ++ awk '$3 == "_fini" { print "0x" $1 } '
  111. + FINI=0x00000000004006b4
  112. + ./ptfeature filter
  113. + run --filter 0x00000000004005d6,0x00000000004006b4 -c loop
  114. + sptcmd -t -o stest --filter 0x00000000004005d6,0x00000000004006b4 -c loop taskset -c 0 loop
  115. foo
  116. cpu 0 offset 272, 0 KB, writing to stest.0
  117. cpu 1 offset 144, 0 KB, writing to stest.1
  118. cpu 2 offset 208, 0 KB, writing to stest.2
  119. cpu 3 offset 144, 0 KB, writing to stest.3
  120. cpu 4 offset 144, 0 KB, writing to stest.4
  121. cpu 5 offset 208, 0 KB, writing to stest.5
  122. cpu 6 offset 176, 0 KB, writing to stest.6
  123. cpu 7 offset 176, 0 KB, writing to stest.7
  124. Wrote sideband to stest.sideband
  125. + sptdecode --sideband stest.sideband --pt stest.0
  126. + grep -v -q write stest.out
  127. + ./ptfeature stop
  128. + run --stop-range 0x00000000004005d6,0x00000000004006b4 -K -c loop
  129. + sptcmd -t -o stest --stop-range 0x00000000004005d6,0x00000000004006b4 -K -c loop taskset -c 0 loop
  130. foo
  131. cpu 0 offset 5328, 5 KB, writing to stest.0
  132. cpu 1 offset 208, 0 KB, writing to stest.1
  133. cpu 2 offset 160, 0 KB, writing to stest.2
  134. cpu 3 offset 144, 0 KB, writing to stest.3
  135. cpu 4 offset 176, 0 KB, writing to stest.4
  136. cpu 5 offset 208, 0 KB, writing to stest.5
  137. cpu 6 offset 144, 0 KB, writing to stest.6
  138. cpu 7 offset 176, 0 KB, writing to stest.7
  139. Wrote sideband to stest.sideband
  140. + sptdecode --sideband stest.sideband --pt stest.0
  141. + grep -q __libc_start_main stest.out
  142. + grep -v -q -w main stest.out
  143. + ./ptfeature cyc psb mtc
  144. + run --cyc 1 --mtc 1 --psb 1
  145. + sptcmd -t -o stest --cyc 1 --mtc 1 --psb 1 taskset -c 0 loop
  146. Wrote initial process maps to stest.maps
  147. foo
  148. cpu 0 offset 150688, 147 KB, writing to stest.0
  149. cpu 1 offset 7232, 7 KB, writing to stest.1
  150. cpu 2 offset 63632, 62 KB, writing to stest.2
  151. cpu 3 offset 2992, 2 KB, writing to stest.3
  152. cpu 4 offset 2640, 2 KB, writing to stest.4
  153. cpu 5 offset 29840, 29 KB, writing to stest.5
  154. cpu 6 offset 114976, 112 KB, writing to stest.6
  155. cpu 7 offset 7280, 7 KB, writing to stest.7
  156. Wrote sideband to stest.sideband
  157. + sptdecode --sideband stest.sideband --pt stest.0
  158. + grep -q main stest.out
  159. + cp loop loop2
  160. + cp loop loop3
  161. + cp loop loop4
  162. + gcc -g -o dwarf dwarf.c -DTEST=1 -g -ldwarf -lelf
  163. + dwarf loop:0x00000000004005d6 loop2:0x00000000004005d6 loop3:0x00000000004005d6 loop4:0x00000000004005d6
  164. loop:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
  165. loop2:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
  166. loop3:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
  167. loop4:4005d6: 4005d6:/home/tteikhua/simple-pt/loop.c:5
  168. + rm loop2 loop3 loop4 dwarf
  169. + set +x
  170.  
  171. SUCCEEDED
Add Comment
Please, Sign In to add comment