Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 41) sorted by relevance

12

/tools/perf/util/
Dalias.c28 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()
Dquote.c20 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()
Dcallchain.h153 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()
Dannotate.c463 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(&notes->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 …]
Dpath.c29 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()
Dannotate.h132 struct annotated_source *src; member
137 return (((void *)&notes->src->histograms) + in annotation__histogram()
138 (notes->src->sizeof_sym_hist * idx)); in annotation__histogram()
Dcallchain.c639 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()
Dcache.h76 extern size_t strlcpy(char *dest, const char *src, size_t size);
/tools/perf/arch/x86/tests/
Dgen-insn-x86-dat.sh27 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/
Dvalidate.c16 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.gitignore19 src/Makefile
20 src/Makefile.in
27 src/usbip
28 src/usbipd
DMakefile.am1 SUBDIRS := libsrc src subdir
/tools/perf/bench/
Dmem-functions.c195 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.gitignore1 llvm-src-base.c
2 llvm-src-kbuild.c
DBuild34 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
Dperf-targz-src-pkg12 make perf-targz-src-pkg > /dev/null
/tools/usb/
Dhcd-tests.sh122 check_config sink-src
153 check_config sink-src
180 check_config sink-src
206 check_config sink-src
/tools/perf/util/include/asm/
Duaccess.h4 #define __get_user(src, dest) \ argument
6 (src) = *dest; \
/tools/perf/util/include/linux/
Dbitmap.h33 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()
Dstring.h3 void *memdup(const void *src, size_t len);
/tools/testing/nvdimm/test/
DKbuild1 ccflags-y := -I$(src)/../../../../drivers/nvdimm/
2 ccflags-y += -I$(src)/../../../../drivers/acpi/
/tools/testing/selftests/exec/
Dexecveat.c137 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/
Dannotate.c391 list_for_each_entry(pos, &notes->src->source, node) { in annotate_browser__calc_percent()
402 next = disasm__get_next_ip_line(&notes->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, &notes->src->source, node) { in annotate_browser__find_offset()
573 list_for_each_entry_continue(pos, &notes->src->source, node) { in annotate_browser__find_string()
612 list_for_each_entry_continue_reverse(pos, &notes->src->source, node) { in annotate_browser__find_string_reverse()
944 if (!notes->src || !notes->src->cycles_hist) in annotate__compute_ipc()
951 ch = &notes->src->cycles_hist[offset]; in annotate__compute_ipc()
1064 list_for_each_entry(pos, &notes->src->source, node) { in symbol__tui_annotate()
1095 browser.b.entries = &notes->src->source, in symbol__tui_annotate()
[all …]
/tools/perf/config/
DMakefile2 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/
Dbuiltin-annotate.c136 if (notes->src == NULL) { in hists__find_annotations()
191 zfree(&notes->src->cycles_hist); in hists__find_annotations()
192 zfree(&notes->src); in hists__find_annotations()

12