Lines Matching defs:func

86 	tep_event_handler_func		func;
99 tep_func_handler func;
108 static void free_func_handle(struct tep_function_handler *func);
392 char *func;
399 char *func;
452 func_map[i].func = funclist->func;
466 func_map[tep->func_count].func = NULL;
479 struct func_map *func;
487 func = bsearch(&key, tep->func_map, tep->func_count,
490 return func;
494 tep_func_resolver_t *func;
509 tep_func_resolver_t *func, void *priv)
516 resolver->func = func;
549 map->func = tep->func_resolver->func(tep->func_resolver->priv,
551 if (map->func == NULL)
574 return map->func;
606 * The @func passed in is duplicated.
608 int tep_register_function(struct tep_handle *tep, char *func,
617 item->func = strdup(func);
618 if (!item->func)
635 free(item->func);
636 item->func = NULL;
659 tep->func_map[i].func);
916 while (arg->func.args) {
917 farg = arg->func.args;
918 arg->func.args = farg->next;
2980 struct tep_function_handler *func;
2985 for (func = tep->func_handlers; func; func = func->next) {
2986 if (strcmp(func->name, func_name) == 0)
2990 return func;
2995 struct tep_function_handler *func;
2999 while ((func = *next)) {
3000 if (strcmp(func->name, func_name) == 0) {
3001 *next = func->next;
3002 free_func_handle(func);
3005 next = &func->next;
3010 process_func_handler(struct tep_event *event, struct tep_function_handler *func,
3020 arg->func.func = func;
3024 next_arg = &(arg->func.args);
3025 for (i = 0; i < func->nr_args; i++) {
3034 if (i < (func->nr_args - 1)) {
3038 func->name, func->nr_args,
3046 func->name, func->nr_args, event->name);
3102 struct tep_function_handler *func;
3147 func = find_func_handler(event->tep, token);
3148 if (func) {
3150 return process_func_handler(event, func, arg, tok);
4230 struct tep_function_handler *func_handle = arg->func.func;
4243 ret = (*func_handle->func)(s, NULL);
4247 farg = arg->func.args;
4296 ret = (*func_handle->func)(s, args);
5179 struct func_map *func;
5183 func = find_func(event->tep, val);
5184 if (func) {
5185 trace_seq_puts(s, func->func);
5187 trace_seq_printf(s, "+0x%llx", val - func->addr);
6722 event->handler = handle->func;
7123 struct func_map *func;
7132 func = find_func(tep, val);
7134 if (func)
7135 snprintf(tmp, 128, "%s/0x%llx", func->func, func->addr - val);
7147 static void free_func_handle(struct tep_function_handler *func)
7151 free(func->name);
7153 while (func->params) {
7154 params = func->params;
7155 func->params = params->next;
7159 free(func);
7165 * @func: the function to process the helper function
7178 tep_func_handler func,
7208 func_handle->func = func;
7257 * @func: the function to process the helper function
7265 tep_func_handler func, char *name)
7270 if (func_handle && func_handle->func == func) {
7306 * @func: the function to call to parse the event information
7307 * @context: the data to be passed to @func
7325 tep_event_handler_func func, void *context)
7337 event->handler = func;
7364 handle->func = func;
7374 tep_event_handler_func func, void *context)
7385 if (func != handler->func || context != handler->context)
7397 * @func: the function to call to parse the event information
7398 * @context: the data to be passed to @func
7409 tep_event_handler_func func, void *context)
7419 if (event->handler == func && event->context == context) {
7432 func, context))
7550 free(tep->func_map[i].func);
7558 free(funclist->func);