/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | bpf-prologue.h | 19 struct bpf_insn *new_prog, size_t *new_cnt, 28 size_t *new_cnt, in bpf__gen_prologue() 31 if (!new_cnt) in bpf__gen_prologue() 33 *new_cnt = 0; in bpf__gen_prologue() 25 bpf__gen_prologue(struct probe_trace_arg *args __maybe_unused, int nargs __maybe_unused, struct bpf_insn *new_prog __maybe_unused, size_t *new_cnt, size_t cnt_space __maybe_unused) bpf__gen_prologue() argument
|
H A D | bpf-prologue.c | 365 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() 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() 364 bpf__gen_prologue(struct probe_trace_arg *args, int nargs, struct bpf_insn *new_prog, size_t *new_cnt, size_t cnt_space) bpf__gen_prologue() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | bpf-prologue.h | 18 struct bpf_insn *new_prog, size_t *new_cnt, 28 size_t *new_cnt, in bpf__gen_prologue() 31 if (!new_cnt) in bpf__gen_prologue() 33 *new_cnt = 0; in bpf__gen_prologue() 25 bpf__gen_prologue(struct probe_trace_arg *args __maybe_unused, int nargs __maybe_unused, struct bpf_insn *new_prog __maybe_unused, size_t *new_cnt, size_t cnt_space __maybe_unused) bpf__gen_prologue() argument
|
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/ |
H A D | intel-bts.c | 282 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_bts_alloc_snapshot_refs() local 285 if (!new_cnt) in intel_bts_alloc_snapshot_refs() 286 new_cnt = 16; in intel_bts_alloc_snapshot_refs() 288 while (new_cnt <= idx) in intel_bts_alloc_snapshot_refs() 289 new_cnt *= 2; in intel_bts_alloc_snapshot_refs() 291 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs() 298 btsr->snapshot_ref_cnt = new_cnt; in intel_bts_alloc_snapshot_refs()
|
H A D | intel-pt.c | 927 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local 930 if (!new_cnt) in intel_pt_alloc_snapshot_refs() 931 new_cnt = 16; in intel_pt_alloc_snapshot_refs() 933 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs() 934 new_cnt *= 2; in intel_pt_alloc_snapshot_refs() 936 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs() 943 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
|
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/ |
H A 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()
|
H A D | intel-pt.c | 918 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local 921 if (!new_cnt) in intel_pt_alloc_snapshot_refs() 922 new_cnt = 16; in intel_pt_alloc_snapshot_refs() 924 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs() 925 new_cnt *= 2; in intel_pt_alloc_snapshot_refs() 927 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs() 934 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
|
/kernel/linux/linux-6.6/tools/perf/arch/arm64/util/ |
H A D | arm-spe.c | 309 int cnt = ptr->wrapped_cnt, new_cnt, i; in arm_spe_alloc_wrapped_array() local 320 new_cnt = idx + 1; in arm_spe_alloc_wrapped_array() 325 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); in arm_spe_alloc_wrapped_array() 332 for (i = cnt; i < new_cnt; i++) in arm_spe_alloc_wrapped_array() 335 ptr->wrapped_cnt = new_cnt; in arm_spe_alloc_wrapped_array()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | sysfs.c | 317 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local 333 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups() 334 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | sysfs.c | 318 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local 332 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups() 333 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
|
/kernel/linux/linux-5.10/net/vmw_vsock/ |
H A D | virtio_transport.c | 231 int new_cnt; in virtio_transport_cancel_pkt() local 233 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt() 234 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt() 235 new_cnt < virtqueue_get_vring_size(rx_vq)) in virtio_transport_cancel_pkt()
|
/kernel/linux/linux-6.6/net/vmw_vsock/ |
H A D | virtio_transport.c | 206 int new_cnt; in virtio_transport_cancel_pkt() local 208 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt() 209 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt() 210 new_cnt < virtqueue_get_vring_size(rx_vq)) in virtio_transport_cancel_pkt()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A 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...] |
H A 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 in libbpf_add_mem() [all...] |
H A D | usdt.c | 856 size_t new_cnt = man->free_spec_cnt + usdt_link->spec_cnt; in bpf_link_usdt_detach() local 859 new_free_ids = libbpf_reallocarray(man->free_spec_ids, new_cnt, in bpf_link_usdt_detach() 867 * new_cnt is zero, which can happen in some edge cases, so we in bpf_link_usdt_detach() 870 if (new_free_ids || new_cnt == 0) { in bpf_link_usdt_detach() 874 man->free_spec_cnt = new_cnt; in bpf_link_usdt_detach()
|
/kernel/linux/linux-5.10/drivers/vhost/ |
H A D | vsock.c | 307 int new_cnt; in vhost_transport_cancel_pkt() local 309 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt() 310 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
|
/kernel/linux/linux-6.6/drivers/vhost/ |
H A D | vsock.c | 312 int new_cnt; in vhost_transport_cancel_pkt() local 314 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt() 315 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
|
/kernel/linux/linux-6.6/drivers/perf/ |
H A D | cxl_pmu.c | 696 u64 new_cnt, prev_cnt, delta; in __cxl_pmu_read() local 700 new_cnt = cxl_pmu_read_counter(event); in __cxl_pmu_read() 701 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != prev_cnt); in __cxl_pmu_read() 707 delta = (new_cnt - prev_cnt) & GENMASK_ULL(info->counter_width - 1, 0); in __cxl_pmu_read()
|
/kernel/linux/linux-6.6/drivers/perf/hisilicon/ |
H A D | hisi_pcie_pmu.c | 427 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local 431 new_cnt = hisi_pcie_pmu_read_counter(event); in hisi_pcie_pmu_event_update() 433 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update() 435 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_encoder_phys_cmd.c | 75 int new_cnt; in dpu_encoder_phys_cmd_pp_tx_done_irq() local 88 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq() 93 new_cnt, event); in dpu_encoder_phys_cmd_pp_tx_done_irq() local
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_encoder_phys_cmd.c | 83 int new_cnt; in dpu_encoder_phys_cmd_pp_tx_done_irq() local 94 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq() 99 new_cnt, event); in dpu_encoder_phys_cmd_pp_tx_done_irq() local
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | btf.c | 118 size_t new_cnt; in btf_add_mem() local 128 new_cnt = *cap_cnt; in btf_add_mem() 129 new_cnt += new_cnt / 4; /* expand by 25% */ in btf_add_mem() 130 if (new_cnt < 16) /* but at least 16 elements */ in btf_add_mem() 131 new_cnt = 16; in btf_add_mem() 132 if (new_cnt > max_cnt) /* but not exceeding a set limit */ in btf_add_mem() 133 new_cnt = max_cnt; in btf_add_mem() 134 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in btf_add_mem() 135 new_cnt in btf_add_mem() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.c | 2152 * new_cnt: new added UE count, excluding reserved bad pages, can be NULL 2155 unsigned long *new_cnt) in amdgpu_ras_save_bad_pages() 2163 if (new_cnt) in amdgpu_ras_save_bad_pages() 2164 *new_cnt = 0; in amdgpu_ras_save_bad_pages() 2175 if (new_cnt) in amdgpu_ras_save_bad_pages() 2176 *new_cnt = save_count / adev->umc.retire_unit; in amdgpu_ras_save_bad_pages() 2154 amdgpu_ras_save_bad_pages(struct amdgpu_device *adev, unsigned long *new_cnt) amdgpu_ras_save_bad_pages() argument
|
H A D | amdgpu_ras.h | 601 unsigned long *new_cnt);
|