Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 11 of 11) 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.c23 __u64 bytes; member
98 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.c190 long bytes; member
214 __sync_fetch_and_add(&value->bytes, skb->len); in bpf_prog2()
Dsockex3_kern.c115 __u64 bytes; member
133 __sync_fetch_and_add(&value->bytes, skb->len); in update_stats()
/samples/crypto/
Dfips140_lab_util.c91 static void rand_bytes(uint8_t *bytes, size_t count) in rand_bytes() argument
96 bytes[i] = rand(); in rand_bytes()
104 static const char *bytes_to_hex(const uint8_t *bytes, size_t count) in bytes_to_hex() argument
111 sprintf(&hex[2*i], "%02x", bytes[i]); in bytes_to_hex()