/external/libtraceevent/src/ |
D | kbuffer-parse.c | 65 unsigned long long (*read_long)(struct kbuffer *kbuf, void *ptr); 66 int (*next_event)(struct kbuffer *kbuf); 83 static int do_swap(struct kbuffer *kbuf) in do_swap() argument 85 return ((kbuf->flags & KBUFFER_FL_HOST_BIG_ENDIAN) + kbuf->flags) & in do_swap() 133 static unsigned long long read_8(struct kbuffer *kbuf, void *ptr) in read_8() argument 135 return kbuf->read_8(ptr); in read_8() 138 static unsigned int read_4(struct kbuffer *kbuf, void *ptr) in read_4() argument 140 return kbuf->read_4(ptr); in read_4() 143 static unsigned long long __read_long_8(struct kbuffer *kbuf, void *ptr) in __read_long_8() argument 145 return kbuf->read_8(ptr); in __read_long_8() [all …]
|
/external/libtraceevent/include/traceevent/ |
D | kbuffer.h | 34 void kbuffer_free(struct kbuffer *kbuf); 35 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer); 36 void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts); 37 void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts); 38 unsigned long long kbuffer_timestamp(struct kbuffer *kbuf); 39 unsigned long long kbuffer_subbuf_timestamp(struct kbuffer *kbuf, void *subbuf); 40 unsigned int kbuffer_ptr_delta(struct kbuffer *kbuf, void *ptr); 44 void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts); 46 int kbuffer_curr_index(struct kbuffer *kbuf); 48 int kbuffer_curr_offset(struct kbuffer *kbuf); [all …]
|
/external/vboot_reference/tests/ |
D | vb21_common_tests.c | 258 struct vb2_keyblock *kbuf; in test_verify_keyblock() local 279 TEST_SUCC(vb2_keyblock_create(&kbuf, &pubk3, prik, 2, 0x4321, desc), in test_verify_keyblock() 282 buf = (uint8_t *)kbuf; in test_verify_keyblock() 283 buf_size = kbuf->c.total_size; in test_verify_keyblock() 290 kbuf = (struct vb2_keyblock *)buf; in test_verify_keyblock() 292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock() 296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb), in test_verify_keyblock() 300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), in test_verify_keyblock() 305 kbuf->c.magic = VB2_MAGIC_PACKED_KEY; in test_verify_keyblock() 306 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock() [all …]
|
/external/libtraceevent/Documentation/ |
D | libtraceevent-kbuffer-timestamp.txt | 72 struct kbuffer *kbuf; 115 kbuf = kbuffer_alloc(KBUFFER_ENDIAN_SAME_AS_HOST, 117 if (!kbuf) { 121 ret = kbuffer_load_subbuffer(kbuf, buf); 127 if (kbuffer_subbuffer_size(kbuf) > st.st_size) { 129 kbuffer_subbuffer_size(kbuf), st.st_size); 133 ret = kbuffer_missed_events(kbuf); 141 event = kbuffer_read_event(kbuf, &ts); 143 record_size = kbuffer_curr_size(kbuf); 144 offset = kbuffer_curr_offset(kbuf); [all …]
|
D | libtraceevent-kbuffer-read.txt | 110 struct kbuffer *kbuf; 153 kbuf = kbuffer_alloc(KBUFFER_ENDIAN_SAME_AS_HOST, 155 if (!kbuf) { 159 ret = kbuffer_load_subbuffer(kbuf, buf); 165 if (kbuffer_subbuffer_size(kbuf) > st.st_size) { 167 kbuffer_subbuffer_size(kbuf), st.st_size); 171 ret = kbuffer_missed_events(kbuf); 179 event = kbuffer_read_event(kbuf, &ts); 181 record_size = kbuffer_curr_size(kbuf); 182 offset = kbuffer_curr_offset(kbuf); [all …]
|
D | libtraceevent-kbuffer-create.txt | 104 struct kbuffer *kbuf; 142 kbuf = kbuffer_alloc(KBUFFER_ENDIAN_SAME_AS_HOST, 144 if (!kbuf) { 148 ret = kbuffer_load_subbuffer(kbuf, buf); 154 if (kbuffer_subbuffer_size(kbuf) > st.st_size) { 156 kbuffer_subbuffer_size(kbuf), st.st_size); 160 printf("Kbuffer data starts at %d\n", kbuffer_start_of_data(kbuf)); 162 event = kbuffer_read_event(kbuf, &ts); 165 event = kbuffer_next_event(kbuf, NULL); 172 kbuffer_free(kbuf);
|
/external/musl/src/stat/ |
D | statvfs.c | 46 struct statfs kbuf; in statvfs() local 47 if (__statfs(path, &kbuf)<0) return -1; in statvfs() 48 fixup(buf, &kbuf); in statvfs() 54 struct statfs kbuf; in fstatvfs() local 55 if (__fstatfs(fd, &kbuf)<0) return -1; in fstatvfs() 56 fixup(buf, &kbuf); in fstatvfs()
|
/external/vboot_reference/firmware/lib/ |
D | vboot_kernel.c | 44 uint8_t* kbuf = NULL; in LoadKernel() local 137 kbuf = (uint8_t*)VbExMalloc(KBUF_SIZE); in LoadKernel() 138 if (!kbuf) in LoadKernel() 185 if (0 != VbExStreamRead(stream, KBUF_SIZE, kbuf)) { in LoadKernel() 192 key_block = (VbKeyBlockHeader*)kbuf; in LoadKernel() 281 (kbuf + key_block->key_block_size); in LoadKernel() 387 Memcpy(body_readptr, kbuf + body_offset, body_copied); in LoadKernel() 488 if (kbuf) in LoadKernel() 489 VbExFree(kbuf); in LoadKernel()
|
/external/libtracefs/src/ |
D | tracefs-events.c | 33 struct kbuffer *kbuf; member 44 if (!cpu || !cpu->kbuf) in read_kbuf_record() 46 ptr = kbuffer_read_event(cpu->kbuf, &ts); in read_kbuf_record() 52 cpu->record.size = kbuffer_event_size(cpu->kbuf); in read_kbuf_record() 53 cpu->record.record_size = kbuffer_curr_size(cpu->kbuf); in read_kbuf_record() 54 cpu->record.missed_events = kbuffer_missed_events(cpu->kbuf); in read_kbuf_record() 59 kbuffer_next_event(cpu->kbuf, NULL); in read_kbuf_record() 85 if (!cpu->kbuf) { in read_next_page() 96 cpu->kbuf = kbuffer_alloc(long_size, endian); in read_next_page() 97 if (!cpu->kbuf) in read_next_page() [all …]
|
/external/trace-cmd/lib/trace-cmd/ |
D | trace-input.c | 101 struct kbuffer *kbuf; member 1778 struct kbuffer *kbuf = handle->cpu_data[cpu].kbuf; in update_page_info() local 1786 kbuffer_load_subbuffer(kbuf, ptr); in update_page_info() 1787 if (kbuffer_subbuffer_size(kbuf) > handle->page_size) { in update_page_info() 1788 tracecmd_warning("bad page read, with size of %d", kbuffer_subbuffer_size(kbuf)); in update_page_info() 1791 handle->cpu_data[cpu].timestamp = timestamp_calc(kbuffer_timestamp(kbuf), in update_page_info() 2024 record->data = kbuffer_read_at_offset(cpu_data->kbuf, index, &record->ts); in tracecmd_refresh_record() 2294 struct kbuffer *kbuf = cpu_data->kbuf; in tracecmd_get_cursor() local 2318 return cpu_data->offset + kbuffer_curr_offset(kbuf); in tracecmd_get_cursor() 2380 struct kbuffer *kbuf; in tracecmd_peek_data() local [all …]
|
/external/libtracefs/utest/ |
D | tracefs-utest.c | 424 struct kbuffer *kbuf; member 442 kbuffer_free(data->kbuf); in cleanup_trace_cpu() 487 data->kbuf = kbuffer_alloc(sizeof(long) == 8, !tep_is_bigendian()); in setup_trace_cpu() 488 CU_TEST(data->kbuf != NULL); in setup_trace_cpu() 489 if (!data->kbuf) in setup_trace_cpu() 492 data->data_size = data->bufsize - kbuffer_start_of_data(data->kbuf); in setup_trace_cpu() 559 struct kbuffer *kbuf = data->kbuf; in test_cpu_read() local 576 ret = kbuffer_load_subbuffer(kbuf, buf); in test_cpu_read() 579 record.data = kbuffer_read_event(kbuf, &ts); in test_cpu_read() 586 kbuffer_next_event(kbuf, NULL); in test_cpu_read() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.cc | 233 struct kernel_stat kbuf; in internal_stat() 234 int res = internal_syscall(SYSCALL(stat), path, &kbuf); in internal_stat() 235 kernel_stat_to_stat(&kbuf, (struct stat *)buf); in internal_stat() 257 struct kernel_stat kbuf; in internal_lstat() 258 int res = internal_syscall(SYSCALL(lstat), path, &kbuf); in internal_lstat() 259 kernel_stat_to_stat(&kbuf, (struct stat *)buf); in internal_lstat() 276 struct kernel_stat kbuf; in internal_fstat() local 277 int res = internal_syscall(SYSCALL(fstat), fd, &kbuf); in internal_fstat() 278 kernel_stat_to_stat(&kbuf, (struct stat *)buf); in internal_fstat()
|
/external/python/cpython2/Modules/ |
D | bsddbmodule.c | 563 char *kdata=NULL,kbuf[4096]; in bsddb_seq() local 575 if (krec.size > sizeof(kbuf)) kdata = malloc(krec.size); in bsddb_seq() 576 else kdata = kbuf; in bsddb_seq() 602 if (kdata != kbuf) free(kdata); in bsddb_seq()
|
/external/python/cryptography/src/cryptography/hazmat/primitives/serialization/ |
D | ssh.py | 512 salt, kbuf = _get_sshstr(kdfoptions) 513 rounds, kbuf = _get_u32(kbuf) 514 _check_empty(kbuf)
|
/external/trace-cmd/tracecmd/ |
D | trace-read.c | 902 struct kbuffer *kbuf; in trace_show_data() local 910 kbuf = tracecmd_record_kbuf(handle, record); in trace_show_data() 914 if (kbuf && page && offset) { in trace_show_data() 919 pi = kbuffer_raw_get(kbuf, page, pi); in trace_show_data() 920 while ((pi = kbuffer_raw_get(kbuf, page, pi))) { in trace_show_data()
|
/external/mbedtls/programs/ssl/ |
D | ssl_server2.c | 3083 unsigned char kbuf[MBEDTLS_SSL_TICKET_MAX_KEY_BYTES]; in main() local 3086 ( ret = rng_get( &rng, kbuf, sizeof( kbuf ) ) ) != 0 || in main() 3088 name, sizeof(name), kbuf, sizeof(kbuf), in main()
|
/external/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 16016 void *kbuf; member 34746 char kbuf[1024]; member 45060 struct io_buffer *kbuf; member
|
/external/bcc/libbpf-tools/powerpc/ |
D | vmlinux_510.h | 17714 void *kbuf; member 40784 char kbuf[1024]; member 73636 struct io_buffer *kbuf; member
|
D | vmlinux.h | 17714 void *kbuf; member 40784 char kbuf[1024]; member 73636 struct io_buffer *kbuf; member
|
/external/bcc/libbpf-tools/arm64/ |
D | vmlinux.h | 17400 void *kbuf; member 30391 char kbuf[1024]; member 39950 struct io_buffer *kbuf; member
|
D | vmlinux_510.h | 17400 void *kbuf; member 30391 char kbuf[1024]; member 39950 struct io_buffer *kbuf; member
|
/external/bcc/libbpf-tools/x86/ |
D | vmlinux_505.h | 16480 void *kbuf; member 34458 char kbuf[1024]; member
|
D | vmlinux.h | 16480 void *kbuf; member 34458 char kbuf[1024]; member
|