Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/perf/util/
Dcputopo.c37 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()
Dpmu.c146 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 …]
Dgenelf.c112 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()
/kernel/linux/linux-5.10/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()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_003.cpp284 void *sret = NULL; in TcpTest() local
306 ret = pthread_join(srv, &sret); in TcpTest()
317 …return static_cast<int>(reinterpret_cast<intptr_t>(sret)) + static_cast<int>(reinterpret_cast<intp… in TcpTest()
/kernel/linux/linux-5.10/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()
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()
/kernel/linux/linux-5.10/fs/btrfs/
Dctree.c2500 int sret; in setup_nodes_for_search() local
2510 sret = split_node(trans, root, p, level); in setup_nodes_for_search()
2512 BUG_ON(sret > 0); in setup_nodes_for_search()
2513 if (sret) { in setup_nodes_for_search()
2514 ret = sret; in setup_nodes_for_search()
2520 int sret; in setup_nodes_for_search() local
2530 sret = balance_level(trans, root, p, level); in setup_nodes_for_search()
2532 if (sret) { in setup_nodes_for_search()
2533 ret = sret; in setup_nodes_for_search()
5228 int sret; in btrfs_search_forward() local
[all …]
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dkgdb.c45 DECLARE_INSN(sret, MATCH_SRET, MASK_SRET) in DECLARE_INSN()
Dentry.S327 sret
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-hub.c1774 int sret; in xhci_bus_resume() local
1858 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1860 if (sret) { in xhci_bus_resume()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace.c6322 ssize_t sret; in tracing_read_pipe() local
6332 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6333 if (sret != -EBUSY) in tracing_read_pipe()
6339 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); in tracing_read_pipe()
6340 if (sret) in tracing_read_pipe()
6345 sret = tracing_wait_pipe(filp); in tracing_read_pipe()
6346 if (sret <= 0) in tracing_read_pipe()
6351 sret = 0; in tracing_read_pipe()
6409 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6417 if (sret == -EBUSY) in tracing_read_pipe()
[all …]