/Linux-v6.1/tools/perf/util/ |
D | bpf-prologue.h | 19 struct bpf_insn *new_prog, size_t *new_cnt, 28 size_t *new_cnt, in bpf__gen_prologue() argument 31 if (!new_cnt) in bpf__gen_prologue() 33 *new_cnt = 0; in bpf__gen_prologue()
|
D | bpf-prologue.c | 365 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() argument 375 if (!new_prog || !new_cnt) in bpf__gen_prologue() 392 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue() 504 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue()
|
/Linux-v6.1/tools/perf/arch/x86/util/ |
D | intel-bts.c | 283 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_bts_alloc_snapshot_refs() local 286 if (!new_cnt) in intel_bts_alloc_snapshot_refs() 287 new_cnt = 16; in intel_bts_alloc_snapshot_refs() 289 while (new_cnt <= idx) in intel_bts_alloc_snapshot_refs() 290 new_cnt *= 2; in intel_bts_alloc_snapshot_refs() 292 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs() 299 btsr->snapshot_ref_cnt = new_cnt; in intel_bts_alloc_snapshot_refs()
|
D | intel-pt.c | 931 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local 934 if (!new_cnt) in intel_pt_alloc_snapshot_refs() 935 new_cnt = 16; in intel_pt_alloc_snapshot_refs() 937 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs() 938 new_cnt *= 2; in intel_pt_alloc_snapshot_refs() 940 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs() 947 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
|
/Linux-v6.1/tools/perf/arch/arm64/util/ |
D | arm-spe.c | 331 int cnt = ptr->wrapped_cnt, new_cnt, i; in arm_spe_alloc_wrapped_array() local 342 new_cnt = idx + 1; in arm_spe_alloc_wrapped_array() 347 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); in arm_spe_alloc_wrapped_array() 354 for (i = cnt; i < new_cnt; i++) in arm_spe_alloc_wrapped_array() 357 ptr->wrapped_cnt = new_cnt; in arm_spe_alloc_wrapped_array()
|
/Linux-v6.1/drivers/rtc/ |
D | sysfs.c | 317 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local 331 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups() 332 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
|
/Linux-v6.1/net/vmw_vsock/ |
D | virtio_transport.c | 232 int new_cnt; in virtio_transport_cancel_pkt() local 234 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt() 235 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt() 236 new_cnt < virtqueue_get_vring_size(rx_vq)) in virtio_transport_cancel_pkt()
|
/Linux-v6.1/tools/lib/bpf/ |
D | linker.c | 250 size_t new_cnt = linker->sec_cnt ? linker->sec_cnt + 1 : 2; in add_dst_sec() local 252 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec() 257 memset(secs + linker->sec_cnt, 0, (new_cnt - linker->sec_cnt) * sizeof(*secs)); in add_dst_sec() 260 linker->sec_cnt = new_cnt; in add_dst_sec() 262 sec = &linker->secs[new_cnt - 1]; in add_dst_sec() 263 sec->id = new_cnt - 1; in add_dst_sec() 519 size_t new_cnt = obj->sec_cnt ? obj->sec_cnt + 1 : 2; in add_src_sec() local 521 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_src_sec() 526 memset(secs + obj->sec_cnt, 0, (new_cnt - obj->sec_cnt) * sizeof(*secs)); in add_src_sec() 529 obj->sec_cnt = new_cnt; in add_src_sec() [all …]
|
D | btf.c | 144 size_t new_cnt; in libbpf_add_mem() local 154 new_cnt = *cap_cnt; in libbpf_add_mem() 155 new_cnt += new_cnt / 4; /* expand by 25% */ in libbpf_add_mem() 156 if (new_cnt < 16) /* but at least 16 elements */ in libbpf_add_mem() 157 new_cnt = 16; in libbpf_add_mem() 158 if (new_cnt > max_cnt) /* but not exceeding a set limit */ in libbpf_add_mem() 159 new_cnt = max_cnt; in libbpf_add_mem() 160 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem() 161 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem() 163 new_data = libbpf_reallocarray(*data, new_cnt, elem_sz); in libbpf_add_mem() [all …]
|
D | usdt.c | 845 size_t new_cnt = man->free_spec_cnt + usdt_link->spec_cnt; in bpf_link_usdt_detach() local 848 new_free_ids = libbpf_reallocarray(man->free_spec_ids, new_cnt, in bpf_link_usdt_detach() 860 man->free_spec_cnt = new_cnt; in bpf_link_usdt_detach()
|
D | libbpf.c | 6047 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; in append_subprog_relos() local 6053 relos = libbpf_reallocarray(main_prog->reloc_desc, new_cnt, sizeof(*relos)); in append_subprog_relos() 6060 for (i = main_prog->nr_reloc; i < new_cnt; i++) in append_subprog_relos() 6066 main_prog->nr_reloc = new_cnt; in append_subprog_relos() 6074 size_t sub_insn_idx, insn_idx, new_cnt; in bpf_object__reloc_code() local 6154 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__reloc_code() 6155 insns = libbpf_reallocarray(main_prog->insns, new_cnt, sizeof(*insns)); in bpf_object__reloc_code() 6161 main_prog->insns_cnt = new_cnt; in bpf_object__reloc_code()
|
/Linux-v6.1/drivers/vhost/ |
D | vsock.c | 342 int new_cnt; in vhost_transport_cancel_pkt() local 344 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt() 345 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
|
/Linux-v6.1/drivers/perf/hisilicon/ |
D | hisi_pcie_pmu.c | 415 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local 419 new_cnt = hisi_pcie_pmu_read_counter(event); in hisi_pcie_pmu_event_update() 421 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update() 423 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update()
|
D | hns3_pmu.c | 1279 u64 new_cnt, prev_cnt, delta; in hns3_pmu_read() local 1283 new_cnt = hns3_pmu_read_counter(event); in hns3_pmu_read() 1284 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != in hns3_pmu_read() 1287 delta = new_cnt - prev_cnt; in hns3_pmu_read()
|
/Linux-v6.1/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_encoder_phys_cmd.c | 78 int new_cnt; in dpu_encoder_phys_cmd_pp_tx_done_irq() local 91 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq() 96 new_cnt, event); in dpu_encoder_phys_cmd_pp_tx_done_irq()
|
/Linux-v6.1/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1013 int ocrdma_resize_cq(struct ib_cq *ibcq, int new_cnt, in ocrdma_resize_cq() argument 1019 if (new_cnt < 1 || new_cnt > cq->max_hw_cqe) { in ocrdma_resize_cq() 1023 ibcq->cqe = new_cnt; in ocrdma_resize_cq()
|
/Linux-v6.1/tools/perf/ |
D | builtin-inject.c | 1100 static int synthesize_id_index(struct perf_inject *inject, size_t new_cnt) in synthesize_id_index() argument 1105 size_t from = evlist->core.nr_entries - new_cnt; in synthesize_id_index()
|