Lines Matching refs:pev
47 struct perf_probe_event pev; member
136 cleanup_perf_probe_events(&priv->pev, 1); in clear_prog_priv()
145 prog_config__exec(const char *value, struct perf_probe_event *pev) in prog_config__exec() argument
147 pev->uprobes = true; in prog_config__exec()
148 pev->target = strdup(value); in prog_config__exec()
149 if (!pev->target) in prog_config__exec()
155 prog_config__module(const char *value, struct perf_probe_event *pev) in prog_config__module() argument
157 pev->uprobes = false; in prog_config__module()
158 pev->target = strdup(value); in prog_config__module()
159 if (!pev->target) in prog_config__module()
183 struct perf_probe_event *pev __maybe_unused) in prog_config__inlines()
190 struct perf_probe_event *pev __maybe_unused) in prog_config__force()
229 struct perf_probe_event *pev) in do_prog_config() argument
236 return bpf_prog_config_terms[i].func(value, pev); in do_prog_config()
251 parse_prog_config_kvpair(const char *config_str, struct perf_probe_event *pev) in parse_prog_config_kvpair() argument
277 err = do_prog_config(line, equ + 1, pev); in parse_prog_config_kvpair()
293 bool *is_tp, struct perf_probe_event *pev) in parse_prog_config() argument
296 const char *main_str = parse_prog_config_kvpair(config_str, pev); in parse_prog_config()
317 err = parse_perf_probe_command(main_str, pev); in parse_prog_config()
330 struct perf_probe_event *pev = NULL; in config_bpf_program() local
351 pev = &priv->pev; in config_bpf_program()
354 err = parse_prog_config(config_str, &main_str, &is_tp, pev); in config_bpf_program()
367 if (pev->group && strcmp(pev->group, PERF_BPF_PROBE_GROUP)) { in config_bpf_program()
372 } else if (!pev->group) in config_bpf_program()
373 pev->group = strdup(PERF_BPF_PROBE_GROUP); in config_bpf_program()
375 if (!pev->group) { in config_bpf_program()
381 if (!pev->event) { in config_bpf_program()
399 if (pev) in config_bpf_program()
400 clear_perf_probe_event(pev); in config_bpf_program()
433 struct perf_probe_event *pev; in preproc_gen_prologue() local
441 pev = &priv->pev; in preproc_gen_prologue()
447 for (i = 0; i < pev->ntevs; i++) { in preproc_gen_prologue()
452 if (i >= pev->ntevs) { in preproc_gen_prologue()
457 tev = &pev->tevs[i]; in preproc_gen_prologue()
539 static int map_prologue(struct perf_probe_event *pev, int *mapping, in map_prologue() argument
545 size_t array_sz = sizeof(*ptevs) * pev->ntevs; in map_prologue()
553 pr_debug("In map_prologue, ntevs=%d\n", pev->ntevs); in map_prologue()
554 for (i = 0; i < pev->ntevs; i++) in map_prologue()
555 ptevs[i] = &pev->tevs[i]; in map_prologue()
557 qsort(ptevs, pev->ntevs, sizeof(*ptevs), in map_prologue()
560 for (i = 0; i < pev->ntevs; i++) { in map_prologue()
563 n = ptevs[i] - pev->tevs; in map_prologue()
586 struct perf_probe_event *pev; in hook_load_preprocessor() local
600 pev = &priv->pev; in hook_load_preprocessor()
601 for (i = 0; i < pev->ntevs; i++) { in hook_load_preprocessor()
602 struct probe_trace_event *tev = &pev->tevs[i]; in hook_load_preprocessor()
626 priv->type_mapping = malloc(sizeof(int) * pev->ntevs); in hook_load_preprocessor()
632 sizeof(int) * pev->ntevs); in hook_load_preprocessor()
634 err = map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor()
648 struct perf_probe_event *pev; in bpf__probe() local
673 pev = &priv->pev; in bpf__probe()
675 err = convert_perf_probe_events(pev, 1); in bpf__probe()
681 err = apply_perf_probe_events(pev, 1); in bpf__probe()
716 for (i = 0; i < priv->pev.ntevs; i++) { in bpf__unprobe()
717 struct probe_trace_event *tev = &priv->pev.tevs[i]; in bpf__unprobe()
766 struct perf_probe_event *pev; in bpf__foreach_event() local
784 pev = &priv->pev; in bpf__foreach_event()
785 for (i = 0; i < pev->ntevs; i++) { in bpf__foreach_event()
786 tev = &pev->tevs[i]; in bpf__foreach_event()