/linux-master/tools/perf/util/ |
H A D | bpf-prologue.h | 18 struct bpf_insn *new_prog, size_t *new_cnt, 28 size_t *new_cnt, 31 if (!new_cnt) 33 *new_cnt = 0; 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) argument
|
/linux-master/tools/crypto/tcrypt/ |
H A D | tcrypt_speed_compare.py | 159 new_cnt = item[f"new_{key}"] 161 new_sum += new_cnt 162 differ = round((new_cnt - base_cnt)*100/base_cnt, 2) 168 f"{bit_key:<7} | {byte_blocks:<11} | {base_cnt:<11} | {new_cnt:<11} | {differ:<8}")
|
/linux-master/tools/perf/arch/x86/util/ |
H A D | intel-bts.c | 283 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; local 286 if (!new_cnt) 287 new_cnt = 16; 289 while (new_cnt <= idx) 290 new_cnt *= 2; 292 refs = calloc(new_cnt, sz); 299 btsr->snapshot_ref_cnt = new_cnt;
|
H A D | intel-pt.c | 910 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; local 913 if (!new_cnt) 914 new_cnt = 16; 916 while (new_cnt <= idx) 917 new_cnt *= 2; 919 refs = calloc(new_cnt, sz); 926 ptr->snapshot_ref_cnt = new_cnt;
|
/linux-master/tools/perf/arch/arm64/util/ |
H A D | arm-spe.c | 328 int cnt = ptr->wrapped_cnt, new_cnt, i; local 339 new_cnt = idx + 1; 344 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); 351 for (i = cnt; i < new_cnt; i++) 354 ptr->wrapped_cnt = new_cnt;
|
/linux-master/drivers/rtc/ |
H A D | sysfs.c | 318 size_t old_cnt = 0, add_cnt = 0, new_cnt; local 332 new_cnt = old_cnt + add_cnt + 1; 333 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL);
|
/linux-master/net/vmw_vsock/ |
H A D | virtio_transport.c | 249 int new_cnt; local 251 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); 252 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && 253 new_cnt < virtqueue_get_vring_size(rx_vq))
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 250 size_t new_cnt = linker->sec_cnt ? linker->sec_cnt + 1 : 2; local 252 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); 257 memset(secs + linker->sec_cnt, 0, (new_cnt - linker->sec_cnt) * sizeof(*secs)); 260 linker->sec_cnt = new_cnt; 262 sec = &linker->secs[new_cnt - 1]; 263 sec->id = new_cnt - 1; 519 size_t new_cnt = obj->sec_cnt ? obj->sec_cnt + 1 : 2; local 521 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); 526 memset(secs + obj->sec_cnt, 0, (new_cnt - obj->sec_cnt) * sizeof(*secs)); 529 obj->sec_cnt = new_cnt; [all...] |
H A D | btf.c | 144 size_t new_cnt; local 154 new_cnt = *cap_cnt; 155 new_cnt += new_cnt / 4; /* expand by 25% */ 156 if (new_cnt < 16) /* but at least 16 elements */ 157 new_cnt = 16; 158 if (new_cnt > max_cnt) /* but not exceeding a set limit */ 159 new_cnt = max_cnt; 160 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ 161 new_cnt [all...] |
H A D | usdt.c | 856 size_t new_cnt = man->free_spec_cnt + usdt_link->spec_cnt; local 859 new_free_ids = libbpf_reallocarray(man->free_spec_ids, new_cnt, 867 * new_cnt is zero, which can happen in some edge cases, so we 870 if (new_free_ids || new_cnt == 0) { 874 man->free_spec_cnt = new_cnt;
|
H A D | libbpf.c | 6201 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; local 6207 relos = libbpf_reallocarray(main_prog->reloc_desc, new_cnt, sizeof(*relos)); 6212 if (!relos && new_cnt) 6218 for (i = main_prog->nr_reloc; i < new_cnt; i++) 6224 main_prog->nr_reloc = new_cnt; 6233 size_t new_cnt; local 6238 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; 6239 insns = libbpf_reallocarray(main_prog->insns, new_cnt, sizeof(*insns)); 6245 main_prog->insns_cnt = new_cnt;
|
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_encoder_phys_cmd.c | 87 int new_cnt; local 98 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); 103 new_cnt, event); local
|
/linux-master/drivers/vhost/ |
H A D | vsock.c | 316 int new_cnt; local 318 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); 319 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num)
|
/linux-master/drivers/perf/ |
H A D | cxl_pmu.c | 696 u64 new_cnt, prev_cnt, delta; local 700 new_cnt = cxl_pmu_read_counter(event); 701 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != prev_cnt); 707 delta = (new_cnt - prev_cnt) & GENMASK_ULL(info->counter_width - 1, 0);
|
/linux-master/drivers/perf/hisilicon/ |
H A D | hisi_pcie_pmu.c | 432 u64 new_cnt, prev_cnt, delta; local 436 new_cnt = hisi_pcie_pmu_read_counter(event); 438 new_cnt) != prev_cnt); 440 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD;
|
H A D | hns3_pmu.c | 1279 u64 new_cnt, prev_cnt, delta; local 1283 new_cnt = hns3_pmu_read_counter(event); 1284 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != 1287 delta = new_cnt - prev_cnt;
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.h | 676 unsigned long *new_cnt);
|
H A D | amdgpu_ras.c | 2536 * new_cnt: new added UE count, excluding reserved bad pages, can be NULL 2539 unsigned long *new_cnt) 2547 if (new_cnt) 2548 *new_cnt = 0; 2559 if (new_cnt) 2560 *new_cnt = save_count / adev->umc.retire_unit; 2538 amdgpu_ras_save_bad_pages(struct amdgpu_device *adev, unsigned long *new_cnt) argument
|
/linux-master/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.c | 1013 int ocrdma_resize_cq(struct ib_cq *ibcq, int new_cnt, argument 1019 if (new_cnt < 1 || new_cnt > cq->max_hw_cqe) { 1023 ibcq->cqe = new_cnt;
|
/linux-master/tools/perf/ |
H A D | builtin-inject.c | 1116 static int synthesize_id_index(struct perf_inject *inject, size_t new_cnt) argument 1121 size_t from = evlist->core.nr_entries - new_cnt;
|
/linux-master/kernel/bpf/ |
H A D | verifier.c | 20556 int i, ret, new_cnt; local 20566 new_cnt = 0; 20590 new_cnt++; 20596 if (new_cnt)
|