Home
last modified time | relevance | path

Searched refs:sret (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/tools/perf/jvmti/
Djvmti_agent.c57 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 …]
/Linux-v5.15/tools/power/cpupower/utils/helpers/
Dbitmask.c99 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()
/Linux-v5.15/tools/perf/util/
Dcputopo.c38 ssize_t sret; in build_cpu_topology() local
48 sret = getline(&buf, &len, fp); in build_cpu_topology()
50 if (sret <= 0) in build_cpu_topology()
79 sret = getline(&buf, &len, fp); in build_cpu_topology()
81 if (sret <= 0) in build_cpu_topology()
Dpmu.c150 ssize_t sret; in perf_pmu__parse_scale() local
164 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
165 if (sret < 0) in perf_pmu__parse_scale()
168 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale()
169 scale[sret - 1] = '\0'; in perf_pmu__parse_scale()
171 scale[sret] = '\0'; in perf_pmu__parse_scale()
182 ssize_t sret; in perf_pmu__parse_unit() local
191 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit()
192 if (sret < 0) in perf_pmu__parse_unit()
197 if (alias->unit[sret - 1] == '\n') in perf_pmu__parse_unit()
[all …]
Dgenelf.c108 ssize_t sret; in gen_build_id() local
114 sret = read(fd, note->build_id, sz); in gen_build_id()
118 if (sret != (ssize_t)sz) in gen_build_id()
/Linux-v5.15/drivers/i2c/busses/
Di2c-diolan-u2c.c345 int ret, sret; in diolan_usb_xfer() local
401 sret = diolan_i2c_stop(dev); in diolan_usb_xfer()
402 if (sret < 0 && ret >= 0) in diolan_usb_xfer()
403 ret = sret; in diolan_usb_xfer()
/Linux-v5.15/tools/testing/selftests/vm/
Dprotection_keys.c472 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()
1556 int sret; in test_mprotect_pkey_on_unsupported_cpu() local
1563 sret = syscall(SYS_mprotect_key, ptr, size, PROT_READ, pkey); in test_mprotect_pkey_on_unsupported_cpu()
1564 pkey_assert(sret < 0); in test_mprotect_pkey_on_unsupported_cpu()
/Linux-v5.15/arch/riscv/kernel/
Dkgdb.c45 DECLARE_INSN(sret, MATCH_SRET, MASK_SRET) in DECLARE_INSN()
Dentry.S340 sret
/Linux-v5.15/fs/btrfs/
Dctree.c4209 int sret; in btrfs_search_forward() local
4230 sret = btrfs_bin_search(cur, min_key, &slot); in btrfs_search_forward()
4231 if (sret < 0) { in btrfs_search_forward()
4232 ret = sret; in btrfs_search_forward()
4245 if (sret && slot > 0) in btrfs_search_forward()
4268 sret = btrfs_find_next_key(root, path, min_key, level, in btrfs_search_forward()
4270 if (sret == 0) { in btrfs_search_forward()
/Linux-v5.15/drivers/usb/host/
Dxhci-hub.c1846 int sret; in xhci_bus_resume() local
1930 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1932 if (sret) { in xhci_bus_resume()
/Linux-v5.15/kernel/trace/
Dtrace.c6684 ssize_t sret; in tracing_read_pipe() local
6694 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6695 if (sret != -EBUSY) in tracing_read_pipe()
6701 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); in tracing_read_pipe()
6702 if (sret) in tracing_read_pipe()
6707 sret = tracing_wait_pipe(filp); in tracing_read_pipe()
6708 if (sret <= 0) in tracing_read_pipe()
6713 sret = 0; in tracing_read_pipe()
6758 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6766 if (sret == -EBUSY) in tracing_read_pipe()
[all …]