Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 11 of 11) sorted by relevance

/samples/seccomp/
A Dbpf-fancy.c85 ssize_t bytes; in main() local
98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main()
99 bytes = (bytes > 0 ? bytes : 0); in main()
101 syscall(__NR_write, STDERR_FILENO, buf, bytes); in main()
A Dbpf-direct.c67 ssize_t bytes; in emulator() local
84 bytes = write(STDOUT_FILENO, buf, len); in emulator()
85 ctx->uc_mcontext.gregs[REG_RESULT] = bytes; in emulator()
167 ssize_t bytes = 0; in main() local
174 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)); in main()
176 syscall(__NR_write, STDOUT_FILENO, buf, bytes); in main()
/samples/pidfd/
A Dpidfd-metadata.c90 ssize_t bytes; in main() local
110 bytes = read(statusfd, buf, sizeof(buf)); in main()
111 if (bytes > 0) in main()
112 bytes = write(STDOUT_FILENO, buf, bytes); in main()
/samples/bpf/
A Dsockex2_user.c13 __u64 bytes; member
56 value.bytes, value.packets); in main()
A Dcookie_uid_helper_example.c61 uint64_t bytes; member
129 -32 + (__s16)offsetof(struct stats, bytes)), in prog_load()
155 offsetof(struct stats, bytes)), in prog_load()
212 curEntry.packets, curEntry.bytes); in print_table()
270 dataEntry.packets, dataEntry.bytes); in udp_client()
A Dsockex3_user.c22 __u64 bytes; member
92 value.bytes, value.packets); in main()
A Dtask_fd_query_user.c236 ssize_t bytes; in test_debug_fs_uprobe() local
260 bytes = read(efd, buf, sizeof(buf)); in test_debug_fs_uprobe()
261 CHECK_PERROR_RET(bytes <= 0 || bytes >= sizeof(buf)); in test_debug_fs_uprobe()
263 buf[bytes] = '\0'; in test_debug_fs_uprobe()
A Dhbm_kern.h58 #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate)) argument
A Dsockex2_kern.c189 long bytes; member
213 __sync_fetch_and_add(&value->bytes, skb->len); in bpf_prog2()
A Dsockex3_kern.c80 __u64 bytes; member
98 __sync_fetch_and_add(&value->bytes, skb->len); in update_stats()
/samples/acrn/
A Dvm-sample.c113 int bytes, port, in; in main() local
116 bytes = io_req->reqs.pio_request.size; in main()
118 printf("Guest VM %s PIO[%x] with size[%x]\n", in ? "read" : "write", port, bytes); in main()

Completed in 15 milliseconds