ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cache_bench_host.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <stdint.h>
16
17#include "cache_bench_io.h"
18
19typedef enum : uint16_t {
22
24typedef struct {
25 int fd;
26 uint64_t size;
28
37
39typedef struct {
40 int fd;
42
55void cb_host_standard_sinks(cb_sink_t* output, cb_sink_t* error);
56
75cb_host_source_open(const char* path, cb_host_source_t* binding, cb_source_t* source);
76
92
111cb_io_status_t cb_host_output_open(const char* path, cb_host_output_t* binding, cb_sink_t* sink);
112
129
143
161
cb_host_limit_t
@ k_cb_host_path_capacity
Bounded host path copy.
cb_io_status_t cb_host_source_open(const char *path, cb_host_source_t *binding, cb_source_t *source)
Open a captured-trace path and publish its source seam.
cb_io_status_t cb_host_scratch_close(cb_host_scratch_t *binding)
Close the scratch transaction.
cb_io_status_t cb_host_scratch_open(cb_host_scratch_t *binding, cb_scratch_t *scratch)
Create an unlinked raw-descriptor scratch transaction.
void cb_host_output_abort(cb_host_output_t *binding)
Abandon a temporary sibling while preserving the destination.
void cb_host_standard_sinks(cb_sink_t *output, cb_sink_t *error)
Bind the process standard-output and standard-error descriptor sinks.
cb_io_status_t cb_host_output_open(const char *path, cb_host_output_t *binding, cb_sink_t *sink)
Open a sibling output transaction, or bind descriptor one for NULL.
cb_io_status_t cb_host_output_commit(cb_host_output_t *binding)
Flush and atomically publish a transactional output.
cb_io_status_t cb_host_source_close(cb_host_source_t *binding)
Close a source binding.
Bounded byte-source and text-sink seams for cache_bench.
cb_io_status_t
Status returned by tool-local injected I/O callbacks.
Output transaction or borrowed standard descriptor.
bool transactional
True when temporary sibling is live.
int dir_fd
Parent descriptor for durable rename.
char temporary[k_cb_host_path_capacity]
Sibling temporary path.
int fd
Writable descriptor.
char destination[k_cb_host_path_capacity]
Final path.
Unlinked raw-descriptor scratch binding.
int fd
Open temporary descriptor.
Borrowed raw descriptor source binding.
int fd
Open read-only descriptor.
uint64_t size
Size snapshot.
Injected bounded random-access scratch transaction.
Injected output sink.
Immutable injected byte source with a snapshotted length.