Home
last modified time | relevance | path

Searched refs:insn_cnt (Results 1 – 25 of 37) sorted by relevance

12

/tools/lib/bpf/
Dlibbpf_probes.c211 const size_t insn_cnt = ARRAY_SIZE(insns); in libbpf_probe_bpf_prog_type() local
217 ret = probe_prog_load(prog_type, insns, insn_cnt, NULL, 0); in libbpf_probe_bpf_prog_type()
410 const size_t insn_cnt = ARRAY_SIZE(insns); in libbpf_probe_bpf_helper() local
431 ret = probe_prog_load(prog_type, insns, insn_cnt, buf, sizeof(buf)); in libbpf_probe_bpf_helper()
Dbpf_gen_internal.h64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
Dbpf.c113 size_t insn_cnt = ARRAY_SIZE(insns); in probe_memcg_account() local
121 attr.insn_cnt = insn_cnt; in probe_memcg_account()
232 const struct bpf_insn *insns, size_t insn_cnt, in bpf_prog_load() argument
269 if (insn_cnt > UINT_MAX) in bpf_prog_load()
273 attr.insn_cnt = (__u32)insn_cnt; in bpf_prog_load()
Dgen_loader.c936 const char *license, struct bpf_insn *insns, size_t insn_cnt, in bpf_gen__prog_load() argument
945 prog_type, insn_cnt, prog_idx); in bpf_gen__prog_load()
949 insns_off = add_data(gen, insns, insn_cnt * sizeof(struct bpf_insn)); in bpf_gen__prog_load()
956 attr.insn_cnt = (__u32)insn_cnt; in bpf_gen__prog_load()
1019 debug_ret(gen, "prog_load %s insn_cnt %d", attr.prog_name, attr.insn_cnt); in bpf_gen__prog_load()
Dskel_internal.h333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn); in bpf_load_and_run()
Dbpf.h111 const struct bpf_insn *insns, size_t insn_cnt,
/tools/build/feature/
Dtest-bpf.c34 attr.insn_cnt = 0; in main()
/tools/testing/selftests/bpf/prog_tests/
Dverifier_log.c34 static size_t insn_cnt; variable
41 "GPL", insns, insn_cnt, opts); in load_prog()
75 insn_cnt = bpf_program__insn_cnt(skel->progs.good_prog); in verif_log_subtest()
105 "GPL", insns, insn_cnt, &opts); in verif_log_subtest()
137 "GPL", insns, insn_cnt, &opts); in verif_log_subtest()
Dobj_name.c34 attr.insn_cnt = 2; in test_obj_name()
/tools/perf/scripts/python/
Dexport-to-postgresql.py1031 …eriod, weight, transaction, data_src, branch_type, in_tx, call_path_id, insn_cnt, cyc_cnt, flags, … argument
1033 … to_sym_offset, 8, to_ip, 4, branch_type, 1, in_tx, 8, call_path_id, 8, insn_cnt, 8, cyc_cnt, 4, f…
1035 …transaction, 8, data_src, 4, branch_type, 1, in_tx, 8, call_path_id, 8, insn_cnt, 8, cyc_cnt, 4, f…
1043 …e, branch_count, call_id, return_id, parent_call_path_id, flags, parent_id, insn_cnt, cyc_cnt, *x): argument
1045 … 8, call_id, 8, return_id, 8, parent_call_path_id, 4, flags, 8, parent_id, 8, insn_cnt, 8, cyc_cnt)
Dexported-sql-viewer.py528 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument
533 self.insn_cnt = insn_cnt
557 insn_cnt = int(query.value(5))
561 insn_cnt = 0
564 …), query.value(1), query.value(2), query.value(3), int(query.value(4)), insn_cnt, cyc_cnt, branch_…
572 … params, row, comm_id, thread_id, call_path_id, name, dso, count, time, insn_cnt, cyc_cnt, branch_… argument
573 …elf).__init__(glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, branch_…
576 insn_pcnt = PercentToOneDP(insn_cnt, parent_item.insn_cnt)
579 ipc = CalcIPC(cyc_cnt, insn_cnt)
580 …dso, str(count), str(time), PercentToOneDP(time, parent_item.time), str(insn_cnt), insn_pcnt, str(…
[all …]
Dintel-pt-events.py271 insn_cnt = get_optional_zero(sample, "insn_cnt")
272 ipc_str = " IPC: %#.2f (%u/%u)" % (insn_cnt / cyc_cnt, insn_cnt, cyc_cnt)
/tools/perf/util/
Dsample.h91 u64 insn_cnt; member
Dintel-pt.c542 u64 insn_cnt; member
615 u64 offset, u64 insn_cnt, u64 byte_cnt, in intel_pt_cache_add() argument
629 e->insn_cnt = insn_cnt; in intel_pt_cache_add()
760 u64 insn_cnt = 0; in intel_pt_walk_next_insn() local
837 (!max_insn_cnt || e->insn_cnt <= max_insn_cnt)) { in intel_pt_walk_next_insn()
838 *insn_cnt_ptr = e->insn_cnt; in intel_pt_walk_next_insn()
880 insn_cnt += 1; in intel_pt_walk_next_insn()
895 if (max_insn_cnt && insn_cnt >= max_insn_cnt) in intel_pt_walk_next_insn()
914 *insn_cnt_ptr = insn_cnt; in intel_pt_walk_next_insn()
932 intel_pt_cache_add(map__dso(al.map), machine, start_offset, insn_cnt, in intel_pt_walk_next_insn()
[all …]
/tools/perf/include/perf/
Dperf_dlfilter.h52 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member
/tools/testing/selftests/bpf/
Dtest_sock.c391 int ret, insn_cnt; in load_sock_prog() local
393 insn_cnt = probe_prog_length(prog); in load_sock_prog()
400 ret = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCK, NULL, "GPL", prog, insn_cnt, &opts); in load_sock_prog()
Dtest_sysctl.c1439 int ret, insn_cnt; in load_sysctl_prog_insns() local
1441 insn_cnt = probe_prog_length(prog); in load_sysctl_prog_insns()
1467 ret = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SYSCTL, NULL, "GPL", prog, insn_cnt, &opts); in load_sysctl_prog_insns()
/tools/testing/selftests/bpf/progs/
Dsyscall.c85 .insn_cnt = sizeof(insns) / sizeof(insns[0]), in bpf_prog()
/tools/bpf/bpftool/
Dcommon.c105 size_t insn_cnt = ARRAY_SIZE(insns); in known_to_need_rlimit() local
112 attr.insn_cnt = insn_cnt; in known_to_need_rlimit()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c1119 uint64_t max_insn_cnt, insn_cnt = 0; in intel_pt_sample_fup_insn() local
1136 err = decoder->walk_insn(&intel_pt_insn, &insn_cnt, &decoder->ip, in intel_pt_sample_fup_insn()
1147 decoder->tot_insn_cnt += insn_cnt; in intel_pt_sample_fup_insn()
1148 decoder->timestamp_insn_cnt += insn_cnt; in intel_pt_sample_fup_insn()
1149 decoder->sample_insn_cnt += insn_cnt; in intel_pt_sample_fup_insn()
1150 decoder->period_insn_cnt += insn_cnt; in intel_pt_sample_fup_insn()
1161 uint64_t max_insn_cnt, insn_cnt = 0; in intel_pt_walk_insn() local
1169 err = decoder->walk_insn(intel_pt_insn, &insn_cnt, &decoder->ip, ip, in intel_pt_walk_insn()
1172 decoder->tot_insn_cnt += insn_cnt; in intel_pt_walk_insn()
1173 decoder->timestamp_insn_cnt += insn_cnt; in intel_pt_walk_insn()
[all …]
/tools/testing/selftests/net/
Dreuseport_bpf_numa.c89 attr.insn_cnt = ARRAY_SIZE(prog); in attach_bpf()
Dreuseport_bpf.c112 attr.insn_cnt = ARRAY_SIZE(prog); in attach_ebpf()
355 eprog.insn_cnt = ARRAY_SIZE(ecode); in test_filter_no_reuseport()
Dpsock_fanout.c166 attr.insn_cnt = ARRAY_SIZE(prog); in sock_fanout_set_ebpf()
/tools/perf/dlfilters/
Ddlfilter-test-api-v0.c51 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member
Ddlfilter-test-api-v2.c57 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member

12