Lines Matching refs:pevent
90 struct pevent;
98 typedef int (*pevent_plugin_load_func)(struct pevent *pevent);
293 struct pevent *pevent; member
383 struct pevent { struct
455 static inline void pevent_set_flag(struct pevent *pevent, int flag) in pevent_set_flag() argument
457 pevent->flags |= flag; in pevent_set_flag()
461 __data2host2(struct pevent *pevent, unsigned short data) in __data2host2() argument
465 if (pevent->host_bigendian == pevent->file_bigendian) in __data2host2()
475 __data2host4(struct pevent *pevent, unsigned int data) in __data2host4() argument
479 if (pevent->host_bigendian == pevent->file_bigendian) in __data2host4()
491 __data2host8(struct pevent *pevent, unsigned long long data) in __data2host8() argument
495 if (pevent->host_bigendian == pevent->file_bigendian) in __data2host8()
510 #define data2host2(pevent, ptr) __data2host2(pevent, *(unsigned short *)(ptr)) argument
511 #define data2host4(pevent, ptr) __data2host4(pevent, *(unsigned int *)(ptr)) argument
512 #define data2host8(pevent, ptr) \ argument
517 __data2host8(pevent, __val); \
529 int pevent_register_comm(struct pevent *pevent, const char *comm, int pid);
530 int pevent_register_function(struct pevent *pevent, char *name,
532 int pevent_register_print_string(struct pevent *pevent, char *fmt,
534 int pevent_pid_is_registered(struct pevent *pevent, int pid);
536 void pevent_print_event(struct pevent *pevent, struct trace_seq *s,
539 int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size,
542 enum pevent_errno pevent_parse_event(struct pevent *pevent, const char *buf,
566 int pevent_register_event_handler(struct pevent *pevent, int id,
569 int pevent_register_print_function(struct pevent *pevent,
578 const char *pevent_find_function(struct pevent *pevent, unsigned long long addr);
580 pevent_find_function_address(struct pevent *pevent, unsigned long long addr);
581 unsigned long long pevent_read_number(struct pevent *pevent, const void *ptr, int size);
585 struct event_format *pevent_find_event(struct pevent *pevent, int id);
588 pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name);
590 void pevent_data_lat_fmt(struct pevent *pevent,
592 int pevent_data_type(struct pevent *pevent, struct pevent_record *rec);
593 struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type);
594 int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec);
595 const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid);
598 int pevent_strerror(struct pevent *pevent, enum pevent_errno errnum,
601 struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type);
605 static inline int pevent_get_cpus(struct pevent *pevent) in pevent_get_cpus() argument
607 return pevent->cpus; in pevent_get_cpus()
610 static inline void pevent_set_cpus(struct pevent *pevent, int cpus) in pevent_set_cpus() argument
612 pevent->cpus = cpus; in pevent_set_cpus()
615 static inline int pevent_get_long_size(struct pevent *pevent) in pevent_get_long_size() argument
617 return pevent->long_size; in pevent_get_long_size()
620 static inline void pevent_set_long_size(struct pevent *pevent, int long_size) in pevent_set_long_size() argument
622 pevent->long_size = long_size; in pevent_set_long_size()
625 static inline int pevent_get_page_size(struct pevent *pevent) in pevent_get_page_size() argument
627 return pevent->page_size; in pevent_get_page_size()
630 static inline void pevent_set_page_size(struct pevent *pevent, int _page_size) in pevent_set_page_size() argument
632 pevent->page_size = _page_size; in pevent_set_page_size()
635 static inline int pevent_is_file_bigendian(struct pevent *pevent) in pevent_is_file_bigendian() argument
637 return pevent->file_bigendian; in pevent_is_file_bigendian()
640 static inline void pevent_set_file_bigendian(struct pevent *pevent, int endian) in pevent_set_file_bigendian() argument
642 pevent->file_bigendian = endian; in pevent_set_file_bigendian()
645 static inline int pevent_is_host_bigendian(struct pevent *pevent) in pevent_is_host_bigendian() argument
647 return pevent->host_bigendian; in pevent_is_host_bigendian()
650 static inline void pevent_set_host_bigendian(struct pevent *pevent, int endian) in pevent_set_host_bigendian() argument
652 pevent->host_bigendian = endian; in pevent_set_host_bigendian()
655 static inline int pevent_is_latency_format(struct pevent *pevent) in pevent_is_latency_format() argument
657 return pevent->latency_format; in pevent_is_latency_format()
660 static inline void pevent_set_latency_format(struct pevent *pevent, int lat) in pevent_set_latency_format() argument
662 pevent->latency_format = lat; in pevent_set_latency_format()
665 struct pevent *pevent_alloc(void);
666 void pevent_free(struct pevent *pevent);
667 void pevent_ref(struct pevent *pevent);
668 void pevent_unref(struct pevent *pevent);
679 void pevent_print_funcs(struct pevent *pevent);
680 void pevent_print_printk(struct pevent *pevent);
805 struct pevent *pevent; member
810 struct event_filter *pevent_filter_alloc(struct pevent *pevent);