Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tracing_library/source/tracebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <sys/mman.h>

static size_t strnlen_s(const char *str, size_t len)
{
Expand Down Expand Up @@ -215,6 +216,7 @@ void _clltk_tracebuffer_init(_clltk_tracebuffer_handler_t *buffer)
buffer->runtime.file_offset =
_clltk_tracebuffer_add_to_stack(buffer, buffer->meta.start, meta_size);
}
munmap((void*)buffer->meta.start, meta_size);
}

void _clltk_tracebuffer_deinit(_clltk_tracebuffer_handler_t *buffer)
Expand Down