/linux-master/arch/arm64/kernel/ |
H A D | patching.c | 203 int insn_cnt; member in struct:aarch64_insn_patch 214 for (i = 0; ret == 0 && i < pp->insn_cnt; i++) 233 .insn_cnt = cnt,
|
/linux-master/arch/x86/net/ |
H A D | bpf_jit_comp.c | 1185 static void detect_reg_usage(struct bpf_insn *insn, int insn_cnt, argument 1190 for (i = 1; i <= insn_cnt; i++, insn++) { 1275 int insn_cnt = bpf_prog->len; local 1288 detect_reg_usage(insn, insn_cnt, callee_regs_used, 1323 for (i = 1; i <= insn_cnt; i++, insn++) {
|
H A D | bpf_jit_comp32.c | 1663 int insn_cnt = bpf_prog->len; local 1672 for (i = 0; i < insn_cnt; i++, insn++) {
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 1526 __u32 insn_cnt; member in struct:bpf_attr::__anon2593
|
/linux-master/kernel/bpf/ |
H A D | core.c | 413 u32 i, insn_cnt = prog->len + (probe_pass ? end_new - end_old : 0); local 417 for (i = 0; i < insn_cnt; i++, insn++) { 1457 int insn_delta, insn_cnt; local 1468 insn_cnt = clone->len; 1471 for (i = 0; i < insn_cnt; i++, insn++) { 1510 insn_cnt += insn_delta;
|
H A D | syscall.c | 2743 if (attr->insn_cnt == 0 || 2744 attr->insn_cnt > (bpf_cap ? BPF_COMPLEXITY_LIMIT_INSNS : BPF_MAXINSNS)) { 2805 prog = bpf_prog_alloc(bpf_prog_size(attr->insn_cnt), GFP_USER); 2828 prog->len = attr->insn_cnt;
|
H A D | verifier.c | 2476 int insn_cnt = env->prog->len; local 2479 if (off >= insn_cnt || off < 0) { 2898 int i, ret, insn_cnt = env->prog->len, ex_cb_insn; local 2906 for (i = 0; i < insn_cnt; i++, insn++) { 2949 subprog[env->subprog_cnt].start = insn_cnt; 2963 int insn_cnt = env->prog->len; local 2968 for (i = 0; i < insn_cnt; i++) { 15797 int insn_cnt = env->prog->len; local 15802 insn_state = env->cfg.insn_state = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL); 15806 insn_stack = env->cfg.insn_stack = kvcalloc(insn_cnt, sizeo 17584 int insn_cnt = env->prog->len; local 18208 int insn_cnt = env->prog->len; local 18436 int insn_cnt = env->prog->len; local 18703 const int insn_cnt = env->prog->len; local 18733 const int insn_cnt = env->prog->len; local 18757 int insn_cnt = env->prog->len; local 18782 int insn_cnt = env->prog->len; local 18907 const int insn_cnt = env->prog->len; local 19591 const int insn_cnt = prog->len; local 20364 int insn_cnt = env->prog->len; local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | common.c | 105 size_t insn_cnt = ARRAY_SIZE(insns); local 112 attr.insn_cnt = insn_cnt;
|
/linux-master/tools/build/feature/ |
H A D | test-bpf.c | 34 attr.insn_cnt = 0;
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 1526 __u32 insn_cnt; member in struct:bpf_attr::__anon3134
|
/linux-master/tools/lib/bpf/ |
H A D | bpf.c | 113 size_t insn_cnt = ARRAY_SIZE(insns); local 121 attr.insn_cnt = insn_cnt; 238 const struct bpf_insn *insns, size_t insn_cnt, 276 if (insn_cnt > UINT_MAX) 280 attr.insn_cnt = (__u32)insn_cnt; 236 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) argument
|
H A D | bpf.h | 116 const struct bpf_insn *insns, size_t insn_cnt,
|
H A D | bpf_gen_internal.h | 64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
|
H A D | features.c | 37 attr.insn_cnt = (__u32)ARRAY_SIZE(insns); 65 int ret, map, insn_cnt = ARRAY_SIZE(insns); local 78 ret = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", insns, insn_cnt, &prog_opts); 237 int fd, insn_cnt = ARRAY_SIZE(insns); local 244 fd = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCK, NULL, "GPL", insns, insn_cnt, &opts); 262 int fd, insn_cnt = ARRAY_SIZE(insns); local 264 fd = bpf_prog_load(BPF_PROG_TYPE_TRACEPOINT, NULL, "GPL", insns, insn_cnt, &opts); 283 int ret, map, prog, insn_cnt = ARRAY_SIZE(insns); local 294 prog = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", insns, insn_cnt, &prog_opts); 412 int ret, insn_cnt local 466 int prog_fd, btf_fd, insn_cnt = ARRAY_SIZE(insns); local [all...] |
H A D | gen_loader.c | 936 const char *license, struct bpf_insn *insns, size_t insn_cnt, 945 prog_type, insn_cnt, prog_idx); 949 insns_off = add_data(gen, insns, insn_cnt * sizeof(struct bpf_insn)); 956 attr.insn_cnt = (__u32)insn_cnt; 1019 debug_ret(gen, "prog_load %s insn_cnt %d", attr.prog_name, attr.insn_cnt); 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) argument
|
H A D | libbpf.c | 4897 int ret, insn_cnt = ARRAY_SIZE(insns); local 4911 ret = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", insns, insn_cnt, &opts); 4913 ret = bpf_prog_load(BPF_PROG_TYPE_TRACEPOINT, NULL, "GPL", insns, insn_cnt, &opts);
|
H A D | libbpf_probes.c | 211 const size_t insn_cnt = ARRAY_SIZE(insns); local 217 ret = probe_prog_load(prog_type, insns, insn_cnt, NULL, 0); 423 const size_t insn_cnt = ARRAY_SIZE(insns); local 444 ret = probe_prog_load(prog_type, insns, insn_cnt, buf, sizeof(buf));
|
H A D | skel_internal.h | 333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn);
|
/linux-master/tools/perf/ |
H A D | builtin-script.c | 1547 if (!PRINT_FIELD(IPC) || !sample->cyc_cnt || !sample->insn_cnt) 1550 ipc = (sample->insn_cnt * 100) / sample->cyc_cnt; 1553 ipc / 100, ipc % 100, sample->insn_cnt, sample->cyc_cnt);
|
/linux-master/tools/perf/dlfilters/ |
H A D | dlfilter-test-api-v0.c | 51 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member in struct:perf_dlfilter_sample
|
H A D | dlfilter-test-api-v2.c | 57 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member in struct:perf_dlfilter_sample
|
/linux-master/tools/perf/include/perf/ |
H A D | perf_dlfilter.h | 52 __u64 insn_cnt; /* For instructions-per-cycle (IPC) */ member in struct:perf_dlfilter_sample
|
/linux-master/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 | 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...] |
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)
|