Conversation
|
Awesome! Please let me know if you need me to take a look. |
|
I have some questions when testing things out. How should I create a VSCSI file? I've been trying to run test.c but I can't seem to figure out how to create a VSCSI file other than copy paste the existing ones in data directory and rename them :O. [WARN] 03-23-2025 19:34:11 csv.c:61 (tid=8633382976): in_buf_size 1024 is smaller than the first line size 18446744073709551615, the first line will be truncatedAssertion failed: (buf_size < 1024), function csv_detect_header, file csv.c, line 125.
zsh: abort ../test.outWhen running [WARN] 03-23-2025 19:56:08 csv.c:61 (tid=8633382976): in_buf_size 1024 is smaller than the first line size 18446744073709551615, the first line will be truncatedAssertion failed: (buf_size < 1024), function csv_detect_header, file csv.c, line 125.
zsh: abort cargo runI guess I am not as familiar with the code base, but I cannot seem to figure out why for now. |
|
We can use csv and oracleGeneral trace formats for testing. The test.c might be outdated. csv traces are easy to generate, to generate oracleGeneral trace, you can use |
|




#125 Work in progress.
I created a new directory
libcachesim-rsthat looks like:In the
libcachesim-rsdirectory, if we runcargo build, thebuild.rsscript will generate thebindingsdirectory and all the files inside this directory. Then we can include thebindings.rsto ourlib.rsand write safe Rust wrappers inwrapper.rs. For now, I havepub struct Cache,pub struct Reader, andpub struct Requestwith all corresponding methods. With these, I write a Rust equivalenttest.cfile inmain.rs.More Rust wrappers to come.