runtime/kp_str.h - ktap

Macros defined

Source code

  1. #ifndef __KTAP_STR_H__
  2. #define __KTAP_STR_H__

  3. int kp_str_cmp(const ktap_str_t *ls, const ktap_str_t *rs);
  4. int kp_str_resize(ktap_state_t *ks, int newmask);
  5. void kp_str_freeall(ktap_state_t *ks);
  6. ktap_str_t * kp_str_new(ktap_state_t *ks, const char *str, size_t len);

  7. #define kp_str_newz(ks, s)    (kp_str_new(ks, s, strlen(s)))

  8. #include <linux/trace_seq.h>
  9. int kp_str_fmt(ktap_state_t *ks, struct trace_seq *seq);

  10. #endif /* __KTAP_STR_H__ */