Skip to content

Commit

Permalink
Additional kernel frame check.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Oct 15, 2024
1 parent 9baf5f4 commit f7e26ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiler/src/profiler/TracyView_Callstack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace tracy

static bool IsFrameExternal( const char* filename, const char* image )
{
if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 ) return true;
if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 || strcmp( filename, "<kernel>" ) == 0 ) return true;
if( strncmp( filename, "C:\\Program Files\\", 17 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true;
if( !image ) return false;
return strncmp( image, "/usr/", 5 ) == 0 || strncmp( image, "/lib/", 5 ) == 0 || strncmp( image, "/lib64/", 7 ) == 0 || strcmp( image, "<kernel>" ) == 0;
Expand Down

0 comments on commit f7e26ac

Please sign in to comment.