| /tools/testing/selftests/proc/ |
| A D | proc-self-syscall.c | 32 char buf1[64]; in main() local 45 snprintf(buf1, sizeof(buf1), "%ld 0x%lx 0x%lx 0x%lx", in main() 52 if (rv < strlen(buf1)) in main() 54 if (strncmp(buf1, buf2, strlen(buf1)) != 0) in main()
|
| A D | self.c | 26 char buf1[64], buf2[64]; in main() local 31 snprintf(buf1, sizeof(buf1), "%u", pid); in main() 34 assert(rv == strlen(buf1)); in main() 36 assert(streq(buf1, buf2)); in main()
|
| A D | thread-self.c | 29 char buf1[64], buf2[64]; in f() local 35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid); in f() 38 assert(rv == strlen(buf1)); in f() 40 assert(streq(buf1, buf2)); in f()
|
| /tools/perf/tests/ |
| A D | is_printable_array.c | 10 char buf1[] = { 'k', 'r', 4, 'v', 'a', 0 }; in test__is_printable_array() local 22 { buf1, sizeof(buf1), 0 }, in test__is_printable_array()
|
| A D | code-reading.c | 322 unsigned char buf1[BUFSZ] = {0}; in read_object_code() local 374 al.addr, buf1, len); in read_object_code() 459 if (memcmp(buf1, buf2, len)) { in read_object_code() 462 dump_buf(buf1, len); in read_object_code()
|
| /tools/perf/util/ |
| A D | stream.c | 227 char buf1[512], buf2[512], cbuf1[256], cbuf2[256]; in print_callchain_pair() local 234 scnprintf(buf1, sizeof(buf1), "cycles: %ld, hits: %.2f%%", in print_callchain_pair() 241 printf("%35s\t%35s\n", buf1, buf2); in print_callchain_pair() 260 scnprintf(buf1, sizeof(buf1), "%35s\t%35s", s1, s2); in print_callchain_pair() 261 printf("%s\n", buf1); in print_callchain_pair()
|
| A D | evsel.c | 4116 char buf1[128]; in evsel__warn_user_requested_cpus() local 4119 cpu_map__snprint(user_requested_cpus, buf1, sizeof(buf1)); in evsel__warn_user_requested_cpus() 4122 buf1, pmu ? pmu->name : "cpu", buf2, evsel__name(evsel)); in evsel__warn_user_requested_cpus()
|
| /tools/perf/arch/x86/util/ |
| A D | intel-pt.c | 1033 static bool intel_pt_compare_buffers(void *buf1, size_t compare_size, in intel_pt_compare_buffers() argument 1039 return memcmp(buf1, buf2 + offs2, compare_size); in intel_pt_compare_buffers() 1042 if (memcmp(buf1, buf2 + offs2, part_size)) in intel_pt_compare_buffers() 1047 return memcmp(buf1 + part_size, buf2, compare_size); in intel_pt_compare_buffers()
|
| /tools/testing/selftests/memfd/ |
| A D | memfd_test.c | 51 char buf1[PATH_MAX]; in fd2name() local 55 size = snprintf(buf1, PATH_MAX, "/proc/self/fd/%d", fd); in fd2name() 64 nbytes = readlink(buf1, buf, bufsize-1); in fd2name() 66 printf("readlink(%s) failed %m\n", buf1); in fd2name()
|
| /tools/testing/vsock/ |
| A D | vsock_test.c | 687 unsigned char *buf1; in test_seqpacket_invalid_rec_buffer_client() local 697 buf1 = malloc(buf_size); in test_seqpacket_invalid_rec_buffer_client() 698 if (!buf1) { in test_seqpacket_invalid_rec_buffer_client() 709 memset(buf1, BUF_PATTERN_1, buf_size); in test_seqpacket_invalid_rec_buffer_client() 712 send_buf(fd, buf1, buf_size, 0, buf_size); in test_seqpacket_invalid_rec_buffer_client()
|
| /tools/testing/selftests/net/ |
| A D | gro.c | 632 static char buf1[MAX_HDR_LEN + PAYLOAD_LEN]; in send_flush_id_case() local 640 iph1 = (struct iphdr *)(buf1 + ETH_HLEN); in send_flush_id_case() 644 create_packet(buf1, 0, 0, PAYLOAD_LEN, 0); in send_flush_id_case() 712 write_packet(fd, buf1, total_hdr_len + PAYLOAD_LEN, daddr); in send_flush_id_case()
|