X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_local_writer.cpp;h=e560e498cb7a80dd92378db097fa6b7f8a7d6748;hb=46a4839cd1b65981bec9f33b1d7978b821866a51;hp=e625f2ee27640860bdb96d85e998556398ecede1;hpb=c636b9d7041f5046dd5bdc1b459b06979915dc79;p=apitrace diff --git a/common/trace_local_writer.cpp b/common/trace_local_writer.cpp index e625f2e..e560e49 100644 --- a/common/trace_local_writer.cpp +++ b/common/trace_local_writer.cpp @@ -39,6 +39,19 @@ namespace Trace { +static const char *memcpy_args[3] = {"dest", "src", "n"}; +const FunctionSig memcpy_sig = {0, "memcpy", 3, memcpy_args}; + +static const char *malloc_args[1] = {"size"}; +const FunctionSig malloc_sig = {1, "malloc", 1, malloc_args}; + +static const char *free_args[1] = {"ptr"}; +const FunctionSig free_sig = {2, "free", 1, free_args}; + +static const char *realloc_args[2] = {"ptr", "size"}; +const FunctionSig realloc_sig = {3, "realloc", 2, realloc_args}; + + static void exceptionCallback(void) { localWriter.flush();