Searched refs:buf2 (Results 1 – 7 of 7) sorted by relevance
/tools/testing/selftests/proc/ |
D | proc-self-syscall.c | 33 char buf2[64]; in main() local 46 (long)SYS_read, (long)fd, (long)buf2, (long)sizeof(buf2)); in main() 48 memset(buf2, 0, sizeof(buf2)); in main() 49 rv = sys_read(fd, buf2, sizeof(buf2)); in main() 54 if (strncmp(buf1, buf2, strlen(buf1)) != 0) in main()
|
D | self.c | 26 char buf1[64], buf2[64]; in main() local 33 rv = readlink("/proc/self", buf2, sizeof(buf2)); in main() 35 buf2[rv] = '\0'; in main() 36 assert(streq(buf1, buf2)); in main()
|
D | thread-self.c | 29 char buf1[64], buf2[64]; in f() local 37 rv = readlink("/proc/thread-self", buf2, sizeof(buf2)); in f() 39 buf2[rv] = '\0'; in f() 40 assert(streq(buf1, buf2)); in f()
|
/tools/perf/tests/ |
D | is_printable_array.c | 11 char buf2[] = { 'k', 'r', 'a', 'v', 4, 0 }; in test__is_printable_array() local 23 { buf2, sizeof(buf2), 0 }, in test__is_printable_array()
|
D | code-reading.c | 240 unsigned char buf2[BUFSZ]; in read_object_code() local 325 ret = read_via_objdump(objdump_name, objdump_addr, buf2, len); in read_object_code() 359 if (memcmp(buf1, buf2, len)) { in read_object_code() 364 dump_buf(buf2, len); in read_object_code()
|
/tools/power/acpi/tools/ec/ |
D | ec_access.c | 128 char buf2[EC_SPACE_SIZE]; in dump_ec() local 154 bytes_read = read(fd, buf2, EC_SPACE_SIZE); in dump_ec() 167 if (buf[byte_off] == buf2[byte_off]) in dump_ec() 168 printf(" %.2x ", (uint8_t)buf2[byte_off]); in dump_ec() 170 printf("*%.2x ", (uint8_t)buf2[byte_off]); in dump_ec()
|
/tools/perf/arch/x86/util/ |
D | intel-pt.c | 947 void *buf2, size_t offs2, size_t buf2_size) in intel_pt_compare_buffers() argument 952 return memcmp(buf1, buf2 + offs2, compare_size); in intel_pt_compare_buffers() 955 if (memcmp(buf1, buf2 + offs2, part_size)) in intel_pt_compare_buffers() 960 return memcmp(buf1 + part_size, buf2, compare_size); in intel_pt_compare_buffers()
|