Home
last modified time | relevance | path

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

/samples/seccomp/
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()
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/
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/
Dsockex2_user.c14 __u64 bytes; member
51 value.bytes, value.packets); in main()
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()
203 curEntry.packets, curEntry.bytes); in print_table()
261 dataEntry.packets, dataEntry.bytes); in udp_client()
Dsockex3_user.c28 __u64 bytes; member
79 value.bytes, value.packets); in main()
Dtask_fd_query_user.c224 ssize_t bytes; in test_debug_fs_uprobe() local
248 bytes = read(efd, buf, sizeof(buf)); in test_debug_fs_uprobe()
249 CHECK_PERROR_RET(bytes <= 0 || bytes >= sizeof(buf)); in test_debug_fs_uprobe()
251 buf[bytes] = '\0'; in test_debug_fs_uprobe()
Dhbm_kern.h60 #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate)) argument
Dsockex2_kern.c189 long bytes; member
213 __sync_fetch_and_add(&value->bytes, skb->len); in bpf_prog2()
Dsockex3_kern.c112 __u64 bytes; member
130 __sync_fetch_and_add(&value->bytes, skb->len); in update_stats()