tep              2117 fs/eventpoll.c 	struct eventpoll *tep = NULL;
tep              2204 fs/eventpoll.c 				tep = tf.file->private_data;
tep              2205 fs/eventpoll.c 				mutex_lock_nested(&tep->mtx, 1);
tep              2244 fs/eventpoll.c 	if (tep != NULL)
tep              2245 fs/eventpoll.c 		mutex_unlock(&tep->mtx);
tep                19 tools/lib/traceevent/event-parse-api.c struct tep_event *tep_get_event(struct tep_handle *tep, int index)
tep                21 tools/lib/traceevent/event-parse-api.c 	if (tep && tep->events && index < tep->nr_events)
tep                22 tools/lib/traceevent/event-parse-api.c 		return tep->events[index];
tep                34 tools/lib/traceevent/event-parse-api.c struct tep_event *tep_get_first_event(struct tep_handle *tep)
tep                36 tools/lib/traceevent/event-parse-api.c 	return tep_get_event(tep, 0);
tep                46 tools/lib/traceevent/event-parse-api.c int tep_get_events_count(struct tep_handle *tep)
tep                48 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep                49 tools/lib/traceevent/event-parse-api.c 		return tep->nr_events;
tep                61 tools/lib/traceevent/event-parse-api.c void tep_set_flag(struct tep_handle *tep, int flag)
tep                63 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep                64 tools/lib/traceevent/event-parse-api.c 		tep->flags |= flag;
tep                74 tools/lib/traceevent/event-parse-api.c void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag)
tep                76 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep                77 tools/lib/traceevent/event-parse-api.c 		tep->flags &= ~flag;
tep                88 tools/lib/traceevent/event-parse-api.c bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag)
tep                90 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep                91 tools/lib/traceevent/event-parse-api.c 		return tep->flags & flag;
tep                95 tools/lib/traceevent/event-parse-api.c unsigned short tep_data2host2(struct tep_handle *tep, unsigned short data)
tep                99 tools/lib/traceevent/event-parse-api.c 	if (!tep || tep->host_bigendian == tep->file_bigendian)
tep               108 tools/lib/traceevent/event-parse-api.c unsigned int tep_data2host4(struct tep_handle *tep, unsigned int data)
tep               112 tools/lib/traceevent/event-parse-api.c 	if (!tep || tep->host_bigendian == tep->file_bigendian)
tep               124 tools/lib/traceevent/event-parse-api.c tep_data2host8(struct tep_handle *tep, unsigned long long data)
tep               128 tools/lib/traceevent/event-parse-api.c 	if (!tep || tep->host_bigendian == tep->file_bigendian)
tep               150 tools/lib/traceevent/event-parse-api.c int tep_get_header_page_size(struct tep_handle *tep)
tep               152 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               153 tools/lib/traceevent/event-parse-api.c 		return tep->header_page_size_size;
tep               164 tools/lib/traceevent/event-parse-api.c int tep_get_header_timestamp_size(struct tep_handle *tep)
tep               166 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               167 tools/lib/traceevent/event-parse-api.c 		return tep->header_page_ts_size;
tep               178 tools/lib/traceevent/event-parse-api.c int tep_get_cpus(struct tep_handle *tep)
tep               180 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               181 tools/lib/traceevent/event-parse-api.c 		return tep->cpus;
tep               191 tools/lib/traceevent/event-parse-api.c void tep_set_cpus(struct tep_handle *tep, int cpus)
tep               193 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               194 tools/lib/traceevent/event-parse-api.c 		tep->cpus = cpus;
tep               204 tools/lib/traceevent/event-parse-api.c int tep_get_long_size(struct tep_handle *tep)
tep               206 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               207 tools/lib/traceevent/event-parse-api.c 		return tep->long_size;
tep               218 tools/lib/traceevent/event-parse-api.c void tep_set_long_size(struct tep_handle *tep, int long_size)
tep               220 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               221 tools/lib/traceevent/event-parse-api.c 		tep->long_size = long_size;
tep               231 tools/lib/traceevent/event-parse-api.c int tep_get_page_size(struct tep_handle *tep)
tep               233 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               234 tools/lib/traceevent/event-parse-api.c 		return tep->page_size;
tep               245 tools/lib/traceevent/event-parse-api.c void tep_set_page_size(struct tep_handle *tep, int _page_size)
tep               247 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               248 tools/lib/traceevent/event-parse-api.c 		tep->page_size = _page_size;
tep               258 tools/lib/traceevent/event-parse-api.c bool tep_is_file_bigendian(struct tep_handle *tep)
tep               260 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               261 tools/lib/traceevent/event-parse-api.c 		return (tep->file_bigendian == TEP_BIG_ENDIAN);
tep               272 tools/lib/traceevent/event-parse-api.c void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian)
tep               274 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               275 tools/lib/traceevent/event-parse-api.c 		tep->file_bigendian = endian;
tep               285 tools/lib/traceevent/event-parse-api.c bool tep_is_local_bigendian(struct tep_handle *tep)
tep               287 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               288 tools/lib/traceevent/event-parse-api.c 		return (tep->host_bigendian == TEP_BIG_ENDIAN);
tep               299 tools/lib/traceevent/event-parse-api.c void tep_set_local_bigendian(struct tep_handle *tep, enum tep_endian endian)
tep               301 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               302 tools/lib/traceevent/event-parse-api.c 		tep->host_bigendian = endian;
tep               313 tools/lib/traceevent/event-parse-api.c bool tep_is_old_format(struct tep_handle *tep)
tep               315 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               316 tools/lib/traceevent/event-parse-api.c 		return tep->old_format;
tep               329 tools/lib/traceevent/event-parse-api.c void tep_set_test_filters(struct tep_handle *tep, int test_filters)
tep               331 tools/lib/traceevent/event-parse-api.c 	if (tep)
tep               332 tools/lib/traceevent/event-parse-api.c 		tep->test_filters = test_filters;
tep                89 tools/lib/traceevent/event-parse-local.h unsigned short tep_data2host2(struct tep_handle *tep, unsigned short data);
tep                90 tools/lib/traceevent/event-parse-local.h unsigned int tep_data2host4(struct tep_handle *tep, unsigned int data);
tep                91 tools/lib/traceevent/event-parse-local.h unsigned long long tep_data2host8(struct tep_handle *tep, unsigned long long data);
tep               170 tools/lib/traceevent/event-parse.c static int cmdline_init(struct tep_handle *tep)
tep               172 tools/lib/traceevent/event-parse.c 	struct cmdline_list *cmdlist = tep->cmdlist;
tep               177 tools/lib/traceevent/event-parse.c 	cmdlines = malloc(sizeof(*cmdlines) * tep->cmdline_count);
tep               191 tools/lib/traceevent/event-parse.c 	qsort(cmdlines, tep->cmdline_count, sizeof(*cmdlines), cmdline_cmp);
tep               193 tools/lib/traceevent/event-parse.c 	tep->cmdlines = cmdlines;
tep               194 tools/lib/traceevent/event-parse.c 	tep->cmdlist = NULL;
tep               199 tools/lib/traceevent/event-parse.c static const char *find_cmdline(struct tep_handle *tep, int pid)
tep               207 tools/lib/traceevent/event-parse.c 	if (!tep->cmdlines && cmdline_init(tep))
tep               212 tools/lib/traceevent/event-parse.c 	comm = bsearch(&key, tep->cmdlines, tep->cmdline_count,
tep               213 tools/lib/traceevent/event-parse.c 		       sizeof(*tep->cmdlines), cmdline_cmp);
tep               228 tools/lib/traceevent/event-parse.c bool tep_is_pid_registered(struct tep_handle *tep, int pid)
tep               236 tools/lib/traceevent/event-parse.c 	if (!tep->cmdlines && cmdline_init(tep))
tep               241 tools/lib/traceevent/event-parse.c 	comm = bsearch(&key, tep->cmdlines, tep->cmdline_count,
tep               242 tools/lib/traceevent/event-parse.c 		       sizeof(*tep->cmdlines), cmdline_cmp);
tep               254 tools/lib/traceevent/event-parse.c static int add_new_comm(struct tep_handle *tep,
tep               257 tools/lib/traceevent/event-parse.c 	struct tep_cmdline *cmdlines = tep->cmdlines;
tep               269 tools/lib/traceevent/event-parse.c 	cmdline = bsearch(&key, tep->cmdlines, tep->cmdline_count,
tep               270 tools/lib/traceevent/event-parse.c 			  sizeof(*tep->cmdlines), cmdline_cmp);
tep               287 tools/lib/traceevent/event-parse.c 	cmdlines = realloc(cmdlines, sizeof(*cmdlines) * (tep->cmdline_count + 1));
tep               292 tools/lib/traceevent/event-parse.c 	tep->cmdlines = cmdlines;
tep               300 tools/lib/traceevent/event-parse.c 	if (!tep->cmdline_count) {
tep               302 tools/lib/traceevent/event-parse.c 		tep->cmdlines[0] = key;
tep               303 tools/lib/traceevent/event-parse.c 		tep->cmdline_count++;
tep               308 tools/lib/traceevent/event-parse.c 	cmdline = bsearch(&key, tep->cmdlines, tep->cmdline_count - 1,
tep               309 tools/lib/traceevent/event-parse.c 			  sizeof(*tep->cmdlines), cmdline_slot_cmp);
tep               311 tools/lib/traceevent/event-parse.c 	cnt = tep->cmdline_count;
tep               315 tools/lib/traceevent/event-parse.c 		cnt -= cmdline - tep->cmdlines;
tep               319 tools/lib/traceevent/event-parse.c 		if (key.pid > tep->cmdlines[tep->cmdline_count - 1].pid) {
tep               320 tools/lib/traceevent/event-parse.c 			tep->cmdlines[tep->cmdline_count++] = key;
tep               323 tools/lib/traceevent/event-parse.c 		cmdline = &tep->cmdlines[0];
tep               328 tools/lib/traceevent/event-parse.c 	tep->cmdline_count++;
tep               333 tools/lib/traceevent/event-parse.c static int _tep_register_comm(struct tep_handle *tep,
tep               338 tools/lib/traceevent/event-parse.c 	if (tep->cmdlines)
tep               339 tools/lib/traceevent/event-parse.c 		return add_new_comm(tep, comm, pid, override);
tep               354 tools/lib/traceevent/event-parse.c 	item->next = tep->cmdlist;
tep               356 tools/lib/traceevent/event-parse.c 	tep->cmdlist = item;
tep               357 tools/lib/traceevent/event-parse.c 	tep->cmdline_count++;
tep               372 tools/lib/traceevent/event-parse.c int tep_register_comm(struct tep_handle *tep, const char *comm, int pid)
tep               374 tools/lib/traceevent/event-parse.c 	return _tep_register_comm(tep, comm, pid, false);
tep               387 tools/lib/traceevent/event-parse.c int tep_override_comm(struct tep_handle *tep, const char *comm, int pid)
tep               389 tools/lib/traceevent/event-parse.c 	if (!tep->cmdlines && cmdline_init(tep)) {
tep               393 tools/lib/traceevent/event-parse.c 	return _tep_register_comm(tep, comm, pid, true);
tep               443 tools/lib/traceevent/event-parse.c static int func_map_init(struct tep_handle *tep)
tep               450 tools/lib/traceevent/event-parse.c 	func_map = malloc(sizeof(*func_map) * (tep->func_count + 1));
tep               454 tools/lib/traceevent/event-parse.c 	funclist = tep->funclist;
tep               467 tools/lib/traceevent/event-parse.c 	qsort(func_map, tep->func_count, sizeof(*func_map), func_cmp);
tep               472 tools/lib/traceevent/event-parse.c 	func_map[tep->func_count].func = NULL;
tep               473 tools/lib/traceevent/event-parse.c 	func_map[tep->func_count].addr = 0;
tep               474 tools/lib/traceevent/event-parse.c 	func_map[tep->func_count].mod = NULL;
tep               476 tools/lib/traceevent/event-parse.c 	tep->func_map = func_map;
tep               477 tools/lib/traceevent/event-parse.c 	tep->funclist = NULL;
tep               483 tools/lib/traceevent/event-parse.c __find_func(struct tep_handle *tep, unsigned long long addr)
tep               488 tools/lib/traceevent/event-parse.c 	if (!tep->func_map)
tep               489 tools/lib/traceevent/event-parse.c 		func_map_init(tep);
tep               493 tools/lib/traceevent/event-parse.c 	func = bsearch(&key, tep->func_map, tep->func_count,
tep               494 tools/lib/traceevent/event-parse.c 		       sizeof(*tep->func_map), func_bcmp);
tep               514 tools/lib/traceevent/event-parse.c int tep_set_function_resolver(struct tep_handle *tep,
tep               525 tools/lib/traceevent/event-parse.c 	free(tep->func_resolver);
tep               526 tools/lib/traceevent/event-parse.c 	tep->func_resolver = resolver;
tep               538 tools/lib/traceevent/event-parse.c void tep_reset_function_resolver(struct tep_handle *tep)
tep               540 tools/lib/traceevent/event-parse.c 	free(tep->func_resolver);
tep               541 tools/lib/traceevent/event-parse.c 	tep->func_resolver = NULL;
tep               545 tools/lib/traceevent/event-parse.c find_func(struct tep_handle *tep, unsigned long long addr)
tep               549 tools/lib/traceevent/event-parse.c 	if (!tep->func_resolver)
tep               550 tools/lib/traceevent/event-parse.c 		return __find_func(tep, addr);
tep               552 tools/lib/traceevent/event-parse.c 	map = &tep->func_resolver->map;
tep               555 tools/lib/traceevent/event-parse.c 	map->func = tep->func_resolver->func(tep->func_resolver->priv,
tep               572 tools/lib/traceevent/event-parse.c const char *tep_find_function(struct tep_handle *tep, unsigned long long addr)
tep               576 tools/lib/traceevent/event-parse.c 	map = find_func(tep, addr);
tep               593 tools/lib/traceevent/event-parse.c tep_find_function_address(struct tep_handle *tep, unsigned long long addr)
tep               597 tools/lib/traceevent/event-parse.c 	map = find_func(tep, addr);
tep               614 tools/lib/traceevent/event-parse.c int tep_register_function(struct tep_handle *tep, char *func,
tep               622 tools/lib/traceevent/event-parse.c 	item->next = tep->funclist;
tep               635 tools/lib/traceevent/event-parse.c 	tep->funclist = item;
tep               636 tools/lib/traceevent/event-parse.c 	tep->func_count++;
tep               655 tools/lib/traceevent/event-parse.c void tep_print_funcs(struct tep_handle *tep)
tep               659 tools/lib/traceevent/event-parse.c 	if (!tep->func_map)
tep               660 tools/lib/traceevent/event-parse.c 		func_map_init(tep);
tep               662 tools/lib/traceevent/event-parse.c 	for (i = 0; i < (int)tep->func_count; i++) {
tep               664 tools/lib/traceevent/event-parse.c 		       tep->func_map[i].addr,
tep               665 tools/lib/traceevent/event-parse.c 		       tep->func_map[i].func);
tep               666 tools/lib/traceevent/event-parse.c 		if (tep->func_map[i].mod)
tep               667 tools/lib/traceevent/event-parse.c 			printf(" [%s]\n", tep->func_map[i].mod);
tep               697 tools/lib/traceevent/event-parse.c static int printk_map_init(struct tep_handle *tep)
tep               704 tools/lib/traceevent/event-parse.c 	printk_map = malloc(sizeof(*printk_map) * (tep->printk_count + 1));
tep               708 tools/lib/traceevent/event-parse.c 	printklist = tep->printklist;
tep               720 tools/lib/traceevent/event-parse.c 	qsort(printk_map, tep->printk_count, sizeof(*printk_map), printk_cmp);
tep               722 tools/lib/traceevent/event-parse.c 	tep->printk_map = printk_map;
tep               723 tools/lib/traceevent/event-parse.c 	tep->printklist = NULL;
tep               729 tools/lib/traceevent/event-parse.c find_printk(struct tep_handle *tep, unsigned long long addr)
tep               734 tools/lib/traceevent/event-parse.c 	if (!tep->printk_map && printk_map_init(tep))
tep               739 tools/lib/traceevent/event-parse.c 	printk = bsearch(&key, tep->printk_map, tep->printk_count,
tep               740 tools/lib/traceevent/event-parse.c 			 sizeof(*tep->printk_map), printk_cmp);
tep               754 tools/lib/traceevent/event-parse.c int tep_register_print_string(struct tep_handle *tep, const char *fmt,
tep               763 tools/lib/traceevent/event-parse.c 	item->next = tep->printklist;
tep               781 tools/lib/traceevent/event-parse.c 	tep->printklist = item;
tep               782 tools/lib/traceevent/event-parse.c 	tep->printk_count++;
tep               798 tools/lib/traceevent/event-parse.c void tep_print_printk(struct tep_handle *tep)
tep               802 tools/lib/traceevent/event-parse.c 	if (!tep->printk_map)
tep               803 tools/lib/traceevent/event-parse.c 		printk_map_init(tep);
tep               805 tools/lib/traceevent/event-parse.c 	for (i = 0; i < (int)tep->printk_count; i++) {
tep               807 tools/lib/traceevent/event-parse.c 		       tep->printk_map[i].addr,
tep               808 tools/lib/traceevent/event-parse.c 		       tep->printk_map[i].printk);
tep               817 tools/lib/traceevent/event-parse.c static int add_event(struct tep_handle *tep, struct tep_event *event)
tep               820 tools/lib/traceevent/event-parse.c 	struct tep_event **events = realloc(tep->events, sizeof(event) *
tep               821 tools/lib/traceevent/event-parse.c 					    (tep->nr_events + 1));
tep               825 tools/lib/traceevent/event-parse.c 	tep->events = events;
tep               827 tools/lib/traceevent/event-parse.c 	for (i = 0; i < tep->nr_events; i++) {
tep               828 tools/lib/traceevent/event-parse.c 		if (tep->events[i]->id > event->id)
tep               831 tools/lib/traceevent/event-parse.c 	if (i < tep->nr_events)
tep               832 tools/lib/traceevent/event-parse.c 		memmove(&tep->events[i + 1],
tep               833 tools/lib/traceevent/event-parse.c 			&tep->events[i],
tep               834 tools/lib/traceevent/event-parse.c 			sizeof(event) * (tep->nr_events - i));
tep               836 tools/lib/traceevent/event-parse.c 	tep->events[i] = event;
tep               837 tools/lib/traceevent/event-parse.c 	tep->nr_events++;
tep               839 tools/lib/traceevent/event-parse.c 	event->tep = tep;
tep              1691 tools/lib/traceevent/event-parse.c 				field->elementsize = event->tep ?
tep              1692 tools/lib/traceevent/event-parse.c 						     event->tep->long_size :
tep              2976 tools/lib/traceevent/event-parse.c find_func_handler(struct tep_handle *tep, char *func_name)
tep              2980 tools/lib/traceevent/event-parse.c 	if (!tep)
tep              2983 tools/lib/traceevent/event-parse.c 	for (func = tep->func_handlers; func; func = func->next) {
tep              2991 tools/lib/traceevent/event-parse.c static void remove_func_handler(struct tep_handle *tep, char *func_name)
tep              2996 tools/lib/traceevent/event-parse.c 	next = &tep->func_handlers;
tep              3110 tools/lib/traceevent/event-parse.c 	func = find_func_handler(event->tep, token);
tep              3398 tools/lib/traceevent/event-parse.c unsigned long long tep_read_number(struct tep_handle *tep,
tep              3407 tools/lib/traceevent/event-parse.c 		return tep_data2host2(tep, *(unsigned short *)ptr);
tep              3409 tools/lib/traceevent/event-parse.c 		return tep_data2host4(tep, *(unsigned int *)ptr);
tep              3412 tools/lib/traceevent/event-parse.c 		return tep_data2host8(tep, val);
tep              3440 tools/lib/traceevent/event-parse.c 		*value = tep_read_number(field->event->tep,
tep              3448 tools/lib/traceevent/event-parse.c static int get_common_info(struct tep_handle *tep,
tep              3458 tools/lib/traceevent/event-parse.c 	if (!tep->events) {
tep              3463 tools/lib/traceevent/event-parse.c 	event = tep->events[0];
tep              3474 tools/lib/traceevent/event-parse.c static int __parse_common(struct tep_handle *tep, void *data,
tep              3480 tools/lib/traceevent/event-parse.c 		ret = get_common_info(tep, name, offset, size);
tep              3484 tools/lib/traceevent/event-parse.c 	return tep_read_number(tep, data + *offset, *size);
tep              3487 tools/lib/traceevent/event-parse.c static int trace_parse_common_type(struct tep_handle *tep, void *data)
tep              3489 tools/lib/traceevent/event-parse.c 	return __parse_common(tep, data,
tep              3490 tools/lib/traceevent/event-parse.c 			      &tep->type_size, &tep->type_offset,
tep              3494 tools/lib/traceevent/event-parse.c static int parse_common_pid(struct tep_handle *tep, void *data)
tep              3496 tools/lib/traceevent/event-parse.c 	return __parse_common(tep, data,
tep              3497 tools/lib/traceevent/event-parse.c 			      &tep->pid_size, &tep->pid_offset,
tep              3501 tools/lib/traceevent/event-parse.c static int parse_common_pc(struct tep_handle *tep, void *data)
tep              3503 tools/lib/traceevent/event-parse.c 	return __parse_common(tep, data,
tep              3504 tools/lib/traceevent/event-parse.c 			      &tep->pc_size, &tep->pc_offset,
tep              3508 tools/lib/traceevent/event-parse.c static int parse_common_flags(struct tep_handle *tep, void *data)
tep              3510 tools/lib/traceevent/event-parse.c 	return __parse_common(tep, data,
tep              3511 tools/lib/traceevent/event-parse.c 			      &tep->flags_size, &tep->flags_offset,
tep              3515 tools/lib/traceevent/event-parse.c static int parse_common_lock_depth(struct tep_handle *tep, void *data)
tep              3517 tools/lib/traceevent/event-parse.c 	return __parse_common(tep, data,
tep              3518 tools/lib/traceevent/event-parse.c 			      &tep->ld_size, &tep->ld_offset,
tep              3522 tools/lib/traceevent/event-parse.c static int parse_common_migrate_disable(struct tep_handle *tep, void *data)
tep              3524 tools/lib/traceevent/event-parse.c 	return __parse_common(tep, data,
tep              3525 tools/lib/traceevent/event-parse.c 			      &tep->ld_size, &tep->ld_offset,
tep              3538 tools/lib/traceevent/event-parse.c struct tep_event *tep_find_event(struct tep_handle *tep, int id)
tep              3545 tools/lib/traceevent/event-parse.c 	if (tep->last_event && tep->last_event->id == id)
tep              3546 tools/lib/traceevent/event-parse.c 		return tep->last_event;
tep              3550 tools/lib/traceevent/event-parse.c 	eventptr = bsearch(&pkey, tep->events, tep->nr_events,
tep              3551 tools/lib/traceevent/event-parse.c 			   sizeof(*tep->events), events_id_cmp);
tep              3554 tools/lib/traceevent/event-parse.c 		tep->last_event = *eventptr;
tep              3571 tools/lib/traceevent/event-parse.c tep_find_event_by_name(struct tep_handle *tep,
tep              3577 tools/lib/traceevent/event-parse.c 	if (tep->last_event &&
tep              3578 tools/lib/traceevent/event-parse.c 	    strcmp(tep->last_event->name, name) == 0 &&
tep              3579 tools/lib/traceevent/event-parse.c 	    (!sys || strcmp(tep->last_event->system, sys) == 0))
tep              3580 tools/lib/traceevent/event-parse.c 		return tep->last_event;
tep              3582 tools/lib/traceevent/event-parse.c 	for (i = 0; i < tep->nr_events; i++) {
tep              3583 tools/lib/traceevent/event-parse.c 		event = tep->events[i];
tep              3591 tools/lib/traceevent/event-parse.c 	if (i == tep->nr_events)
tep              3594 tools/lib/traceevent/event-parse.c 	tep->last_event = event;
tep              3601 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = event->tep;
tep              3623 tools/lib/traceevent/event-parse.c 		val = tep_read_number(tep, data + arg->field.field->offset,
tep              3663 tools/lib/traceevent/event-parse.c 			field_size = tep->long_size;
tep              3667 tools/lib/traceevent/event-parse.c 				offset = tep_read_number(tep,
tep              3696 tools/lib/traceevent/event-parse.c 			val = tep_read_number(tep,
tep              3797 tools/lib/traceevent/event-parse.c 		offset = tep_read_number(tep,
tep              3809 tools/lib/traceevent/event-parse.c 		offset = tep_read_number(tep,
tep              3884 tools/lib/traceevent/event-parse.c static void print_bitmask_to_seq(struct tep_handle *tep,
tep              3916 tools/lib/traceevent/event-parse.c 		if (tep->file_bigendian)
tep              3942 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = event->tep;
tep              3979 tools/lib/traceevent/event-parse.c 		    field->size == tep->long_size) {
tep              3994 tools/lib/traceevent/event-parse.c 			addr = (tep->long_size == 8) ?
tep              3999 tools/lib/traceevent/event-parse.c 			printk = find_printk(tep, addr);
tep              4056 tools/lib/traceevent/event-parse.c 			offset = tep_read_number(tep,
tep              4087 tools/lib/traceevent/event-parse.c 			offset = tep_read_number(tep,
tep              4138 tools/lib/traceevent/event-parse.c 		str_offset = tep_data2host4(tep, *(unsigned int *)(data + arg->string.offset));
tep              4156 tools/lib/traceevent/event-parse.c 		bitmask_offset = tep_data2host4(tep, *(unsigned int *)(data + arg->bitmask.offset));
tep              4159 tools/lib/traceevent/event-parse.c 		print_bitmask_to_seq(tep, s, format, len_arg,
tep              4291 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = event->tep;
tep              4299 tools/lib/traceevent/event-parse.c 	field = tep->bprint_buf_field;
tep              4300 tools/lib/traceevent/event-parse.c 	ip_field = tep->bprint_ip_field;
tep              4313 tools/lib/traceevent/event-parse.c 		tep->bprint_buf_field = field;
tep              4314 tools/lib/traceevent/event-parse.c 		tep->bprint_ip_field = ip_field;
tep              4317 tools/lib/traceevent/event-parse.c 	ip = tep_read_number(tep, data + ip_field->offset, ip_field->size);
tep              4405 tools/lib/traceevent/event-parse.c 					vsize = tep->long_size;
tep              4422 tools/lib/traceevent/event-parse.c 				val = tep_read_number(tep, bptr, vsize);
tep              4479 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = event->tep;
tep              4485 tools/lib/traceevent/event-parse.c 	field = tep->bprint_fmt_field;
tep              4493 tools/lib/traceevent/event-parse.c 		tep->bprint_fmt_field = field;
tep              4496 tools/lib/traceevent/event-parse.c 	addr = tep_read_number(tep, data + field->offset, field->size);
tep              4498 tools/lib/traceevent/event-parse.c 	printk = find_printk(tep, addr);
tep              4880 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = field->event->tep;
tep              4886 tools/lib/traceevent/event-parse.c 			val = tep_read_number(tep, data + offset, len);
tep              4906 tools/lib/traceevent/event-parse.c 		val = tep_read_number(tep, data + field->offset,
tep              4955 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = event->tep;
tep              5047 tools/lib/traceevent/event-parse.c 				if (tep->long_size == 4)
tep              5108 tools/lib/traceevent/event-parse.c 					func = find_func(tep, val);
tep              5118 tools/lib/traceevent/event-parse.c 				if (tep->long_size == 8 && ls == 1 &&
tep              5220 tools/lib/traceevent/event-parse.c static void data_latency_format(struct tep_handle *tep, struct trace_seq *s,
tep              5237 tools/lib/traceevent/event-parse.c 	lat_flags = parse_common_flags(tep, data);
tep              5238 tools/lib/traceevent/event-parse.c 	pc = parse_common_pc(tep, data);
tep              5241 tools/lib/traceevent/event-parse.c 		lock_depth = parse_common_lock_depth(tep, data);
tep              5243 tools/lib/traceevent/event-parse.c 		lock_depth = parse_common_lock_depth(tep, data);
tep              5252 tools/lib/traceevent/event-parse.c 		migrate_disable = parse_common_migrate_disable(tep, data);
tep              5254 tools/lib/traceevent/event-parse.c 		migrate_disable = parse_common_migrate_disable(tep, data);
tep              5310 tools/lib/traceevent/event-parse.c int tep_data_type(struct tep_handle *tep, struct tep_record *rec)
tep              5312 tools/lib/traceevent/event-parse.c 	return trace_parse_common_type(tep, rec->data);
tep              5322 tools/lib/traceevent/event-parse.c int tep_data_pid(struct tep_handle *tep, struct tep_record *rec)
tep              5324 tools/lib/traceevent/event-parse.c 	return parse_common_pid(tep, rec->data);
tep              5334 tools/lib/traceevent/event-parse.c int tep_data_preempt_count(struct tep_handle *tep, struct tep_record *rec)
tep              5336 tools/lib/traceevent/event-parse.c 	return parse_common_pc(tep, rec->data);
tep              5348 tools/lib/traceevent/event-parse.c int tep_data_flags(struct tep_handle *tep, struct tep_record *rec)
tep              5350 tools/lib/traceevent/event-parse.c 	return parse_common_flags(tep, rec->data);
tep              5361 tools/lib/traceevent/event-parse.c const char *tep_data_comm_from_pid(struct tep_handle *tep, int pid)
tep              5365 tools/lib/traceevent/event-parse.c 	comm = find_cmdline(tep, pid);
tep              5370 tools/lib/traceevent/event-parse.c pid_from_cmdlist(struct tep_handle *tep, const char *comm, struct tep_cmdline *next)
tep              5377 tools/lib/traceevent/event-parse.c 		cmdlist = tep->cmdlist;
tep              5398 tools/lib/traceevent/event-parse.c struct tep_cmdline *tep_data_pid_from_comm(struct tep_handle *tep, const char *comm,
tep              5407 tools/lib/traceevent/event-parse.c 	if (!tep->cmdlines)
tep              5408 tools/lib/traceevent/event-parse.c 		return pid_from_cmdlist(tep, comm, next);
tep              5415 tools/lib/traceevent/event-parse.c 		if (next < tep->cmdlines ||
tep              5416 tools/lib/traceevent/event-parse.c 		    next >= tep->cmdlines + tep->cmdline_count)
tep              5423 tools/lib/traceevent/event-parse.c 		cmdline = tep->cmdlines;
tep              5425 tools/lib/traceevent/event-parse.c 	while (cmdline < tep->cmdlines + tep->cmdline_count) {
tep              5441 tools/lib/traceevent/event-parse.c int tep_cmdline_pid(struct tep_handle *tep, struct tep_cmdline *cmdline)
tep              5452 tools/lib/traceevent/event-parse.c 	if (!tep->cmdlines ||
tep              5453 tools/lib/traceevent/event-parse.c 	    cmdline < tep->cmdlines ||
tep              5454 tools/lib/traceevent/event-parse.c 	    cmdline >= tep->cmdlines + tep->cmdline_count)
tep              5493 tools/lib/traceevent/event-parse.c tep_find_event_by_record(struct tep_handle *tep, struct tep_record *record)
tep              5502 tools/lib/traceevent/event-parse.c 	type = trace_parse_common_type(tep, record->data);
tep              5504 tools/lib/traceevent/event-parse.c 	return tep_find_event(tep, type);
tep              5514 tools/lib/traceevent/event-parse.c static void print_event_time(struct tep_handle *tep, struct trace_seq *s,
tep              5553 tools/lib/traceevent/event-parse.c static void print_string(struct tep_handle *tep, struct trace_seq *s,
tep              5561 tools/lib/traceevent/event-parse.c 		data_latency_format(tep, s, type->format, record);
tep              5563 tools/lib/traceevent/event-parse.c 		pid = parse_common_pid(tep, record->data);
tep              5564 tools/lib/traceevent/event-parse.c 		comm = find_cmdline(tep, pid);
tep              5578 tools/lib/traceevent/event-parse.c static void print_int(struct tep_handle *tep, struct trace_seq *s,
tep              5589 tools/lib/traceevent/event-parse.c 		param = parse_common_pid(tep, record->data);
tep              5592 tools/lib/traceevent/event-parse.c 		return print_event_time(tep, s, type->format, event, record);
tep              5652 tools/lib/traceevent/event-parse.c void tep_print_event(struct tep_handle *tep, struct trace_seq *s,
tep              5666 tools/lib/traceevent/event-parse.c 	event = tep_find_event_by_record(tep, record);
tep              5681 tools/lib/traceevent/event-parse.c 			print_string(tep, s, record, event,
tep              5685 tools/lib/traceevent/event-parse.c 			print_int(tep, s, record, event,
tep              5748 tools/lib/traceevent/event-parse.c static struct tep_event **list_events_copy(struct tep_handle *tep)
tep              5752 tools/lib/traceevent/event-parse.c 	if (!tep)
tep              5755 tools/lib/traceevent/event-parse.c 	events = malloc(sizeof(*events) * (tep->nr_events + 1));
tep              5759 tools/lib/traceevent/event-parse.c 	memcpy(events, tep->events, sizeof(*events) * tep->nr_events);
tep              5760 tools/lib/traceevent/event-parse.c 	events[tep->nr_events] = NULL;
tep              5797 tools/lib/traceevent/event-parse.c struct tep_event **tep_list_events(struct tep_handle *tep,
tep              5802 tools/lib/traceevent/event-parse.c 	if (!tep)
tep              5805 tools/lib/traceevent/event-parse.c 	events = tep->sort_events;
tep              5806 tools/lib/traceevent/event-parse.c 	if (events && tep->last_type == sort_type)
tep              5810 tools/lib/traceevent/event-parse.c 		events = list_events_copy(tep);
tep              5814 tools/lib/traceevent/event-parse.c 		tep->sort_events = events;
tep              5818 tools/lib/traceevent/event-parse.c 			tep->last_type = sort_type;
tep              5823 tools/lib/traceevent/event-parse.c 	list_events_sort(events, tep->nr_events, sort_type);
tep              5824 tools/lib/traceevent/event-parse.c 	tep->last_type = sort_type;
tep              5839 tools/lib/traceevent/event-parse.c struct tep_event **tep_list_events_copy(struct tep_handle *tep,
tep              5844 tools/lib/traceevent/event-parse.c 	if (!tep)
tep              5847 tools/lib/traceevent/event-parse.c 	events = list_events_copy(tep);
tep              5855 tools/lib/traceevent/event-parse.c 	list_events_sort(events, tep->nr_events, sort_type);
tep              6124 tools/lib/traceevent/event-parse.c int tep_parse_header_page(struct tep_handle *tep, char *buf, unsigned long size,
tep              6134 tools/lib/traceevent/event-parse.c 		tep->header_page_ts_size = sizeof(long long);
tep              6135 tools/lib/traceevent/event-parse.c 		tep->header_page_size_size = long_size;
tep              6136 tools/lib/traceevent/event-parse.c 		tep->header_page_data_offset = sizeof(long long) + long_size;
tep              6137 tools/lib/traceevent/event-parse.c 		tep->old_format = 1;
tep              6142 tools/lib/traceevent/event-parse.c 	parse_header_field("timestamp", &tep->header_page_ts_offset,
tep              6143 tools/lib/traceevent/event-parse.c 			   &tep->header_page_ts_size, 1);
tep              6144 tools/lib/traceevent/event-parse.c 	parse_header_field("commit", &tep->header_page_size_offset,
tep              6145 tools/lib/traceevent/event-parse.c 			   &tep->header_page_size_size, 1);
tep              6146 tools/lib/traceevent/event-parse.c 	parse_header_field("overwrite", &tep->header_page_overwrite,
tep              6148 tools/lib/traceevent/event-parse.c 	parse_header_field("data", &tep->header_page_data_offset,
tep              6149 tools/lib/traceevent/event-parse.c 			   &tep->header_page_data_size, 1);
tep              6177 tools/lib/traceevent/event-parse.c static int find_event_handle(struct tep_handle *tep, struct tep_event *event)
tep              6181 tools/lib/traceevent/event-parse.c 	for (next = &tep->handlers; *next;
tep              6219 tools/lib/traceevent/event-parse.c 				  struct tep_handle *tep, const char *buf,
tep              6262 tools/lib/traceevent/event-parse.c 	event->tep = tep;
tep              6274 tools/lib/traceevent/event-parse.c 	if (tep && find_event_handle(tep, event))
tep              6326 tools/lib/traceevent/event-parse.c __parse_event(struct tep_handle *tep,
tep              6331 tools/lib/traceevent/event-parse.c 	int ret = __tep_parse_format(eventp, tep, buf, size, sys);
tep              6337 tools/lib/traceevent/event-parse.c 	if (tep && add_event(tep, event)) {
tep              6368 tools/lib/traceevent/event-parse.c enum tep_errno tep_parse_format(struct tep_handle *tep,
tep              6373 tools/lib/traceevent/event-parse.c 	return __parse_event(tep, eventp, buf, size, sys);
tep              6390 tools/lib/traceevent/event-parse.c enum tep_errno tep_parse_event(struct tep_handle *tep, const char *buf,
tep              6394 tools/lib/traceevent/event-parse.c 	return __parse_event(tep, &event, buf, size, sys);
tep              6456 tools/lib/traceevent/event-parse.c 		offset = tep_read_number(event->tep,
tep              6591 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = event->tep;
tep              6602 tools/lib/traceevent/event-parse.c 	func = find_func(tep, val);
tep              6647 tools/lib/traceevent/event-parse.c int tep_register_print_function(struct tep_handle *tep,
tep              6659 tools/lib/traceevent/event-parse.c 	func_handle = find_func_handler(tep, name);
tep              6667 tools/lib/traceevent/event-parse.c 		remove_func_handler(tep, name);
tep              6714 tools/lib/traceevent/event-parse.c 	func_handle->next = tep->func_handlers;
tep              6715 tools/lib/traceevent/event-parse.c 	tep->func_handlers = func_handle;
tep              6734 tools/lib/traceevent/event-parse.c int tep_unregister_print_function(struct tep_handle *tep,
tep              6739 tools/lib/traceevent/event-parse.c 	func_handle = find_func_handler(tep, name);
tep              6741 tools/lib/traceevent/event-parse.c 		remove_func_handler(tep, name);
tep              6747 tools/lib/traceevent/event-parse.c static struct tep_event *search_event(struct tep_handle *tep, int id,
tep              6755 tools/lib/traceevent/event-parse.c 		event = tep_find_event(tep, id);
tep              6763 tools/lib/traceevent/event-parse.c 		event = tep_find_event_by_name(tep, sys_name, event_name);
tep              6793 tools/lib/traceevent/event-parse.c int tep_register_event_handler(struct tep_handle *tep, int id,
tep              6800 tools/lib/traceevent/event-parse.c 	event = search_event(tep, id, sys_name, event_name);
tep              6835 tools/lib/traceevent/event-parse.c 	handle->next = tep->handlers;
tep              6836 tools/lib/traceevent/event-parse.c 	tep->handlers = handle;
tep              6877 tools/lib/traceevent/event-parse.c int tep_unregister_event_handler(struct tep_handle *tep, int id,
tep              6885 tools/lib/traceevent/event-parse.c 	event = search_event(tep, id, sys_name, event_name);
tep              6899 tools/lib/traceevent/event-parse.c 	for (next = &tep->handlers; *next; next = &(*next)->next) {
tep              6920 tools/lib/traceevent/event-parse.c 	struct tep_handle *tep = calloc(1, sizeof(*tep));
tep              6922 tools/lib/traceevent/event-parse.c 	if (tep) {
tep              6923 tools/lib/traceevent/event-parse.c 		tep->ref_count = 1;
tep              6924 tools/lib/traceevent/event-parse.c 		tep->host_bigendian = tep_is_bigendian();
tep              6927 tools/lib/traceevent/event-parse.c 	return tep;
tep              6930 tools/lib/traceevent/event-parse.c void tep_ref(struct tep_handle *tep)
tep              6932 tools/lib/traceevent/event-parse.c 	tep->ref_count++;
tep              6935 tools/lib/traceevent/event-parse.c int tep_get_ref(struct tep_handle *tep)
tep              6937 tools/lib/traceevent/event-parse.c 	if (tep)
tep              6938 tools/lib/traceevent/event-parse.c 		return tep->ref_count;
tep              6985 tools/lib/traceevent/event-parse.c void tep_free(struct tep_handle *tep)
tep              6994 tools/lib/traceevent/event-parse.c 	if (!tep)
tep              6997 tools/lib/traceevent/event-parse.c 	cmdlist = tep->cmdlist;
tep              6998 tools/lib/traceevent/event-parse.c 	funclist = tep->funclist;
tep              6999 tools/lib/traceevent/event-parse.c 	printklist = tep->printklist;
tep              7001 tools/lib/traceevent/event-parse.c 	tep->ref_count--;
tep              7002 tools/lib/traceevent/event-parse.c 	if (tep->ref_count)
tep              7005 tools/lib/traceevent/event-parse.c 	if (tep->cmdlines) {
tep              7006 tools/lib/traceevent/event-parse.c 		for (i = 0; i < tep->cmdline_count; i++)
tep              7007 tools/lib/traceevent/event-parse.c 			free(tep->cmdlines[i].comm);
tep              7008 tools/lib/traceevent/event-parse.c 		free(tep->cmdlines);
tep              7018 tools/lib/traceevent/event-parse.c 	if (tep->func_map) {
tep              7019 tools/lib/traceevent/event-parse.c 		for (i = 0; i < (int)tep->func_count; i++) {
tep              7020 tools/lib/traceevent/event-parse.c 			free(tep->func_map[i].func);
tep              7021 tools/lib/traceevent/event-parse.c 			free(tep->func_map[i].mod);
tep              7023 tools/lib/traceevent/event-parse.c 		free(tep->func_map);
tep              7034 tools/lib/traceevent/event-parse.c 	while (tep->func_handlers) {
tep              7035 tools/lib/traceevent/event-parse.c 		func_handler = tep->func_handlers;
tep              7036 tools/lib/traceevent/event-parse.c 		tep->func_handlers = func_handler->next;
tep              7040 tools/lib/traceevent/event-parse.c 	if (tep->printk_map) {
tep              7041 tools/lib/traceevent/event-parse.c 		for (i = 0; i < (int)tep->printk_count; i++)
tep              7042 tools/lib/traceevent/event-parse.c 			free(tep->printk_map[i].printk);
tep              7043 tools/lib/traceevent/event-parse.c 		free(tep->printk_map);
tep              7053 tools/lib/traceevent/event-parse.c 	for (i = 0; i < tep->nr_events; i++)
tep              7054 tools/lib/traceevent/event-parse.c 		tep_free_event(tep->events[i]);
tep              7056 tools/lib/traceevent/event-parse.c 	while (tep->handlers) {
tep              7057 tools/lib/traceevent/event-parse.c 		handle = tep->handlers;
tep              7058 tools/lib/traceevent/event-parse.c 		tep->handlers = handle->next;
tep              7062 tools/lib/traceevent/event-parse.c 	free(tep->events);
tep              7063 tools/lib/traceevent/event-parse.c 	free(tep->sort_events);
tep              7064 tools/lib/traceevent/event-parse.c 	free(tep->func_resolver);
tep              7066 tools/lib/traceevent/event-parse.c 	free(tep);
tep              7069 tools/lib/traceevent/event-parse.c void tep_unref(struct tep_handle *tep)
tep              7071 tools/lib/traceevent/event-parse.c 	tep_free(tep);
tep                67 tools/lib/traceevent/event-parse.h typedef int (*tep_plugin_load_func)(struct tep_handle *tep);
tep                68 tools/lib/traceevent/event-parse.h typedef int (*tep_plugin_unload_func)(struct tep_handle *tep);
tep               281 tools/lib/traceevent/event-parse.h 	struct tep_handle	*tep;
tep               396 tools/lib/traceevent/event-parse.h struct tep_plugin_list *tep_load_plugins(struct tep_handle *tep);
tep               398 tools/lib/traceevent/event-parse.h 			struct tep_handle *tep);
tep               411 tools/lib/traceevent/event-parse.h void tep_set_flag(struct tep_handle *tep, int flag);
tep               412 tools/lib/traceevent/event-parse.h void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag);
tep               413 tools/lib/traceevent/event-parse.h bool tep_test_flag(struct tep_handle *tep, enum tep_flag flags);
tep               433 tools/lib/traceevent/event-parse.h int tep_set_function_resolver(struct tep_handle *tep,
tep               435 tools/lib/traceevent/event-parse.h void tep_reset_function_resolver(struct tep_handle *tep);
tep               436 tools/lib/traceevent/event-parse.h int tep_register_comm(struct tep_handle *tep, const char *comm, int pid);
tep               437 tools/lib/traceevent/event-parse.h int tep_override_comm(struct tep_handle *tep, const char *comm, int pid);
tep               438 tools/lib/traceevent/event-parse.h int tep_register_function(struct tep_handle *tep, char *name,
tep               440 tools/lib/traceevent/event-parse.h int tep_register_print_string(struct tep_handle *tep, const char *fmt,
tep               442 tools/lib/traceevent/event-parse.h bool tep_is_pid_registered(struct tep_handle *tep, int pid);
tep               444 tools/lib/traceevent/event-parse.h struct tep_event *tep_get_event(struct tep_handle *tep, int index);
tep               455 tools/lib/traceevent/event-parse.h void tep_print_event(struct tep_handle *tep, struct trace_seq *s,
tep               459 tools/lib/traceevent/event-parse.h int tep_parse_header_page(struct tep_handle *tep, char *buf, unsigned long size,
tep               462 tools/lib/traceevent/event-parse.h enum tep_errno tep_parse_event(struct tep_handle *tep, const char *buf,
tep               464 tools/lib/traceevent/event-parse.h enum tep_errno tep_parse_format(struct tep_handle *tep,
tep               496 tools/lib/traceevent/event-parse.h int tep_register_event_handler(struct tep_handle *tep, int id,
tep               499 tools/lib/traceevent/event-parse.h int tep_unregister_event_handler(struct tep_handle *tep, int id,
tep               502 tools/lib/traceevent/event-parse.h int tep_register_print_function(struct tep_handle *tep,
tep               506 tools/lib/traceevent/event-parse.h int tep_unregister_print_function(struct tep_handle *tep,
tep               513 tools/lib/traceevent/event-parse.h const char *tep_find_function(struct tep_handle *tep, unsigned long long addr);
tep               515 tools/lib/traceevent/event-parse.h tep_find_function_address(struct tep_handle *tep, unsigned long long addr);
tep               516 tools/lib/traceevent/event-parse.h unsigned long long tep_read_number(struct tep_handle *tep, const void *ptr, int size);
tep               520 tools/lib/traceevent/event-parse.h struct tep_event *tep_get_first_event(struct tep_handle *tep);
tep               521 tools/lib/traceevent/event-parse.h int tep_get_events_count(struct tep_handle *tep);
tep               522 tools/lib/traceevent/event-parse.h struct tep_event *tep_find_event(struct tep_handle *tep, int id);
tep               525 tools/lib/traceevent/event-parse.h tep_find_event_by_name(struct tep_handle *tep, const char *sys, const char *name);
tep               527 tools/lib/traceevent/event-parse.h tep_find_event_by_record(struct tep_handle *tep, struct tep_record *record);
tep               529 tools/lib/traceevent/event-parse.h int tep_data_type(struct tep_handle *tep, struct tep_record *rec);
tep               530 tools/lib/traceevent/event-parse.h int tep_data_pid(struct tep_handle *tep, struct tep_record *rec);
tep               531 tools/lib/traceevent/event-parse.h int tep_data_preempt_count(struct tep_handle *tep, struct tep_record *rec);
tep               532 tools/lib/traceevent/event-parse.h int tep_data_flags(struct tep_handle *tep, struct tep_record *rec);
tep               533 tools/lib/traceevent/event-parse.h const char *tep_data_comm_from_pid(struct tep_handle *tep, int pid);
tep               535 tools/lib/traceevent/event-parse.h struct tep_cmdline *tep_data_pid_from_comm(struct tep_handle *tep, const char *comm,
tep               537 tools/lib/traceevent/event-parse.h int tep_cmdline_pid(struct tep_handle *tep, struct tep_cmdline *cmdline);
tep               543 tools/lib/traceevent/event-parse.h int tep_strerror(struct tep_handle *tep, enum tep_errno errnum,
tep               546 tools/lib/traceevent/event-parse.h struct tep_event **tep_list_events(struct tep_handle *tep, enum tep_event_sort_type);
tep               547 tools/lib/traceevent/event-parse.h struct tep_event **tep_list_events_copy(struct tep_handle *tep,
tep               556 tools/lib/traceevent/event-parse.h int tep_get_cpus(struct tep_handle *tep);
tep               557 tools/lib/traceevent/event-parse.h void tep_set_cpus(struct tep_handle *tep, int cpus);
tep               558 tools/lib/traceevent/event-parse.h int tep_get_long_size(struct tep_handle *tep);
tep               559 tools/lib/traceevent/event-parse.h void tep_set_long_size(struct tep_handle *tep, int long_size);
tep               560 tools/lib/traceevent/event-parse.h int tep_get_page_size(struct tep_handle *tep);
tep               561 tools/lib/traceevent/event-parse.h void tep_set_page_size(struct tep_handle *tep, int _page_size);
tep               562 tools/lib/traceevent/event-parse.h bool tep_is_file_bigendian(struct tep_handle *tep);
tep               563 tools/lib/traceevent/event-parse.h void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian);
tep               564 tools/lib/traceevent/event-parse.h bool tep_is_local_bigendian(struct tep_handle *tep);
tep               565 tools/lib/traceevent/event-parse.h void tep_set_local_bigendian(struct tep_handle *tep, enum tep_endian endian);
tep               566 tools/lib/traceevent/event-parse.h int tep_get_header_page_size(struct tep_handle *tep);
tep               567 tools/lib/traceevent/event-parse.h int tep_get_header_timestamp_size(struct tep_handle *tep);
tep               568 tools/lib/traceevent/event-parse.h bool tep_is_old_format(struct tep_handle *tep);
tep               569 tools/lib/traceevent/event-parse.h void tep_set_test_filters(struct tep_handle *tep, int test_filters);
tep               572 tools/lib/traceevent/event-parse.h void tep_free(struct tep_handle *tep);
tep               573 tools/lib/traceevent/event-parse.h void tep_ref(struct tep_handle *tep);
tep               574 tools/lib/traceevent/event-parse.h void tep_unref(struct tep_handle *tep);
tep               575 tools/lib/traceevent/event-parse.h int tep_get_ref(struct tep_handle *tep);
tep               586 tools/lib/traceevent/event-parse.h void tep_print_funcs(struct tep_handle *tep);
tep               587 tools/lib/traceevent/event-parse.h void tep_print_printk(struct tep_handle *tep);
tep               714 tools/lib/traceevent/event-parse.h 	struct tep_handle	*tep;
tep               720 tools/lib/traceevent/event-parse.h struct tep_event_filter *tep_filter_alloc(struct tep_handle *tep);
tep               272 tools/lib/traceevent/event-plugin.c load_plugin(struct tep_handle *tep, const char *path,
tep               319 tools/lib/traceevent/event-plugin.c 	func(tep);
tep               327 tools/lib/traceevent/event-plugin.c load_plugins_dir(struct tep_handle *tep, const char *suffix,
tep               329 tools/lib/traceevent/event-plugin.c 		 void (*load_plugin)(struct tep_handle *tep,
tep               362 tools/lib/traceevent/event-plugin.c 		load_plugin(tep, path, name, data);
tep               369 tools/lib/traceevent/event-plugin.c load_plugins(struct tep_handle *tep, const char *suffix,
tep               370 tools/lib/traceevent/event-plugin.c 	     void (*load_plugin)(struct tep_handle *tep,
tep               381 tools/lib/traceevent/event-plugin.c 	if (tep->flags & TEP_DISABLE_PLUGINS)
tep               389 tools/lib/traceevent/event-plugin.c 	if (!(tep->flags & TEP_DISABLE_SYS_PLUGINS))
tep               390 tools/lib/traceevent/event-plugin.c 		load_plugins_dir(tep, suffix, PLUGIN_DIR,
tep               400 tools/lib/traceevent/event-plugin.c 		load_plugins_dir(tep, suffix, envdir, load_plugin, data);
tep               416 tools/lib/traceevent/event-plugin.c 	load_plugins_dir(tep, suffix, path, load_plugin, data);
tep               422 tools/lib/traceevent/event-plugin.c tep_load_plugins(struct tep_handle *tep)
tep               426 tools/lib/traceevent/event-plugin.c 	load_plugins(tep, ".so", load_plugin, &list);
tep               431 tools/lib/traceevent/event-plugin.c tep_unload_plugins(struct tep_plugin_list *plugin_list, struct tep_handle *tep)
tep               441 tools/lib/traceevent/event-plugin.c 			func(tep);
tep               157 tools/lib/traceevent/parse-filter.c 	filter_type->event = tep_find_event(filter->tep, id);
tep               169 tools/lib/traceevent/parse-filter.c struct tep_event_filter *tep_filter_alloc(struct tep_handle *tep)
tep               178 tools/lib/traceevent/parse-filter.c 	filter->tep = tep;
tep               179 tools/lib/traceevent/parse-filter.c 	tep_ref(tep);
tep               259 tools/lib/traceevent/parse-filter.c find_event(struct tep_handle *tep, struct event_list **events,
tep               302 tools/lib/traceevent/parse-filter.c 	for (i = 0; i < tep->nr_events; i++) {
tep               303 tools/lib/traceevent/parse-filter.c 		event = tep->events[i];
tep              1262 tools/lib/traceevent/parse-filter.c 	struct tep_handle *tep = filter->tep;
tep              1318 tools/lib/traceevent/parse-filter.c 		ret = find_event(tep, &events, strim(sys_name), strim(event_name));
tep              1339 tools/lib/traceevent/parse-filter.c 		if (ret >= 0 && tep->test_filters) {
tep              1382 tools/lib/traceevent/parse-filter.c 	return tep_strerror(filter->tep, err, buf, buflen);
tep              1445 tools/lib/traceevent/parse-filter.c 	tep_unref(filter->tep);
tep              1467 tools/lib/traceevent/parse-filter.c 	event = tep_find_event_by_name(filter->tep, sys, name);
tep              1538 tools/lib/traceevent/parse-filter.c 	pid = tep_data_pid(event->tep, record);
tep              1539 tools/lib/traceevent/parse-filter.c 	comm = tep_data_comm_from_pid(event->tep, pid);
tep              1707 tools/lib/traceevent/parse-filter.c 	struct tep_handle *tep;
tep              1737 tools/lib/traceevent/parse-filter.c 		tep = event->tep;
tep              1742 tools/lib/traceevent/parse-filter.c 			val = tep_find_function(tep, addr);
tep              1882 tools/lib/traceevent/parse-filter.c 	struct tep_handle *tep = filter->tep;
tep              1893 tools/lib/traceevent/parse-filter.c 	event_id = tep_data_type(tep, record);
tep                28 tools/lib/traceevent/plugins/plugin_cfg80211.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep                30 tools/lib/traceevent/plugins/plugin_cfg80211.c 	tep_register_print_function(tep,
tep                39 tools/lib/traceevent/plugins/plugin_cfg80211.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep                41 tools/lib/traceevent/plugins/plugin_cfg80211.c 	tep_unregister_print_function(tep, process___le16_to_cpup,
tep               129 tools/lib/traceevent/plugins/plugin_function.c 	struct tep_handle *tep = event->tep;
tep               139 tools/lib/traceevent/plugins/plugin_function.c 	func = tep_find_function(tep, function);
tep               144 tools/lib/traceevent/plugins/plugin_function.c 	parent = tep_find_function(tep, pfunction);
tep               167 tools/lib/traceevent/plugins/plugin_function.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep               169 tools/lib/traceevent/plugins/plugin_function.c 	tep_register_event_handler(tep, -1, "ftrace", "function",
tep               177 tools/lib/traceevent/plugins/plugin_function.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep               181 tools/lib/traceevent/plugins/plugin_function.c 	tep_unregister_event_handler(tep, -1, "ftrace", "function",
tep                70 tools/lib/traceevent/plugins/plugin_hrtimer.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep                72 tools/lib/traceevent/plugins/plugin_hrtimer.c 	tep_register_event_handler(tep, -1,
tep                76 tools/lib/traceevent/plugins/plugin_hrtimer.c 	tep_register_event_handler(tep, -1, "timer", "hrtimer_start",
tep                81 tools/lib/traceevent/plugins/plugin_hrtimer.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep                83 tools/lib/traceevent/plugins/plugin_hrtimer.c 	tep_unregister_event_handler(tep, -1,
tep                87 tools/lib/traceevent/plugins/plugin_hrtimer.c 	tep_unregister_event_handler(tep, -1, "timer", "hrtimer_start",
tep                51 tools/lib/traceevent/plugins/plugin_jbd2.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep                53 tools/lib/traceevent/plugins/plugin_jbd2.c 	tep_register_print_function(tep,
tep                60 tools/lib/traceevent/plugins/plugin_jbd2.c 	tep_register_print_function(tep,
tep                69 tools/lib/traceevent/plugins/plugin_jbd2.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep                71 tools/lib/traceevent/plugins/plugin_jbd2.c 	tep_unregister_print_function(tep, process_jbd2_dev_to_name,
tep                74 tools/lib/traceevent/plugins/plugin_jbd2.c 	tep_unregister_print_function(tep, process_jiffies_to_msecs,
tep                42 tools/lib/traceevent/plugins/plugin_kmem.c 	func = tep_find_function(event->tep, val);
tep                46 tools/lib/traceevent/plugins/plugin_kmem.c 	addr = tep_find_function_address(event->tep, val);
tep                52 tools/lib/traceevent/plugins/plugin_kmem.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep                54 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_register_event_handler(tep, -1, "kmem", "kfree",
tep                57 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_register_event_handler(tep, -1, "kmem", "kmalloc",
tep                60 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_register_event_handler(tep, -1, "kmem", "kmalloc_node",
tep                63 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_register_event_handler(tep, -1, "kmem", "kmem_cache_alloc",
tep                66 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_register_event_handler(tep, -1, "kmem",
tep                70 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_register_event_handler(tep, -1, "kmem", "kmem_cache_free",
tep                75 tools/lib/traceevent/plugins/plugin_kmem.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep                77 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_unregister_event_handler(tep, -1, "kmem", "kfree",
tep                80 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_unregister_event_handler(tep, -1, "kmem", "kmalloc",
tep                83 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_unregister_event_handler(tep, -1, "kmem", "kmalloc_node",
tep                86 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_unregister_event_handler(tep, -1, "kmem", "kmem_cache_alloc",
tep                89 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_unregister_event_handler(tep, -1, "kmem",
tep                93 tools/lib/traceevent/plugins/plugin_kmem.c 	tep_unregister_event_handler(tep, -1, "kmem", "kmem_cache_free",
tep               392 tools/lib/traceevent/plugins/plugin_kvm.c 	if (tep_is_file_bigendian(event->tep) ==
tep               393 tools/lib/traceevent/plugins/plugin_kvm.c 	    tep_is_local_bigendian(event->tep)) {
tep               448 tools/lib/traceevent/plugins/plugin_kvm.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep               452 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvm", "kvm_exit",
tep               455 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvm", "kvm_emulate_insn",
tep               458 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvm", "kvm_nested_vmexit",
tep               461 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvm", "kvm_nested_vmexit_inject",
tep               464 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_get_page",
tep               467 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_sync_page",
tep               470 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1,
tep               474 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_zap_page",
tep               477 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_event_handler(tep, -1, "kvmmmu",
tep               481 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_register_print_function(tep,
tep               490 tools/lib/traceevent/plugins/plugin_kvm.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep               492 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvm", "kvm_exit",
tep               495 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvm", "kvm_emulate_insn",
tep               498 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvm", "kvm_nested_vmexit",
tep               501 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvm", "kvm_nested_vmexit_inject",
tep               504 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvmmmu", "kvm_mmu_get_page",
tep               507 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvmmmu", "kvm_mmu_sync_page",
tep               510 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1,
tep               514 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvmmmu", "kvm_mmu_zap_page",
tep               517 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_event_handler(tep, -1, "kvmmmu",
tep               521 tools/lib/traceevent/plugins/plugin_kvm.c 	tep_unregister_print_function(tep, process_is_writable_pte,
tep                90 tools/lib/traceevent/plugins/plugin_mac80211.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep                92 tools/lib/traceevent/plugins/plugin_mac80211.c 	tep_register_event_handler(tep, -1, "mac80211",
tep                98 tools/lib/traceevent/plugins/plugin_mac80211.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep               100 tools/lib/traceevent/plugins/plugin_mac80211.c 	tep_unregister_event_handler(tep, -1, "mac80211",
tep                65 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_register_comm(field->event->tep, comm, pid);
tep               138 tools/lib/traceevent/plugins/plugin_sched_switch.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep               140 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_register_event_handler(tep, -1, "sched", "sched_switch",
tep               143 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_register_event_handler(tep, -1, "sched", "sched_wakeup",
tep               146 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_register_event_handler(tep, -1, "sched", "sched_wakeup_new",
tep               151 tools/lib/traceevent/plugins/plugin_sched_switch.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep               153 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_unregister_event_handler(tep, -1, "sched", "sched_switch",
tep               156 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_unregister_event_handler(tep, -1, "sched", "sched_wakeup",
tep               159 tools/lib/traceevent/plugins/plugin_sched_switch.c 	tep_unregister_event_handler(tep, -1, "sched", "sched_wakeup_new",
tep               417 tools/lib/traceevent/plugins/plugin_scsi.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep               419 tools/lib/traceevent/plugins/plugin_scsi.c 	tep_register_print_function(tep,
tep               430 tools/lib/traceevent/plugins/plugin_scsi.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep               432 tools/lib/traceevent/plugins/plugin_scsi.c 	tep_unregister_print_function(tep, process_scsi_trace_parse_cdb,
tep               123 tools/lib/traceevent/plugins/plugin_xen.c int TEP_PLUGIN_LOADER(struct tep_handle *tep)
tep               125 tools/lib/traceevent/plugins/plugin_xen.c 	tep_register_print_function(tep,
tep               134 tools/lib/traceevent/plugins/plugin_xen.c void TEP_PLUGIN_UNLOADER(struct tep_handle *tep)
tep               136 tools/lib/traceevent/plugins/plugin_xen.c 	tep_unregister_print_function(tep, process_xen_hypercall_name,
tep                29 tools/lib/traceevent/tep_strerror.c int tep_strerror(struct tep_handle *tep __maybe_unused,
tep               756 tools/perf/builtin-kmem.c 	tep_print_event(evsel->tp_format->tep,
tep              1984 tools/perf/builtin-kmem.c 		kmem_page_size = tep_get_page_size(evsel->tp_format->tep);
tep               313 tools/perf/util/data-convert-bt.c 		tmp_val = tep_read_number(fmtf->event->tep,
tep               357 tools/perf/util/data-convert-bt.c 					fmtf->event->tep,
tep               357 tools/perf/util/python.c 	struct tep_handle *pevent = field->event->tep;
tep                84 tools/perf/util/s390-sample-raw.c 				    struct cf_trailer_entry *tep)
tep                88 tools/perf/util/s390-sample-raw.c 	te.flags = be64_to_cpu(tep->flags);
tep                89 tools/perf/util/s390-sample-raw.c 	te.cfvn = be16_to_cpu(tep->cfvn);
tep                90 tools/perf/util/s390-sample-raw.c 	te.csvn = be16_to_cpu(tep->csvn);
tep                91 tools/perf/util/s390-sample-raw.c 	te.cpu_speed = be32_to_cpu(tep->cpu_speed);
tep                92 tools/perf/util/s390-sample-raw.c 	te.timestamp = be64_to_cpu(tep->timestamp);
tep                93 tools/perf/util/s390-sample-raw.c 	te.progusage1 = be64_to_cpu(tep->progusage1);
tep                94 tools/perf/util/s390-sample-raw.c 	te.progusage2 = be64_to_cpu(tep->progusage2);
tep                95 tools/perf/util/s390-sample-raw.c 	te.progusage3 = be64_to_cpu(tep->progusage3);
tep                96 tools/perf/util/s390-sample-raw.c 	te.tod_base = be64_to_cpu(tep->tod_base);
tep                97 tools/perf/util/s390-sample-raw.c 	te.mach_type = be16_to_cpu(tep->mach_type);
tep                98 tools/perf/util/s390-sample-raw.c 	te.res1 = be16_to_cpu(tep->res1);
tep                99 tools/perf/util/s390-sample-raw.c 	te.res2 = be32_to_cpu(tep->res2);
tep               375 tools/perf/util/scripting-engines/trace-event-perl.c 	scripting_context->pevent = evsel->tp_format->tep;
tep               842 tools/perf/util/scripting-engines/trace-event-python.c 	scripting_context->pevent = evsel->tp_format->tep;
tep               716 tools/perf/util/sort.c 		tep_print_event(evsel->tp_format->tep,
tep                97 tools/perf/util/trace-event-parse.c 	return tep_read_number(event->tep, ptr, size);
tep               112 tools/perf/util/trace-event-parse.c 	tep_print_event(event->tep, &s, &record, "%s", TEP_PRINT_INFO);