A dynamic tracer for Linux

func.h 452B

12345678910111213141516171819202122
  1. #ifndef _FUNC_H
  2. #define _FUNC_H
  3. struct node;
  4. struct prog;
  5. struct type;
  6. struct func {
  7. const char *name;
  8. struct type *type;
  9. int static_ret:1; /* return type is statically known */
  10. int (*static_validate)(const struct func *, struct node *);
  11. int (*type_infer)(const struct func *, struct node *);
  12. };
  13. int func_static_validate(const struct func *func, struct node *n);
  14. struct type *func_return_type(const struct func *func);
  15. #endif /* _FUNC_H */