Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v5.3-rc7 99 lines 2.0 kB view raw
1// SPDX-License-Identifier: LGPL-2.1 2/* 3 * Copyright (C) 2009, 2010 Red Hat Inc, Steven Rostedt <srostedt@redhat.com> 4 * 5 */ 6 7#ifndef _PARSE_EVENTS_INT_H 8#define _PARSE_EVENTS_INT_H 9 10struct tep_cmdline; 11struct cmdline_list; 12struct func_map; 13struct func_list; 14struct event_handler; 15struct func_resolver; 16 17struct tep_handle { 18 int ref_count; 19 20 int header_page_ts_offset; 21 int header_page_ts_size; 22 int header_page_size_offset; 23 int header_page_size_size; 24 int header_page_data_offset; 25 int header_page_data_size; 26 int header_page_overwrite; 27 28 enum tep_endian file_bigendian; 29 enum tep_endian host_bigendian; 30 31 int latency_format; 32 33 int old_format; 34 35 int cpus; 36 int long_size; 37 int page_size; 38 39 struct tep_cmdline *cmdlines; 40 struct cmdline_list *cmdlist; 41 int cmdline_count; 42 43 struct func_map *func_map; 44 struct func_resolver *func_resolver; 45 struct func_list *funclist; 46 unsigned int func_count; 47 48 struct printk_map *printk_map; 49 struct printk_list *printklist; 50 unsigned int printk_count; 51 52 53 struct tep_event **events; 54 int nr_events; 55 struct tep_event **sort_events; 56 enum tep_event_sort_type last_type; 57 58 int type_offset; 59 int type_size; 60 61 int pid_offset; 62 int pid_size; 63 64 int pc_offset; 65 int pc_size; 66 67 int flags_offset; 68 int flags_size; 69 70 int ld_offset; 71 int ld_size; 72 73 int print_raw; 74 75 int test_filters; 76 77 int flags; 78 79 struct tep_format_field *bprint_ip_field; 80 struct tep_format_field *bprint_fmt_field; 81 struct tep_format_field *bprint_buf_field; 82 83 struct event_handler *handlers; 84 struct tep_function_handler *func_handlers; 85 86 /* cache */ 87 struct tep_event *last_event; 88 89 char *trace_clock; 90}; 91 92void tep_free_event(struct tep_event *event); 93void tep_free_format_field(struct tep_format_field *field); 94 95unsigned short tep_data2host2(struct tep_handle *tep, unsigned short data); 96unsigned int tep_data2host4(struct tep_handle *tep, unsigned int data); 97unsigned long long tep_data2host8(struct tep_handle *tep, unsigned long long data); 98 99#endif /* _PARSE_EVENTS_INT_H */