]> sourceware.org Git - systemtap.git/commit
tapset: introduce a few type macros, and use them in dentry
authorJosh Stone <jistone@redhat.com>
Wed, 11 Jun 2014 01:24:03 +0000 (18:24 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 11 Jun 2014 01:24:03 +0000 (18:24 -0700)
commit22a09bbe1b29e28146664fc99de6e3468f70e7f6
tree20b82415b2c449c7b4f6a45e48e2ada0d6649aea
parent250368b3d09d740f3e9614080169a07cb9015ca7
tapset: introduce a few type macros, and use them in dentry

- @offsetof(type, member): returns the byte offset of a type's member.
- @module_offsetof(module, type, member): using a specific @cast module.

- @container_of(ptr, type, member): casts from a pointer to the given
  member to a typed pointer of the container type.
- @module_container_of(ptr, module, type, member): ... with a module.

- @type_defined(type): @defined whether a type exists at all.
- @module_type_defined(module, type): ... with a module.
- @type_member_defined(type, member): @defined whether a member exists.
- @module_type_member_defined(module, type, member): ... with a module.
tapset/container_of.stpm [new file with mode: 0644]
tapset/linux/dentry.stp
tapset/offsetof.stpm [new file with mode: 0644]
tapset/type_defined.stpm [new file with mode: 0644]
This page took 0.029767 seconds and 5 git commands to generate.