Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/proc/
Dproc-self-syscall.c33 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()
Dself.c26 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()
Dthread-self.c29 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/
Dis_printable_array.c11 char buf2[] = { 'k', 'r', 'a', 'v', 4, 0 }; in test__is_printable_array() local
23 { buf2, sizeof(buf2), 0 }, in test__is_printable_array()
Dcode-reading.c233 unsigned char buf2[BUFSZ] = {0}; in read_object_code() local
318 ret = read_via_objdump(objdump_name, objdump_addr, buf2, len); in read_object_code()
352 if (memcmp(buf1, buf2, len)) { in read_object_code()
357 dump_buf(buf2, len); in read_object_code()
/tools/power/acpi/tools/ec/
Dec_access.c128 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/util/
Devlist-hybrid.c114 char buf1[128], buf2[128]; in evlist__fix_hybrid_cpus() local
147 cpu_map__snprint(pmu->cpus, buf2, sizeof(buf2)); in evlist__fix_hybrid_cpus()
149 buf1, pmu->name, pmu->name, buf2); in evlist__fix_hybrid_cpus()
Dstream.c228 char buf1[512], buf2[512], cbuf1[256], cbuf2[256]; in print_callchain_pair() local
239 scnprintf(buf2, sizeof(buf2), "cycles: %ld, hits: %.2f%%", in print_callchain_pair()
242 printf("%35s\t%35s\n", buf1, buf2); in print_callchain_pair()
/tools/perf/arch/x86/util/
Dintel-pt.c1041 void *buf2, size_t offs2, size_t buf2_size) in intel_pt_compare_buffers() argument
1046 return memcmp(buf1, buf2 + offs2, compare_size); in intel_pt_compare_buffers()
1049 if (memcmp(buf1, buf2 + offs2, part_size)) in intel_pt_compare_buffers()
1054 return memcmp(buf1 + part_size, buf2, compare_size); in intel_pt_compare_buffers()