Skip to content

Commit

Permalink
add stack trace for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Oct 10, 2023
1 parent 7d42eab commit 2bddb99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dlio_profiler/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <sstream>
#include <regex>

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);
Expand Down Expand Up @@ -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<std::string> split(std::string str, char delimiter) {
Expand Down

0 comments on commit 2bddb99

Please sign in to comment.