Searched refs:sret (Results 1 – 6 of 6) sorted by relevance
/tools/perf/jvmti/ |
D | jvmti_agent.c | 57 ssize_t sret; in get_e_machine() local 69 sret = read(fd, id, sizeof(id)); in get_e_machine() 70 if (sret != sizeof(id)) in get_e_machine() 77 sret = read(fd, &info, sizeof(info)); in get_e_machine() 78 if (sret != sizeof(info)) in get_e_machine() 422 size_t sret, len, size, flen = 0; in jvmti_write_debug_info() local 465 sret = fwrite_unlocked(&rec, sizeof(rec), 1, fp); in jvmti_write_debug_info() 466 if (sret != 1) in jvmti_write_debug_info() 473 sret = fwrite_unlocked(&addr, len, 1, fp); in jvmti_write_debug_info() 474 if (sret != 1) in jvmti_write_debug_info() [all …]
|
/tools/power/cpupower/utils/helpers/ |
D | bitmask.c | 99 static int scan_was_ok(int sret, char nextc, const char *ok_next_chars) in scan_was_ok() argument 101 return sret == 1 || in scan_was_ok() 102 (sret == 2 && strchr(ok_next_chars, nextc) != NULL); in scan_was_ok() 205 int sret; /* sscanf return (number of matches) */ in bitmask_parselist() local 207 sret = sscanf(p, "%u%c", &a, &nextc); in bitmask_parselist() 208 if (!scan_was_ok(sret, nextc, ",-")) in bitmask_parselist() 215 sret = sscanf(c1, "%u%c", &b, &nextc); in bitmask_parselist() 216 if (!scan_was_ok(sret, nextc, ",:")) in bitmask_parselist() 220 sret = sscanf(c1, "%u%c", &s, &nextc); in bitmask_parselist() 221 if (!scan_was_ok(sret, nextc, ",")) in bitmask_parselist()
|
/tools/perf/util/ |
D | cputopo.c | 37 ssize_t sret; in build_cpu_topology() local 47 sret = getline(&buf, &len, fp); in build_cpu_topology() 49 if (sret <= 0) in build_cpu_topology() 78 sret = getline(&buf, &len, fp); in build_cpu_topology() 80 if (sret <= 0) in build_cpu_topology()
|
D | pmu.c | 146 ssize_t sret; in perf_pmu__parse_scale() local 160 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale() 161 if (sret < 0) in perf_pmu__parse_scale() 164 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale() 165 scale[sret - 1] = '\0'; in perf_pmu__parse_scale() 167 scale[sret] = '\0'; in perf_pmu__parse_scale() 178 ssize_t sret; in perf_pmu__parse_unit() local 187 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit() 188 if (sret < 0) in perf_pmu__parse_unit() 193 if (alias->unit[sret - 1] == '\n') in perf_pmu__parse_unit() [all …]
|
D | genelf.c | 112 ssize_t sret; in gen_build_id() local 118 sret = read(fd, note->build_id, sz); in gen_build_id() 122 if (sret != (ssize_t)sz) in gen_build_id()
|
/tools/testing/selftests/vm/ |
D | protection_keys.c | 472 int sret; in sys_mprotect_pkey() local 478 sret = syscall(SYS_mprotect_key, ptr, size, orig_prot, pkey); in sys_mprotect_pkey() 480 dprintf2("SYS_mprotect_key sret: %d\n", sret); in sys_mprotect_pkey() 486 return sret; in sys_mprotect_pkey() 1484 int sret; in test_mprotect_pkey_on_unsupported_cpu() local 1491 sret = syscall(SYS_mprotect_key, ptr, size, PROT_READ, pkey); in test_mprotect_pkey_on_unsupported_cpu() 1492 pkey_assert(sret < 0); in test_mprotect_pkey_on_unsupported_cpu()
|