| 741 | } |
| 742 | |
| 743 | static const char* ReadFile( const char* path ) |
| 744 | { |
| 745 | int fd = open( path, O_RDONLY ); |
| 746 | if( fd < 0 ) return nullptr; |
| 747 | |
| 748 | static char tmp[64]; |
| 749 | const auto cnt = read( fd, tmp, 63 ); |
| 750 | close( fd ); |
| 751 | if( cnt < 0 ) return nullptr; |
| 752 | tmp[cnt] = '\0'; |
| 753 | return tmp; |
| 754 | } |
| 755 | |
| 756 | bool SysTraceStart( int64_t& samplingPeriod ) |
| 757 | { |
no test coverage detected