Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 14 of 14) sorted by relevance

/tools/lib/subcmd/
Dsubcmd-util.h39 #define ALLOC_GROW(x, nr, alloc) \ argument
41 if ((nr) > alloc) { \
42 if (alloc_nr(alloc) < (nr)) \
43 alloc = (nr); \
45 alloc = alloc_nr(alloc); \
46 x = xrealloc((x), alloc * sizeof(*(x))); \
Dsigchain.c11 int alloc; member
26 ALLOC_GROW(s->old, s->n + 1, s->alloc); in sigchain_push()
Dhelp.h9 size_t alloc; member
Dhelp.c24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
36 cmds->alloc = 0; in clean_cmdnames()
/tools/perf/util/
Dstrbuf.c22 sb->alloc = sb->len = 0; in strbuf_init()
31 if (sb->alloc) { in strbuf_release()
39 char *res = sb->alloc ? sb->buf : NULL; in strbuf_detach()
51 if (nr < sb->alloc) in strbuf_grow()
57 if (alloc_nr(sb->alloc) > nr) in strbuf_grow()
58 nr = alloc_nr(sb->alloc); in strbuf_grow()
64 buf = realloc(sb->alloc ? sb->buf : NULL, nr * sizeof(*buf)); in strbuf_grow()
69 sb->alloc = nr; in strbuf_grow()
106 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap); in strbuf_addv()
117 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap_saved); in strbuf_addv()
[all …]
Dstrbuf.h51 size_t alloc; member
65 return sb->alloc ? sb->alloc - sb->len - 1 : 0; in strbuf_avail()
71 if (!sb->alloc) { in strbuf_setlen()
76 assert(len < sb->alloc); in strbuf_setlen()
Dhelp-unknown-cmd.c37 if (nr > cmds->alloc) { in add_cmd_list()
39 if (alloc_nr(cmds->alloc) < nr) in add_cmd_list()
40 cmds->alloc = nr; in add_cmd_list()
42 cmds->alloc = alloc_nr(cmds->alloc); in add_cmd_list()
43 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds->names)); in add_cmd_list()
Dtime-utils.c401 goto alloc; in perf_time__range_alloc()
413 alloc: in perf_time__range_alloc()
Dbuild-id.c265 bool alloc = (bf == NULL); in dso__build_id_filename() local
283 if (ret < 0 || (!alloc && size < (unsigned int)ret)) in dso__build_id_filename()
/tools/perf/Documentation/
Dperf-kmem.txt39 --alloc::
48 mode selection options - i.e. --slab, --page, --alloc and/or --caller.
Dexamples.txt28 measured. For example the page alloc/free properties of a 'hackbench
/tools/testing/selftests/media_tests/
Dregression_test.txt21 Start media_device_test to regression test media devnode dynamic alloc
/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst175 [20] VAR 'struct_global_var' type_id=4, linkage=global-alloc
176 [21] VAR 'global_var' type_id=3, linkage=global-alloc
/tools/testing/nvdimm/test/
Dnfit.c199 int (*alloc)(struct nfit_test *t); member
2977 if (nfit_test->alloc(nfit_test)) in nfit_test_probe()
3208 nfit_test->alloc = nfit_test0_alloc; in nfit_test_init()
3215 nfit_test->alloc = nfit_test1_alloc; in nfit_test_init()