Lines Matching refs:target
21 #include "target.h"
167 static int bpf_program_profiler__load(struct evsel *evsel, struct target *target)
173 bpf_str_ = bpf_str = strdup(target->bpf_str);
182 target->bpf_str);
315 static int bperf_lock_attr_map(struct target *target)
320 if (target->attr_map) {
321 scnprintf(path, PATH_MAX, "%s", target->attr_map);
363 struct target *target,
372 /* determine filter type based on target */
373 if (target->system_wide) {
376 } else if (target->cpu_list) {
379 } else if (target->tid) {
382 } else if (target->pid || evsel->evlist->workload.pid != -1) {
444 static int bperf__load(struct evsel *evsel, struct target *target)
451 if (bperf_check_target(evsel, target, &filter_type, &filter_entry_cnt))
469 attr_map_fd = bperf_lock_attr_map(target);
529 /* set up follower filter based on target */
776 int bpf_counter__load(struct evsel *evsel, struct target *target)
778 if (target->bpf_str)
780 else if (cgrp_event_expanded && target->use_bpf)
782 else if (target->use_bpf || evsel->bpf_counter ||
787 return evsel->bpf_counter_ops->load(evsel, target);