diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2025-10-16 18:27:38 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-10-16 18:27:38 +0900 |
| commit | d8090bb73f404a9abff5b7cc9cfdd8cdb1ee4d5f (patch) | |
| tree | f61d4bf27654b153329dc75459bbcd8022fff577 /collect.c | |
| parent | 6090724f0b2d7a577c2662cddb639e036e275e4f (diff) | |
| download | taosc-d8090bb73f404a9abff5b7cc9cfdd8cdb1ee4d5f.tar.gz | |
Read values from files
Diffstat (limited to 'collect.c')
| -rw-r--r-- | collect.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/collect.c b/collect.c index a092555..dc009f1 100644 --- a/collect.c +++ b/collect.c @@ -60,14 +60,6 @@ void log(const struct STATE *state) static mutex_t mutex = MUTEX_INITIALIZER; while (mutex_lock(&mutex) < 0); write(output_file, (const char *)state, sizeof(struct STATE)); - /* - * struct STATE starts with a 16-bit member flags, - * followed by 64-bit registers, leaving 6 bytes in between. - */ - const int offset = (int) sizeof(uint32_t) - (int) sizeof(struct STATE); - lseek(output_file, offset, SEEK_END); - write(output_file, (const char *)&stack_size, sizeof(uint32_t)); - lseek(output_file, 0, SEEK_END); write(output_file, (const char *)state->rsp, stack_size); fsync(output_file); mutex_unlock(&mutex); |
