Searched refs:bytes (Results 1 – 11 of 11) sorted by relevance
/samples/seccomp/ |
A D | bpf-fancy.c | 85 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 D | bpf-direct.c | 67 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 D | pidfd-metadata.c | 90 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 D | sockex2_user.c | 13 __u64 bytes; member 56 value.bytes, value.packets); in main()
|
A D | cookie_uid_helper_example.c | 61 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 D | sockex3_user.c | 22 __u64 bytes; member 92 value.bytes, value.packets); in main()
|
A D | task_fd_query_user.c | 236 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 D | hbm_kern.h | 58 #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate)) argument
|
A D | sockex2_kern.c | 189 long bytes; member 213 __sync_fetch_and_add(&value->bytes, skb->len); in bpf_prog2()
|
A D | sockex3_kern.c | 80 __u64 bytes; member 98 __sync_fetch_and_add(&value->bytes, skb->len); in update_stats()
|
/samples/acrn/ |
A D | vm-sample.c | 113 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