Searched refs:bytes (Results 1 – 11 of 11) sorted by relevance
/samples/seccomp/ |
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()
|
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/ |
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/ |
D | sockex2_user.c | 14 __u64 bytes; member 51 value.bytes, value.packets); in main()
|
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() 203 curEntry.packets, curEntry.bytes); in print_table() 261 dataEntry.packets, dataEntry.bytes); in udp_client()
|
D | sockex3_user.c | 23 __u64 bytes; member 98 value.bytes, value.packets); in main()
|
D | task_fd_query_user.c | 224 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()
|
D | hbm_kern.h | 60 #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate)) argument
|
D | sockex2_kern.c | 190 long bytes; member 214 __sync_fetch_and_add(&value->bytes, skb->len); in bpf_prog2()
|
D | sockex3_kern.c | 115 __u64 bytes; member 133 __sync_fetch_and_add(&value->bytes, skb->len); in update_stats()
|
/samples/crypto/ |
D | fips140_lab_util.c | 91 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()
|