Advertisement
Guest User

poll_map.exp_hash.log

a guest
Sep 17th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 11.41 KB | None | 0 0
  1. root@linaro-developer:~/systemtap-2.2.1/testsuite# cat .systemtap-root/cache/83/stap_83df0379e451bb1ec824cc2edc7d8b76_9733_hash.log
  2. [Tue Sep 17 07:09:03 2013] script_hash:
  3. Kernel Release: 3.11.0-rc5
  4. Kernel Build Tree Path: /lib/modules/3.11.0-rc5/build
  5. Kernel Build Tree Size: 4096
  6. Kernel Build Tree Timestamp: 1378831583
  7. Architecture: arm
  8. Kernel Build Tree .config Path: /lib/modules/3.11.0-rc5/build/.config
  9. Kernel Build Tree .config Size: 65863
  10. Kernel Build Tree .config Timestamp: 1378456553
  11. Kernel Build Tree .version Path: /lib/modules/3.11.0-rc5/build/.version
  12. Kernel Build Tree .version Size: 2
  13. Kernel Build Tree .version Timestamp: 1378460367
  14. Kernel Build Tree compile.h Path: /lib/modules/3.11.0-rc5/build/include/linux/compile.h
  15. Kernel Build Tree compile.h Size: -1
  16. Kernel Build Tree compile.h Timestamp: -1
  17. Kernel Build Tree version.h Path: /lib/modules/3.11.0-rc5/build/include/linux/version.h
  18. Kernel Build Tree version.h Size: -1
  19. Kernel Build Tree version.h Timestamp: -1
  20. Kernel Build Tree utsrelease.h Path: /lib/modules/3.11.0-rc5/build/include/linux/utsrelease.h
  21. Kernel Build Tree utsrelease.h Size: -1
  22. Kernel Build Tree utsrelease.h Timestamp: -1
  23. Runtime Path: /usr/local/share/systemtap/runtime
  24. Runtime Size: 4096
  25. Runtime Timestamp: 1378282484
  26. Runtime transport Path: /usr/local/share/systemtap/runtime/transport
  27. Runtime transport Size: 4096
  28. Runtime transport Timestamp: 1378282484
  29. Runtime unwind Path: /usr/local/share/systemtap/runtime/unwind
  30. Runtime unwind Size: 4096
  31. Runtime unwind Timestamp: 1378282484
  32. Runtime sub Path: /usr/local/share/systemtap/runtime/linux
  33. Runtime sub Size: 4096
  34. Runtime sub Timestamp: 1378282485
  35. Compiler Path: /usr/bin/gcc-4.7
  36. Compiler Size: 396832
  37. Compiler Timestamp: 1366056115
  38. Systemtap Path: /usr/local/bin/stap
  39. Systemtap Size: 20050190
  40. Systemtap Timestamp: 1378282483
  41. UID: 0
  42. Bulk Mode (-b): 0
  43. Timing (-t): 0
  44. Prologue Searching (-P): 0
  45. Skip Badvars (--skip-badvars): 0
  46. Privilege (--privilege): 8
  47. Compatible (--compatible): 2.2.1
  48. Omit Werror (undocumented): 0
  49. Prologue Searching (-P): 0
  50. Error suppression (--suppress-handler-errors): 0
  51. Suppress Time Limits (--suppress-time-limits): 0
  52. Kbuildflags: CONFIG_DEBUG_INFO=Y
  53. MODULE_INFO: intree=Y
  54. Unwindsym Modules Path: kernel
  55. Unwindsym Modules Size: -1
  56. Unwindsym Modules Timestamp: -1
  57. Build ID: edf55984c0061126c3fd1fe628eb5ea2cc049314
  58. Build ID: 470dbb69052e7799f915511a3acf8fe7f0919317
  59. Build ID: edf55984c0061126c3fd1fe628eb5ea2cc049314
  60. Script:
  61. # global embedded code
  62. %{
  63. #include <linux/version.h>
  64. #include <linux/file.h>
  65. #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
  66. #include <linux/fdtable.h>
  67. #endif
  68. #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
  69. #include <linux/sched/rt.h>
  70. #endif
  71. #ifndef STAPCONF_TASK_UID
  72. #include <linux/cred.h>
  73. #endif
  74. %}
  75. %{
  76. #define __STP_GET_USER(t, warn)                     \
  77.     do {                                \
  78.         __label__ deref_fault;                  \
  79.         t *_ptr = (t*) (intptr_t) STAP_ARG_addr;        \
  80.         STAP_RETVALUE = uread (_ptr);               \
  81.         if (0) {                        \
  82.         deref_fault:                        \
  83.             STAP_RETVALUE = 0;              \
  84.             CONTEXT->last_error = NULL;         \
  85.             if (warn) {                 \
  86.                 snprintf(CONTEXT->error_buffer,     \
  87.                     sizeof(CONTEXT->error_buffer),  \
  88.                     "user %s copy fault %p", #t, _ptr); \
  89.                 _stp_warn(CONTEXT->error_buffer);   \
  90.             }                       \
  91.         }                           \
  92.     } while (0)
  93.  
  94. #define STP_GET_USER(t) __STP_GET_USER(t, 0)
  95. #define STP_GET_USER_WARN(t) __STP_GET_USER(t, 1)
  96. %}
  97. %{
  98. #define STAP_NEED_CONTEXT_TOKENIZE 1
  99. %}
  100. # globals
  101. called:long [string, string]
  102. num_polls:long
  103. # functions
  104. addr:long ()
  105. %{ /* pure */
  106.   if (CONTEXT->user_mode_p) {
  107.     STAP_RETVALUE = (intptr_t)(CONTEXT->uregs ? REG_IP(CONTEXT->uregs) : 0);
  108.   } else {
  109.     STAP_RETVALUE = (intptr_t)(CONTEXT->kregs ? REG_IP(CONTEXT->kregs) : 0);
  110.   }
  111. %}
  112. execname:string ()
  113. %{ /* pure */ /* unprivileged */
  114.     strlcpy (STAP_RETVALUE, current->comm, MAXSTRINGLEN);
  115. %}
  116. exit:unknown ()
  117. %{ /* unprivileged */
  118.     atomic_set (session_state(), STAP_SESSION_STOPPING);
  119.     _stp_exit ();
  120. %}
  121. probefunc:string ()
  122. return (user_mode())?(usymname(uaddr())):(symname(addr()))
  123. symname:string (addr:long)
  124. %{ /* pure */ /* pragma:symbols */
  125.      _stp_snprint_addr(STAP_RETVALUE, MAXSTRINGLEN, STAP_ARG_addr,
  126.                _STP_SYM_SYMBOL, NULL);
  127. %}
  128. uaddr:long ()
  129. %{ /* pure */ /* myproc-unprivileged */
  130.   struct pt_regs *uregs;
  131.  
  132.   if (CONTEXT->user_mode_p)
  133.     uregs = CONTEXT->uregs;
  134.   else
  135.     uregs = _stp_current_pt_regs();
  136.  
  137.   if (uregs)
  138.     STAP_RETVALUE = (int64_t) REG_IP(uregs);
  139.   else
  140.     STAP_RETVALUE = 0;
  141. %}
  142. user_mode:long ()
  143. %{ /* pure */ /* unprivileged */
  144.   STAP_RETVALUE = CONTEXT->user_mode_p ? 1 : 0;
  145. %}
  146. usymname:string (addr:long)
  147. %{
  148. /* pure */ /* myproc-unprivileged */ /* pragma:vma */ /* pragma:symbols */
  149.      _stp_snprint_addr(STAP_RETVALUE, MAXSTRINGLEN, STAP_ARG_addr,
  150.                _STP_SYM_SYMBOL, current);
  151. %}
  152. # probes
  153. kernel.function("vfs_truncate@fs/open.c:65").call /* pc=_stext+0xf22ec */ /* <- kernel.function("vfs_*").call */
  154. (called[execname(), probefunc()])++
  155. kernel.function("vfs_readv@fs/read_write.c:779").call /* pc=_stext+0xf4a2c */ /* <- kernel.function("vfs_*").call */
  156. (called[execname(), probefunc()])++
  157. kernel.function("vfs_write@fs/read_write.c:459").call /* pc=_stext+0xf4004 */ /* <- kernel.function("vfs_*").call */
  158. (called[execname(), probefunc()])++
  159. kernel.function("vfs_setpos@fs/read_write.c:56").call /* pc=_stext+0xf3348 */ /* <- kernel.function("vfs_*").call */
  160. (called[execname(), probefunc()])++
  161. kernel.function("vfs_read@fs/read_write.c:382").call /* pc=_stext+0xf419c */ /* <- kernel.function("vfs_*").call */
  162. (called[execname(), probefunc()])++
  163. kernel.function("vfs_llseek@fs/read_write.c:254").call /* pc=_stext+0xf33f4 */ /* <- kernel.function("vfs_*").call */
  164. (called[execname(), probefunc()])++
  165. kernel.function("vfs_writev@fs/read_write.c:792").call /* pc=_stext+0xf49ac */ /* <- kernel.function("vfs_*").call */
  166. (called[execname(), probefunc()])++
  167. kernel.function("vfs_stat@fs/stat.c:102").call /* pc=_stext+0xf8860 */ /* <- kernel.function("vfs_*").call */
  168. (called[execname(), probefunc()])++
  169. kernel.function("vfs_lstat@fs/stat.c:108").call /* pc=_stext+0xf8834 */ /* <- kernel.function("vfs_*").call */
  170. (called[execname(), probefunc()])++
  171. kernel.function("vfs_getattr@fs/stat.c:40").call /* pc=_stext+0xf86dc */ /* <- kernel.function("vfs_*").call */
  172. (called[execname(), probefunc()])++
  173. kernel.function("vfs_fstatat@fs/stat.c:71").call /* pc=_stext+0xf8790 */ /* <- kernel.function("vfs_*").call */
  174. (called[execname(), probefunc()])++
  175. kernel.function("vfs_fstat@fs/stat.c:58").call /* pc=_stext+0xf872c */ /* <- kernel.function("vfs_*").call */
  176. (called[execname(), probefunc()])++
  177. kernel.function("vfs_mknod@fs/namei.c:3165").call /* pc=_stext+0xff378 */ /* <- kernel.function("vfs_*").call */
  178. (called[execname(), probefunc()])++
  179. kernel.function("vfs_symlink@fs/namei.c:3548").call /* pc=_stext+0xfe7c8 */ /* <- kernel.function("vfs_*").call */
  180. (called[execname(), probefunc()])++
  181. kernel.function("vfs_readlink@fs/namei.c:3984").call /* pc=_stext+0xfdc44 */ /* <- kernel.function("vfs_*").call */
  182. (called[execname(), probefunc()])++
  183. kernel.function("vfs_link@fs/namei.c:3604").call /* pc=_stext+0xff1d0 */ /* <- kernel.function("vfs_*").call */
  184. (called[execname(), probefunc()])++
  185. kernel.function("vfs_rmdir@fs/namei.c:3335").call /* pc=_stext+0x100718 */ /* <- kernel.function("vfs_*").call */
  186. (called[execname(), probefunc()])++
  187. kernel.function("vfs_follow_link@fs/namei.c:4023").call /* pc=_stext+0xff0fc */ /* <- kernel.function("vfs_*").call */
  188. (called[execname(), probefunc()])++
  189. kernel.function("vfs_rename@fs/namei.c:3834").call /* pc=_stext+0x100980 */ /* <- kernel.function("vfs_*").call */
  190. (called[execname(), probefunc()])++
  191. kernel.function("vfs_create@fs/namei.c:2314").call /* pc=_stext+0xfe624 */ /* <- kernel.function("vfs_*").call */
  192. (called[execname(), probefunc()])++
  193. kernel.function("vfs_path_lookup@fs/namei.c:2057").call /* pc=_stext+0x448460 */ /* <- kernel.function("vfs_*").call */
  194. (called[execname(), probefunc()])++
  195. kernel.function("vfs_path_lookup@fs/namei.c:2057").call /* pc=_stext+0x10029c */ /* <- kernel.function("vfs_*").call */
  196. (called[execname(), probefunc()])++
  197. kernel.function("vfs_mkdir@fs/namei.c:3256").call /* pc=_stext+0xfe6e8 */ /* <- kernel.function("vfs_*").call */
  198. (called[execname(), probefunc()])++
  199. kernel.function("vfs_unlink@fs/namei.c:3434").call /* pc=_stext+0x100478 */ /* <- kernel.function("vfs_*").call */
  200. (called[execname(), probefunc()])++
  201. kernel.function("vfs_caches_init@fs/dcache.c:3065").call /* pc=_stext+0x654778 */ /* <- kernel.function("vfs_*").call */
  202. (called[execname(), probefunc()])++
  203. kernel.function("vfs_caches_init_early@fs/dcache.c:3059").call /* pc=_stext+0x6546d0 */ /* <- kernel.function("vfs_*").call */
  204. (called[execname(), probefunc()])++
  205. kernel.function("vfs_kern_mount@fs/namespace.c:775").call /* pc=_stext+0x11035c */ /* <- kernel.function("vfs_*").call */
  206. (called[execname(), probefunc()])++
  207. kernel.function("vfs_setxattr@fs/xattr.c:122").call /* pc=_stext+0x115910 */ /* <- kernel.function("vfs_*").call */
  208. (called[execname(), probefunc()])++
  209. kernel.function("vfs_listxattr@fs/xattr.c:267").call /* pc=_stext+0x114f70 */ /* <- kernel.function("vfs_*").call */
  210. (called[execname(), probefunc()])++
  211. kernel.function("vfs_xattr_cmp@fs/xattr.c:212").call /* pc=_stext+0x115c40 */ /* <- kernel.function("vfs_*").call */
  212. (called[execname(), probefunc()])++
  213. kernel.function("vfs_getxattr@fs/xattr.c:231").call /* pc=_stext+0x1154f0 */ /* <- kernel.function("vfs_*").call */
  214. (called[execname(), probefunc()])++
  215. kernel.function("vfs_removexattr@fs/xattr.c:287").call /* pc=_stext+0x1156d4 */ /* <- kernel.function("vfs_*").call */
  216. (called[execname(), probefunc()])++
  217. kernel.function("vfs_getxattr_alloc@fs/xattr.c:181").call /* pc=_stext+0x115b4c */ /* <- kernel.function("vfs_*").call */
  218. (called[execname(), probefunc()])++
  219. kernel.function("vfs_fsync@fs/sync.c:194").call /* pc=_stext+0x11f7b0 */ /* <- kernel.function("vfs_*").call */
  220. (called[execname(), probefunc()])++
  221. kernel.function("vfs_fsync_range@fs/sync.c:178").call /* pc=_stext+0x11f75c */ /* <- kernel.function("vfs_*").call */
  222. (called[execname(), probefunc()])++
  223. kernel.function("vfs_statfs@fs/statfs.c:66").call /* pc=_stext+0x120cf8 */ /* <- kernel.function("vfs_*").call */
  224. (called[execname(), probefunc()])++
  225. kernel.function("vfs_ustat@fs/statfs.c:216").call /* pc=_stext+0x120f88 */ /* <- kernel.function("vfs_*").call */
  226. (called[execname(), probefunc()])++
  227. kernel.function("vfs_setlease@fs/locks.c:1615").call /* pc=_stext+0x13bfcc */ /* <- kernel.function("vfs_*").call */
  228. (called[execname(), probefunc()])++
  229. kernel.function("vfs_lock_file@fs/locks.c:1910").call /* pc=_stext+0x13b95c */ /* <- kernel.function("vfs_*").call */
  230. (called[execname(), probefunc()])++
  231. kernel.function("vfs_cancel_lock@fs/locks.c:2247").call /* pc=_stext+0x139ff0 */ /* <- kernel.function("vfs_*").call */
  232. (called[execname(), probefunc()])++
  233. kernel.function("vfs_test_lock@fs/locks.c:1798").call /* pc=_stext+0x13af5c */ /* <- kernel.function("vfs_*").call */
  234. (called[execname(), probefunc()])++
  235. timer.ms(100) /* <- timer.ms(100) */
  236.   # locals
  237.   num_to_do:long
  238.   n:string
  239.   f:string
  240. {
  241. print("\n\n")
  242. (num_to_do) = (10)
  243. foreach ([n, f] in called-) {
  244. printf("%s called %s\\t%d times\\n", n, f, called[n, f])
  245. (num_to_do)--
  246. if ((num_to_do) <= (0)) break
  247.  
  248. }
  249. delete called
  250. (num_polls)++
  251. if ((num_polls) > (30)) exit()
  252.  
  253. }
  254. end /* <- end */
  255. if ((num_polls) <= (30)) print("FAIL\n")
  256. else print("SUCCESS\n")
  257.  
  258.  
  259.  
  260. result:83df0379e451bb1ec824cc2edc7d8b76_9733
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement