Home
last modified time | relevance | path

Searched refs:new_cnt (Results 1 – 4 of 4) sorted by relevance

/tools/perf/util/
Dbpf-prologue.h18 struct bpf_insn *new_prog, size_t *new_cnt,
25 size_t *new_cnt, in bpf__gen_prologue() argument
28 if (!new_cnt) in bpf__gen_prologue()
30 *new_cnt = 0; in bpf__gen_prologue()
Dbpf-prologue.c312 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() argument
322 if (!new_prog || !new_cnt) in bpf__gen_prologue()
339 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue()
451 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue()
/tools/perf/arch/x86/util/
Dintel-bts.c285 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_bts_alloc_snapshot_refs() local
288 if (!new_cnt) in intel_bts_alloc_snapshot_refs()
289 new_cnt = 16; in intel_bts_alloc_snapshot_refs()
291 while (new_cnt <= idx) in intel_bts_alloc_snapshot_refs()
292 new_cnt *= 2; in intel_bts_alloc_snapshot_refs()
294 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs()
301 btsr->snapshot_ref_cnt = new_cnt; in intel_bts_alloc_snapshot_refs()
Dintel-pt.c804 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local
807 if (!new_cnt) in intel_pt_alloc_snapshot_refs()
808 new_cnt = 16; in intel_pt_alloc_snapshot_refs()
810 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs()
811 new_cnt *= 2; in intel_pt_alloc_snapshot_refs()
813 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs()
820 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()