Searched refs:alloc (Results 1 – 14 of 14) sorted by relevance
/tools/lib/subcmd/ |
D | subcmd-util.h | 39 #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))); \
|
D | sigchain.c | 11 int alloc; member 26 ALLOC_GROW(s->old, s->n + 1, s->alloc); in sigchain_push()
|
D | help.h | 9 size_t alloc; member
|
D | help.c | 24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname() 36 cmds->alloc = 0; in clean_cmdnames()
|
/tools/perf/util/ |
D | strbuf.c | 22 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 …]
|
D | strbuf.h | 51 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()
|
D | help-unknown-cmd.c | 37 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()
|
D | time-utils.c | 401 goto alloc; in perf_time__range_alloc() 413 alloc: in perf_time__range_alloc()
|
D | build-id.c | 265 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/ |
D | perf-kmem.txt | 39 --alloc:: 48 mode selection options - i.e. --slab, --page, --alloc and/or --caller.
|
D | examples.txt | 28 measured. For example the page alloc/free properties of a 'hackbench
|
/tools/testing/selftests/media_tests/ |
D | regression_test.txt | 21 Start media_device_test to regression test media devnode dynamic alloc
|
/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 175 [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/ |
D | nfit.c | 199 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()
|