Home
last modified time | relevance | path

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

12

/linux-6.6.21/arch/arm64/kernel/
Dpatching.c128 int insn_cnt; member
139 for (i = 0; ret == 0 && i < pp->insn_cnt; i++) in aarch64_insn_patch_text_cb()
158 .insn_cnt = cnt, in aarch64_insn_patch_text()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/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)
/linux-6.6.21/tools/build/feature/
Dtest-bpf.c34 attr.insn_cnt = 0; in main()
/linux-6.6.21/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()
/linux-6.6.21/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
836 (!max_insn_cnt || e->insn_cnt <= max_insn_cnt)) { in intel_pt_walk_next_insn()
837 *insn_cnt_ptr = e->insn_cnt; in intel_pt_walk_next_insn()
879 insn_cnt += 1; in intel_pt_walk_next_insn()
894 if (max_insn_cnt && insn_cnt >= max_insn_cnt) in intel_pt_walk_next_insn()
912 *insn_cnt_ptr = insn_cnt; in intel_pt_walk_next_insn()
930 intel_pt_cache_add(map__dso(al.map), machine, start_offset, insn_cnt, in intel_pt_walk_next_insn()
[all …]
/linux-6.6.21/tools/perf/include/perf/
Dperf_dlfilter.h52 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dsyscall.c85 .insn_cnt = sizeof(insns) / sizeof(insns[0]), in bpf_prog()
/linux-6.6.21/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 …]
/linux-6.6.21/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()
/linux-6.6.21/tools/testing/selftests/net/
Dreuseport_bpf.c112 attr.insn_cnt = ARRAY_SIZE(prog); in attach_ebpf()
355 eprog.insn_cnt = ARRAY_SIZE(ecode); in test_filter_no_reuseport()
Dreuseport_bpf_numa.c89 attr.insn_cnt = ARRAY_SIZE(prog); in attach_bpf()
/linux-6.6.21/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
/linux-6.6.21/kernel/bpf/
Dcore.c405 u32 i, insn_cnt = prog->len + (probe_pass ? end_new - end_old : 0); in bpf_adj_branches() local
409 for (i = 0; i < insn_cnt; i++, insn++) { in bpf_adj_branches()
1423 int insn_delta, insn_cnt; in bpf_jit_blind_constants() local
1434 insn_cnt = clone->len; in bpf_jit_blind_constants()
1437 for (i = 0; i < insn_cnt; i++, insn++) { in bpf_jit_blind_constants()
1476 insn_cnt += insn_delta; in bpf_jit_blind_constants()

12