| 2013 | } |
| 2014 | |
| 2015 | static const char * |
| 2016 | linker_basename(const char *path) |
| 2017 | { |
| 2018 | const char *filename; |
| 2019 | |
| 2020 | filename = strrchr(path, '/'); |
| 2021 | if (filename == NULL) |
| 2022 | return path; |
| 2023 | if (filename[1]) |
| 2024 | filename++; |
| 2025 | return (filename); |
| 2026 | } |
| 2027 | |
| 2028 | #ifdef HWPMC_HOOKS |
| 2029 | /* |
no test coverage detected