/linux-master/tools/lib/bpf/ |
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 | bpf_gen_internal.h | 64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
|
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 | 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 | 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 | skel_internal.h | 333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn);
|
/linux-master/tools/build/feature/ |
H A D | test-bpf.c | 34 attr.insn_cnt = 0;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | obj_name.c | 34 attr.insn_cnt = 2;
|
H A D | verifier_log.c | 34 static size_t insn_cnt; variable 41 "GPL", insns, insn_cnt, opts); 75 insn_cnt = bpf_program__insn_cnt(skel->progs.good_prog); 105 "GPL", insns, insn_cnt, &opts); 137 "GPL", insns, insn_cnt, &opts);
|
H A D | token.c | 648 size_t insn_cnt = ARRAY_SIZE(insns); local 667 insns, insn_cnt, &prog_opts); 677 insns, insn_cnt, &prog_opts); 691 insns, insn_cnt, &prog_opts); 701 insns, insn_cnt, &prog_opts);
|
/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/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/util/ |
H A D | sample.h | 91 u64 insn_cnt; member in struct:perf_sample
|
H A D | intel-pt.c | 542 u64 insn_cnt; member in struct:intel_pt_cache_entry 615 u64 offset, u64 insn_cnt, u64 byte_cnt, 629 e->insn_cnt = insn_cnt; 760 u64 insn_cnt = 0; local 836 (!max_insn_cnt || e->insn_cnt <= max_insn_cnt)) { 837 *insn_cnt_ptr = e->insn_cnt; 879 insn_cnt += 1; 894 if (max_insn_cnt && insn_cnt >= max_insn_cnt) 912 *insn_cnt_ptr = insn_cnt; 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) argument 930 intel_pt_cache_add(map__dso(al.map), machine, start_offset, insn_cnt, local [all...] |
/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)
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sock.c | 391 int ret, insn_cnt; local 393 insn_cnt = probe_prog_length(prog); 400 ret = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCK, NULL, "GPL", prog, insn_cnt, &opts);
|
H A D | testing_helpers.c | 263 int insn_cnt = ARRAY_SIZE(insns), i, fd, flags = 0; local 272 insns, insn_cnt, &opts);
|
/linux-master/tools/testing/selftests/net/ |
H A D | reuseport_bpf_numa.c | 89 attr.insn_cnt = ARRAY_SIZE(prog);
|
H A D | reuseport_bpf.c | 112 attr.insn_cnt = ARRAY_SIZE(prog); 355 eprog.insn_cnt = ARRAY_SIZE(ecode);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 122 .insn_cnt = sizeof(insns) / sizeof(insns[0]),
|
/linux-master/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-decoder.c | 1119 uint64_t max_insn_cnt, insn_cnt = 0; local 1136 err = decoder->walk_insn(&intel_pt_insn, &insn_cnt, &decoder->ip, 1147 decoder->tot_insn_cnt += insn_cnt; 1148 decoder->timestamp_insn_cnt += insn_cnt; 1149 decoder->sample_insn_cnt += insn_cnt; 1150 decoder->period_insn_cnt += insn_cnt; 1161 uint64_t max_insn_cnt, insn_cnt = 0; local 1169 err = decoder->walk_insn(intel_pt_insn, &insn_cnt, &decoder->ip, ip, 1172 decoder->tot_insn_cnt += insn_cnt; 1173 decoder->timestamp_insn_cnt += insn_cnt; [all...] |
/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
|