From 2bddb998526ef9a7868462103d57366ba6f7c49d Mon Sep 17 00:00:00 2001 From: Hariharan Devarajan Date: Mon, 9 Oct 2023 18:24:54 -0700 Subject: [PATCH] add stack trace for error handling --- src/dlio_profiler/utils/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlio_profiler/utils/utils.h b/src/dlio_profiler/utils/utils.h index b94d8bcb..980fb7ef 100644 --- a/src/dlio_profiler/utils/utils.h +++ b/src/dlio_profiler/utils/utils.h @@ -16,7 +16,7 @@ #include #include -inline std::string getexepath() { +inline std::string getexepath() { // GCOVR_EXCL_START char result[PATH_MAX]; ssize_t count = readlink("/proc/self/exe", result, PATH_MAX); return std::string(result, (count > 0) ? count : 0); @@ -133,7 +133,7 @@ inline void set_signal() { sigaction(SIGABRT,&sa, NULL); sigaction(SIGHUP, &sa, NULL); sigaction(SIGTERM, &sa, NULL); -} +} // GCOVR_EXCL_STOP const std::string ignore_filenames[5] = {".pfw", "/pipe", "/socket","/proc/self", ".py"}; inline std::vector split(std::string str, char delimiter) {