/tools/perf/util/ |
D | alias.c | 28 int src, dst, count = 0, size = 16; in split_cmdline() local 35 for (src = dst = 0; cmdline[src];) { in split_cmdline() 36 char c = cmdline[src]; in split_cmdline() 39 while (cmdline[++src] in split_cmdline() 40 && isspace(cmdline[src])) in split_cmdline() 49 src++; in split_cmdline() 52 src++; in split_cmdline() 55 src++; in split_cmdline() 56 c = cmdline[src]; in split_cmdline() 63 src++; in split_cmdline()
|
D | quote.c | 20 static void sq_quote_buf(struct strbuf *dst, const char *src) in sq_quote_buf() argument 24 if (dst->buf == src) in sq_quote_buf() 28 while (*src) { in sq_quote_buf() 29 size_t len = strcspn(src, "'!"); in sq_quote_buf() 30 strbuf_add(dst, src, len); in sq_quote_buf() 31 src += len; in sq_quote_buf() 32 while (need_bs_quote(*src)) { in sq_quote_buf() 34 strbuf_addch(dst, *src++); in sq_quote_buf()
|
D | callchain.h | 153 struct callchain_root *dst, struct callchain_root *src); 212 struct callchain_cursor *src) in callchain_cursor_snapshot() argument 214 *dest = *src; in callchain_cursor_snapshot() 216 dest->first = src->curr; in callchain_cursor_snapshot() 217 dest->nr -= src->pos; in callchain_cursor_snapshot()
|
D | annotate.c | 463 if (sizeof_sym_hist > (SIZE_MAX - sizeof(*notes->src)) in symbol__alloc_hist() 467 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist() 468 if (notes->src == NULL) in symbol__alloc_hist() 470 notes->src->sizeof_sym_hist = sizeof_sym_hist; in symbol__alloc_hist() 471 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist() 472 INIT_LIST_HEAD(¬es->src->source); in symbol__alloc_hist() 482 notes->src->cycles_hist = calloc(size, sizeof(struct cyc_hist)); in symbol__alloc_hist_cycles() 483 if (notes->src->cycles_hist == NULL) in symbol__alloc_hist_cycles() 493 if (notes->src != NULL) { in symbol__annotate_zero_histograms() 494 memset(notes->src->histograms, 0, in symbol__annotate_zero_histograms() [all …]
|
D | path.c | 29 size_t __weak strlcpy(char *dest, const char *src, size_t size) in strlcpy() argument 31 size_t ret = strlen(src); in strlcpy() 36 memcpy(dest, src, len); in strlcpy()
|
D | annotate.h | 132 struct annotated_source *src; member 137 return (((void *)¬es->src->histograms) + in annotation__histogram() 138 (notes->src->sizeof_sym_hist * idx)); in annotation__histogram()
|
D | callchain.c | 639 struct callchain_node *dst, struct callchain_node *src) in merge_chain_branch() argument 648 list_for_each_entry_safe(list, next_list, &src->val, list) { in merge_chain_branch() 655 if (src->hit) { in merge_chain_branch() 657 append_chain_children(dst, cursor, src->hit); in merge_chain_branch() 660 n = rb_first(&src->rb_root_in); in merge_chain_branch() 664 rb_erase(&child->rb_node_in, &src->rb_root_in); in merge_chain_branch() 680 struct callchain_root *dst, struct callchain_root *src) in callchain_merge() argument 682 return merge_chain_branch(cursor, &dst->node, &src->node); in callchain_merge()
|
D | cache.h | 76 extern size_t strlcpy(char *dest, const char *src, size_t size);
|
/tools/perf/arch/x86/tests/ |
D | gen-insn-x86-dat.sh | 27 gcc -g -c insn-x86-dat-src.c 29 objdump -dSw insn-x86-dat-src.o | awk -f gen-insn-x86-dat.awk > insn-x86-dat-64.c 31 rm -f insn-x86-dat-src.o 35 gcc -g -c -m32 insn-x86-dat-src.c 37 objdump -dSw insn-x86-dat-src.o | awk -f gen-insn-x86-dat.awk > insn-x86-dat-32.c 39 rm -f insn-x86-dat-src.o
|
/tools/testing/selftests/powerpc/copyloops/ |
D | validate.c | 16 static void do_one(char *src, char *dst, unsigned long src_off, in do_one() argument 24 srcp = src + MIN_REDZONE + src_off; in do_one() 27 memset(src, POISON, BUFLEN); in do_one() 64 char *src, *dst, *redzone, *fill; in test_copy_loop() local 68 src = memalign(BUFLEN, BUFLEN); in test_copy_loop() 73 if (!src || !dst || !redzone || !fill) { in test_copy_loop() 87 do_one(src, dst, src_off, dst_off, len, in test_copy_loop()
|
/tools/usb/usbip/ |
D | .gitignore | 19 src/Makefile 20 src/Makefile.in 27 src/usbip 28 src/usbipd
|
D | Makefile.am | 1 SUBDIRS := libsrc src subdir
|
/tools/perf/bench/ |
D | mem-functions.c | 195 static void memcpy_alloc_mem(void **dst, void **src, size_t size) in memcpy_alloc_mem() argument 201 *src = zalloc(size); in memcpy_alloc_mem() 202 if (!*src) in memcpy_alloc_mem() 206 memset(*src, 0, size); in memcpy_alloc_mem() 212 void *src = NULL, *dst = NULL; in do_memcpy_cycles() local 216 memcpy_alloc_mem(&dst, &src, size); in do_memcpy_cycles() 222 fn(dst, src, size); in do_memcpy_cycles() 226 fn(dst, src, size); in do_memcpy_cycles() 229 free(src); in do_memcpy_cycles() 238 void *src = NULL, *dst = NULL; in do_memcpy_gettimeofday() local [all …]
|
/tools/perf/tests/ |
D | .gitignore | 1 llvm-src-base.c 2 llvm-src-kbuild.c
|
D | Build | 34 perf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o 38 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c 45 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c
|
D | perf-targz-src-pkg | 12 make perf-targz-src-pkg > /dev/null
|
/tools/usb/ |
D | hcd-tests.sh | 122 check_config sink-src 153 check_config sink-src 180 check_config sink-src 206 check_config sink-src
|
/tools/perf/util/include/asm/ |
D | uaccess.h | 4 #define __get_user(src, dest) \ argument 6 (src) = *dest; \
|
/tools/perf/util/include/linux/ |
D | bitmap.h | 33 static inline int bitmap_weight(const unsigned long *src, int nbits) in bitmap_weight() argument 36 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight() 37 return __bitmap_weight(src, nbits); in bitmap_weight()
|
D | string.h | 3 void *memdup(const void *src, size_t len);
|
/tools/testing/nvdimm/test/ |
D | Kbuild | 1 ccflags-y := -I$(src)/../../../../drivers/nvdimm/ 2 ccflags-y += -I$(src)/../../../../drivers/acpi/
|
/tools/testing/selftests/exec/ |
D | execveat.c | 137 static void exe_cp(const char *src, const char *dest) in exe_cp() argument 139 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() 150 static int check_execveat_pathmax(int dot_dfd, const char *src, int is_script) in check_execveat_pathmax() argument 174 exe_cp(src, longpath); in check_execveat_pathmax() 184 src, strlen(longpath)); in check_execveat_pathmax()
|
/tools/perf/ui/browsers/ |
D | annotate.c | 391 list_for_each_entry(pos, ¬es->src->source, node) { in annotate_browser__calc_percent() 402 next = disasm__get_next_ip_line(¬es->src->source, pos); in annotate_browser__calc_percent() 510 if (notes->src == NULL && symbol__alloc_hist(target.sym) < 0) { in annotate_browser__callq() 534 list_for_each_entry(pos, ¬es->src->source, node) { in annotate_browser__find_offset() 573 list_for_each_entry_continue(pos, ¬es->src->source, node) { in annotate_browser__find_string() 612 list_for_each_entry_continue_reverse(pos, ¬es->src->source, node) { in annotate_browser__find_string_reverse() 944 if (!notes->src || !notes->src->cycles_hist) in annotate__compute_ipc() 951 ch = ¬es->src->cycles_hist[offset]; in annotate__compute_ipc() 1064 list_for_each_entry(pos, ¬es->src->source, node) { in symbol__tui_annotate() 1095 browser.b.entries = ¬es->src->source, in symbol__tui_annotate() [all …]
|
/tools/perf/config/ |
D | Makefile | 2 ifeq ($(src-perf),) 3 src-perf := $(srctree)/tools/perf 20 include $(src-perf)/config/Makefile.arch 111 -include $(src-perf)/arch/$(ARCH)/Makefile 117 include $(src-perf)/config/utilities.mak 198 CFLAGS += -I$(src-perf)/util/include 199 CFLAGS += -I$(src-perf)/arch/$(ARCH)/include 214 CFLAGS += -I$(src-perf)/util 215 CFLAGS += -I$(src-perf) 299 -include $(src-perf)/arch/$(ARCH)/Makefile
|
/tools/perf/ |
D | builtin-annotate.c | 136 if (notes->src == NULL) { in hists__find_annotations() 191 zfree(¬es->src->cycles_hist); in hists__find_annotations() 192 zfree(¬es->src); in hists__find_annotations()
|