1 /* 2 * Copyright (c) 2016, Google Inc. 3 * All rights reserved. 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef PERFTOOLS_PATH_MATCHING_H_ 9 #define PERFTOOLS_PATH_MATCHING_H_ 10 11 #include <string> 12 13 #include "string_compat.h" 14 15 namespace perftools { 16 17 // Checks if a file is a .so file which is being used by an executing binary 18 // but has been deleted. 19 bool IsDeletedSharedObject(const string& path); 20 // Checks if a file is a .so file with the version appended to it. 21 bool IsVersionedSharedObject(const string& path); 22 23 } // namespace perftools 24 25 #endif // PERFTOOLS_PATH_MATCHING_H_ 26