Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.30 KB | None | 0 0
  1. Systemtap works fine with chmod_common:
  2. ----------
  3. probe kernel.function("chmod_common") {
  4.     printf("%x\n", $path->dentry)
  5. }
  6. ----------
  7.  
  8.  
  9. Systemtap returns error for chown_common:
  10. ----------
  11. probe kernel.function("chown_common") {
  12.     printf("%x\n", $path->dentry)
  13. }
  14. ----------
  15.  
  16.  
  17. Systemtap translator/driver (version 3.0/0.166, rpm 3.0-7.el7):
  18. ----------
  19. semantic error: while processing probe kernel.function("chown_common@fs/open.c:556") from: kernel.function("chown_common")
  20.                                                                                                                                                                                                                                              
  21. semantic error: unrecognized operation in DWARF expression [0] at 0 (0xfa: 65037, 0): identifier '$path' at ./test.stp:8:20
  22.         dieoffset: 0x1af00cd from /usr/lib/debug/lib/modules/3.10.0-514.26.2.el7.x86_64/vmlinux                                                                                                                                              
  23.         function: chown_common at fs/open.c:556                                                                                                                                                                                              
  24.         source:     printf("%x\n", $path->dentry)
  25.                                    ^
  26.  
  27. Pass 2: analysis failed.  [man error::pass2]
  28. ----------
  29.  
  30.  
  31. Systemtap translator/driver (version 3.2/0.166, commit release-3.1-225-g77dc57150b5d + changes):
  32. ----------
  33. semantic error: while processing probe kernel.function("chown_common@fs/open.c:556") from: kernel.function("chown_common")
  34.  
  35. semantic error: unhandled DW_OP operation in DWARF expression [0] at 0 (250: 65037, 0): identifier '$path' at ./test.stp:8:20
  36.         source:     printf("%x\n", $path->dentry)
  37.                                    ^
  38.  
  39. Pass 2: analysis failed.  [man error::pass2]
  40. ----------
  41.  
  42. Problematic DWARF atom is 0xfa (DW_OP_GNU_parameter_ref).
  43.  
  44. Functions definition in kernel:
  45. static int chown_common(struct path *path, uid_t user, gid_t group)
  46. static int chmod_common(struct path *path, umode_t mode)
  47.  
  48. System:
  49. CentOS Linux release 7.3.1611 (Core)
  50. Linux 3.10.0-514.26.2.el7.x86_64
  51. gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement