Lines Matching refs:target
21 #include "target.h"
169 static int bpf_program_profiler__load(struct evsel *evsel, struct target *target)
175 bpf_str_ = bpf_str = strdup(target->bpf_str);
184 target->bpf_str);
318 static int bperf_lock_attr_map(struct target *target)
323 if (target->attr_map) {
324 scnprintf(path, PATH_MAX, "%s", target->attr_map);
366 struct target *target,
375 /* determine filter type based on target */
376 if (target->system_wide) {
379 } else if (target->cpu_list) {
382 } else if (target->tid) {
385 } else if (target->pid || evsel->evlist->workload.pid != -1) {
447 static int bperf__load(struct evsel *evsel, struct target *target)
454 if (bperf_check_target(evsel, target, &filter_type, &filter_entry_cnt))
472 attr_map_fd = bperf_lock_attr_map(target);
532 /* set up follower filter based on target */
779 int bpf_counter__load(struct evsel *evsel, struct target *target)
781 if (target->bpf_str)
783 else if (cgrp_event_expanded && target->use_bpf)
785 else if (target->use_bpf || evsel->bpf_counter ||
790 return evsel->bpf_counter_ops->load(evsel, target);