| /linux/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 | 925 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local 928 if (!new_cnt) in intel_pt_alloc_snapshot_refs() 929 new_cnt = 16; in intel_pt_alloc_snapshot_refs() 931 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs() 932 new_cnt *= 2; in intel_pt_alloc_snapshot_refs() 934 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs() 941 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
|
| /linux/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)
|
| /linux/tools/perf/arch/arm64/util/ |
| H A D | arm-spe.c | 502 int cnt = ptr->wrapped_cnt, new_cnt, i; in arm_spe_alloc_wrapped_array() 513 new_cnt = idx + 1; in arm_spe_alloc_wrapped_array() 518 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); in arm_spe_alloc_wrapped_array() 525 for (i = cnt; i < new_cnt; i++) in arm_spe_alloc_wrapped_array() 528 ptr->wrapped_cnt = new_cnt; in arm_spe_alloc_wrapped_array() 501 int cnt = ptr->wrapped_cnt, new_cnt, i; arm_spe_alloc_wrapped_array() local
|
| /linux/drivers/rtc/ |
| H A D | sysfs.c | 310 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local 328 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups() 329 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
|
| /linux/net/vmw_vsock/ |
| H A D | virtio_transport.c | 296 int new_cnt; in virtio_transport_cancel_pkt() local 298 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt() 299 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt() 300 new_cnt < virtqueue_get_vring_size(rx_vq)) in virtio_transport_cancel_pkt()
|
| /linux/tools/lib/bpf/ |
| H A D | linker.c | 314 size_t new_cnt = linker->sec_cnt ? linker->sec_cnt + 1 : 2; in add_dst_sec() local 316 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec() 321 memset(secs + linker->sec_cnt, 0, (new_cnt - linker->sec_cnt) * sizeof(*secs)); in add_dst_sec() 324 linker->sec_cnt = new_cnt; in add_dst_sec() 326 sec = &linker->secs[new_cnt - 1]; in add_dst_sec() 327 sec->id = new_cnt - 1; in add_dst_sec() 645 size_t new_cnt = obj->sec_cnt ? obj->sec_cnt + 1 : 2; in add_src_sec() local 647 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_src_sec() 652 memset(secs + obj->sec_cnt, 0, (new_cnt - obj->sec_cnt) * sizeof(*secs)); in add_src_sec() 655 obj->sec_cnt = new_cnt; in add_src_sec() [all …]
|
| H A D | libbpf.c | 6684 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; in bpf_object__append_subprog_code() 6690 relos = libbpf_reallocarray(main_prog->reloc_desc, new_cnt, sizeof(*relos)); in bpf_object__append_subprog_code() 6695 if (!relos && new_cnt) in bpf_object__append_subprog_code() 6701 for (i = main_prog->nr_reloc; i < new_cnt; i++) in bpf_object__append_subprog_code() 6707 main_prog->nr_reloc = new_cnt; in bpf_object__append_subprog_code() 6734 size_t new_cnt; in bpf_object__reloc_code() 6739 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__reloc_code() 6740 insns = libbpf_reallocarray(main_prog->insns, new_cnt, sizeof(*insns)); in bpf_object__reloc_code() 6746 main_prog->insns_cnt = new_cnt; in bpf_object__reloc_code() 6629 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; append_subprog_relos() local 6679 size_t new_cnt; bpf_object__append_subprog_code() local
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_pcie_pmu.c | 449 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local 453 new_cnt = hisi_pcie_pmu_read_counter(event); in hisi_pcie_pmu_event_update() 455 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update() 457 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update()
|
| /linux/tools/perf/ |
| H A D | builtin-inject.c | 1371 static int synthesize_id_index(struct perf_inject *inject, size_t new_cnt) in synthesize_id_index() 1376 size_t from = evlist->core.nr_entries - new_cnt; in synthesize_id_index() 1370 synthesize_id_index(struct perf_inject * inject,size_t new_cnt) synthesize_id_index() argument
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 18836 int i, ret, new_cnt; in do_check_subprogs() local 18846 new_cnt = 0; in do_check_subprogs() 18870 new_cnt++; in do_check_subprogs() 18876 if (new_cnt) in do_check_subprogs()
|