Lines Matching refs:pev
42 struct perf_probe_event pev; member
127 cleanup_perf_probe_events(&priv->pev, 1); in clear_prog_priv()
136 prog_config__exec(const char *value, struct perf_probe_event *pev) in prog_config__exec() argument
138 pev->uprobes = true; in prog_config__exec()
139 pev->target = strdup(value); in prog_config__exec()
140 if (!pev->target) in prog_config__exec()
146 prog_config__module(const char *value, struct perf_probe_event *pev) in prog_config__module() argument
148 pev->uprobes = false; in prog_config__module()
149 pev->target = strdup(value); in prog_config__module()
150 if (!pev->target) in prog_config__module()
174 struct perf_probe_event *pev __maybe_unused) in prog_config__inlines()
181 struct perf_probe_event *pev __maybe_unused) in prog_config__force()
220 struct perf_probe_event *pev) in do_prog_config() argument
227 return bpf_prog_config_terms[i].func(value, pev); in do_prog_config()
242 parse_prog_config_kvpair(const char *config_str, struct perf_probe_event *pev) in parse_prog_config_kvpair() argument
268 err = do_prog_config(line, equ + 1, pev); in parse_prog_config_kvpair()
284 bool *is_tp, struct perf_probe_event *pev) in parse_prog_config() argument
287 const char *main_str = parse_prog_config_kvpair(config_str, pev); in parse_prog_config()
308 err = parse_perf_probe_command(main_str, pev); in parse_prog_config()
321 struct perf_probe_event *pev = NULL; in config_bpf_program() local
336 pev = &priv->pev; in config_bpf_program()
340 err = parse_prog_config(config_str, &main_str, &is_tp, pev); in config_bpf_program()
353 if (pev->group && strcmp(pev->group, PERF_BPF_PROBE_GROUP)) { in config_bpf_program()
358 } else if (!pev->group) in config_bpf_program()
359 pev->group = strdup(PERF_BPF_PROBE_GROUP); in config_bpf_program()
361 if (!pev->group) { in config_bpf_program()
367 if (!pev->event) { in config_bpf_program()
385 if (pev) in config_bpf_program()
386 clear_perf_probe_event(pev); in config_bpf_program()
419 struct perf_probe_event *pev; in preproc_gen_prologue() local
427 pev = &priv->pev; in preproc_gen_prologue()
433 for (i = 0; i < pev->ntevs; i++) { in preproc_gen_prologue()
438 if (i >= pev->ntevs) { in preproc_gen_prologue()
443 tev = &pev->tevs[i]; in preproc_gen_prologue()
522 static int map_prologue(struct perf_probe_event *pev, int *mapping, in map_prologue() argument
528 size_t array_sz = sizeof(*ptevs) * pev->ntevs; in map_prologue()
536 pr_debug("In map_prologue, ntevs=%d\n", pev->ntevs); in map_prologue()
537 for (i = 0; i < pev->ntevs; i++) in map_prologue()
538 ptevs[i] = &pev->tevs[i]; in map_prologue()
540 qsort(ptevs, pev->ntevs, sizeof(*ptevs), in map_prologue()
543 for (i = 0; i < pev->ntevs; i++) { in map_prologue()
546 n = ptevs[i] - pev->tevs; in map_prologue()
569 struct perf_probe_event *pev; in hook_load_preprocessor() local
583 pev = &priv->pev; in hook_load_preprocessor()
584 for (i = 0; i < pev->ntevs; i++) { in hook_load_preprocessor()
585 struct probe_trace_event *tev = &pev->tevs[i]; in hook_load_preprocessor()
609 priv->type_mapping = malloc(sizeof(int) * pev->ntevs); in hook_load_preprocessor()
615 sizeof(int) * pev->ntevs); in hook_load_preprocessor()
617 err = map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor()
631 struct perf_probe_event *pev; in bpf__probe() local
656 pev = &priv->pev; in bpf__probe()
658 err = convert_perf_probe_events(pev, 1); in bpf__probe()
664 err = apply_perf_probe_events(pev, 1); in bpf__probe()
699 for (i = 0; i < priv->pev.ntevs; i++) { in bpf__unprobe()
700 struct probe_trace_event *tev = &priv->pev.tevs[i]; in bpf__unprobe()
751 struct perf_probe_event *pev; in bpf__foreach_event() local
769 pev = &priv->pev; in bpf__foreach_event()
770 for (i = 0; i < pev->ntevs; i++) { in bpf__foreach_event()
771 tev = &pev->tevs[i]; in bpf__foreach_event()