/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | patching.c | 128 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()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | libbpf_probes.c | 211 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()
|
H A D | bpf_gen_internal.h | 64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
|
H A D | gen_loader.c | 936 const char *license, struct bpf_insn *insns, size_t insn_cnt, in bpf_gen__prog_load() 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() 934 bpf_gen__prog_load(struct bpf_gen *gen, enum bpf_prog_type prog_type, const char *prog_name, const char *license, struct bpf_insn *insns, size_t insn_cnt, struct bpf_prog_load_opts *load_attr, int prog_idx) bpf_gen__prog_load() argument
|
H A D | bpf.c | 113 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() 269 if (insn_cnt > UINT_MAX) in bpf_prog_load() 273 attr.insn_cnt = (__u32)insn_cnt; in bpf_prog_load() 230 bpf_prog_load(enum bpf_prog_type prog_type, const char *prog_name, const char *license, const struct bpf_insn *insns, size_t insn_cnt, struct bpf_prog_load_opts *opts) bpf_prog_load() argument
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | verifier_log.c | 34 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()
|
H A D | obj_name.c | 34 attr.insn_cnt = 2; in test_obj_name()
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | export-to-postgresql.py | 1028 def sample_table(sample_id, evsel_id, machine_id, thread_id, comm_id, dso_id, symbol_id, sym_offset, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transaction, data_src, branch_type, in_tx, call_path_id, insn_cnt, cyc_cnt, *x): 1030 value = struct.pack("!hiqiqiqiqiqiqiqiqiqiqiiiqiqiqiqiiiBiqiqiq", 20, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, dso_id, 8, symbol_id, 8, sym_offset, 8, ip, 8, time, 4, cpu, 8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 4, branch_type, 1, in_tx, 8, call_path_id, 8, insn_cnt, 8, cyc_cnt) 1032 value = struct.pack("!hiqiqiqiqiqiqiqiqiqiqiiiqiqiqiqiqiqiqiqiiiBiqiqiq", 24, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, dso_id, 8, symbol_id, 8, sym_offset, 8, ip, 8, time, 4, cpu, 8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 8, period, 8, weight, 8, transaction, 8, data_src, 4, branch_type, 1, in_tx, 8, call_path_id, 8, insn_cnt, 8, cyc_cnt) 1040 def call_return_table(cr_id, thread_id, comm_id, call_path_id, call_time, return_time, branch_count, call_id, return_id, parent_call_path_id, flags, parent_id, insn_cnt, cyc_cnt, *x): 1042 value = struct.pack(fmt, 14, 8, cr_id, 8, thread_id, 8, comm_id, 8, call_path_id, 8, call_time, 8, return_time, 8, branch_count, 8, call_id, 8, return_id, 8, parent_call_path_id, 4, flags, 8, parent_id, 8, insn_cnt, 8, cyc_cnt)
|
H A D | exported-sql-viewer.py | 527 def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, branch_count, parent_item): 532 self.insn_cnt = insn_cnt 556 insn_cnt = int(query.value(5)) 560 insn_cnt = 0 563 child_item = CallGraphLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.thread_id, query.value(0), query.value(1), query.value(2), query.value(3), int(query.value(4)), insn_cnt, cyc_cnt, branch_count, self) 571 def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, insn_cnt, cyc_cnt, branch_count, parent_item): 572 super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, branch_count, parent_item) 575 insn_pcnt = PercentToOneDP(insn_cnt, parent_item.insn_cnt) [all...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | export-to-postgresql.py | 1031 def sample_table(sample_id, evsel_id, machine_id, thread_id, comm_id, dso_id, symbol_id, sym_offset, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transaction, data_src, branch_type, in_tx, call_path_id, insn_cnt, cyc_cnt, flags, *x): 1033 value = struct.pack("!hiqiqiqiqiqiqiqiqiqiqiiiqiqiqiqiiiBiqiqiqii", 21, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, dso_id, 8, symbol_id, 8, sym_offset, 8, ip, 8, time, 4, cpu, 8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 4, branch_type, 1, in_tx, 8, call_path_id, 8, insn_cnt, 8, cyc_cnt, 4, flags) 1035 value = struct.pack("!hiqiqiqiqiqiqiqiqiqiqiiiqiqiqiqiqiqiqiqiiiBiqiqiqii", 25, 8, sample_id, 8, evsel_id, 8, machine_id, 8, thread_id, 8, comm_id, 8, dso_id, 8, symbol_id, 8, sym_offset, 8, ip, 8, time, 4, cpu, 8, to_dso_id, 8, to_symbol_id, 8, to_sym_offset, 8, to_ip, 8, period, 8, weight, 8, transaction, 8, data_src, 4, branch_type, 1, in_tx, 8, call_path_id, 8, insn_cnt, 8, cyc_cnt, 4, flags) 1043 def call_return_table(cr_id, thread_id, comm_id, call_path_id, call_time, return_time, branch_count, call_id, return_id, parent_call_path_id, flags, parent_id, insn_cnt, cyc_cnt, *x): 1045 value = struct.pack(fmt, 14, 8, cr_id, 8, thread_id, 8, comm_id, 8, call_path_id, 8, call_time, 8, return_time, 8, branch_count, 8, call_id, 8, return_id, 8, parent_call_path_id, 4, flags, 8, parent_id, 8, insn_cnt, 8, cyc_cnt)
|
H A D | intel-pt-events.py | 271 insn_cnt = get_optional_zero(sample, "insn_cnt") 272 ipc_str = " IPC: %#.2f (%u/%u)" % (insn_cnt / cyc_cnt, insn_cnt, cyc_cnt)
|
H A D | exported-sql-viewer.py | 528 def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, branch_count, parent_item): 533 self.insn_cnt = insn_cnt 557 insn_cnt = int(query.value(5)) 561 insn_cnt = 0 564 child_item = CallGraphLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.thread_id, query.value(0), query.value(1), query.value(2), query.value(3), int(query.value(4)), insn_cnt, cyc_cnt, branch_count, self) 572 def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, insn_cnt, cyc_cnt, branch_count, parent_item): 573 super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, branch_count, parent_item) 576 insn_pcnt = PercentToOneDP(insn_cnt, parent_item.insn_cnt) [all...] |
/kernel/linux/linux-5.10/tools/build/feature/ |
H A D | test-bpf.c | 28 attr.insn_cnt = 0; in main()
|
/kernel/linux/linux-6.6/tools/build/feature/ |
H A D | test-bpf.c | 34 attr.insn_cnt = 0; in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | obj_name.c | 34 attr.insn_cnt = 2; in test_obj_name()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_sock.c | 391 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()
|
/kernel/linux/linux-6.6/tools/perf/include/perf/ |
H A D | perf_dlfilter.h | 52 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | sample.h | 91 u64 insn_cnt; member
|
H A D | intel-pt.c | 542 u64 insn_cnt; member 615 u64 offset, u64 insn_cnt, u64 byte_cnt, in intel_pt_cache_add() 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() 614 intel_pt_cache_add(struct dso *dso, struct machine *machine, u64 offset, u64 insn_cnt, u64 byte_cnt, struct intel_pt_insn *intel_pt_insn) intel_pt_cache_add() argument 930 intel_pt_cache_add(map__dso(al.map), machine, start_offset, insn_cnt, intel_pt_walk_next_insn() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 85 .insn_cnt = sizeof(insns) / sizeof(insns[0]), in bpf_prog()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | intel-pt.c | 429 u64 insn_cnt; member 501 u64 offset, u64 insn_cnt, u64 byte_cnt, in intel_pt_cache_add() 515 e->insn_cnt = insn_cnt; in intel_pt_cache_add() 573 u64 insn_cnt = 0; in intel_pt_walk_next_insn() local 606 (!max_insn_cnt || e->insn_cnt <= max_insn_cnt)) { in intel_pt_walk_next_insn() 607 *insn_cnt_ptr = e->insn_cnt; in intel_pt_walk_next_insn() 640 insn_cnt += 1; in intel_pt_walk_next_insn() 645 if (max_insn_cnt && insn_cnt >= max_insn_cnt) in intel_pt_walk_next_insn() 663 *insn_cnt_ptr = insn_cnt; in intel_pt_walk_next_insn() 500 intel_pt_cache_add(struct dso *dso, struct machine *machine, u64 offset, u64 insn_cnt, u64 byte_cnt, struct intel_pt_insn *intel_pt_insn) intel_pt_cache_add() argument [all...] |
/kernel/linux/linux-6.6/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-decoder.c | 1119 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...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_verifier_log.c | 54 attr.insn_cnt = (__u32)(sizeof(code_sample) / sizeof(struct bpf_insn)); in load()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | verifier.c | 1470 int insn_cnt = env->prog->len; in add_subprog() local 1473 if (off >= insn_cnt || off < 0) { in add_subprog() 1495 int insn_cnt = env->prog->len; in check_subprogs() local 1503 for (i = 0; i < insn_cnt; i++) { in check_subprogs() 1521 subprog[env->subprog_cnt].start = insn_cnt; in check_subprogs() 1530 for (i = 0; i < insn_cnt; i++) { in check_subprogs() 8822 int insn_cnt = env->prog->len; in check_cfg() local 8827 insn_state = env->cfg.insn_state = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL); in check_cfg() 8831 insn_stack = env->cfg.insn_stack = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL); in check_cfg() 8858 if (t + 1 < insn_cnt) in check_cfg() 10059 int insn_cnt = env->prog->len; do_check() local 10583 int insn_cnt = env->prog->len; resolve_pseudo_ldimm64() local 10751 int insn_cnt = env->prog->len; convert_pseudo_ld_imm64() local 11014 const int insn_cnt = env->prog->len; sanitize_dead_code() local 11044 const int insn_cnt = env->prog->len; opt_hard_wire_dead_code_branches() local 11068 int insn_cnt = env->prog->len; opt_remove_dead_code() local 11093 int insn_cnt = env->prog->len; opt_remove_nops() local 11197 const int insn_cnt = env->prog->len; convert_ctx_accesses() local 11643 const int insn_cnt = prog->len; fixup_bpf_calls() local [all...] |
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | common.c | 105 size_t insn_cnt = ARRAY_SIZE(insns); in known_to_need_rlimit() local 112 attr.insn_cnt = insn_cnt; in known_to_need_rlimit()
|