HPCToolkit
Util.cpp File Reference
#include <iostream>
#include <string>
#include <algorithm>
#include <typeinfo>
#include <cstring>
#include <dirent.h>
#include <include/gcc-attr.h>
#include <include/uint.h>
#include "Util.hpp"
#include <lib/banal/StructSimple.hpp>
#include <lib/prof-lean/hpcio.h>
#include <lib/prof-lean/hpcfmt.h>
#include <lib/prof-lean/hpcrun-fmt.h>
#include <lib/prof-lean/hpcrunflat-fmt.h>
#include <lib/support/PathFindMgr.hpp>
#include <lib/support/PathReplacementMgr.hpp>
#include <lib/support/diagnostics.h>
#include <lib/support/realpath.h>
Include dependency graph for Util.cpp:

Go to the source code of this file.

Namespaces

 Analysis
 
 Analysis::Util
 

Functions

static int fileExtensionFilter (const struct dirent *entry, const string &ext, uint extLen)
 
static int hpcrunFileFilter (const struct dirent *entry)
 
Analysis::Util::ProfType_t Analysis::Util::getProfileType (const std::string &filenm)
 
NormalizeProfileArgs_t Analysis::Util::normalizeProfileArgs (const StringVec &inPaths)
 
int Analysis::Util::parseReplacePath (const std::string &arg)
 
Prof::Struct::ACodeNodeAnalysis::Util::demandStructure (VMA vma, Prof::Struct::LM *lmStrct, BinUtil::LM *lm, bool useStruct, const string *unknownProcNm)
 
static string copySourceFileMain (const string &fnm_orig, std::map< string, string > &processedFiles, const Analysis::PathTupleVec &pathVec, const string &dstDir)
 
static bool Flat_Filter (const Prof::Struct::ANode &x, long GCC_ATTR_UNUSED type)
 
void Analysis::Util::copySourceFiles (Prof::Struct::Root *structure, const Analysis::PathTupleVec &pathVec, const string &dstDir)
 
static std::pair< int, string > matchFileWithPath (const string &filenm, const Analysis::PathTupleVec &pathVec)
 
static string copySourceFile (const string &filenm, const string &dstDir, const Analysis::PathTuple &pathTpl)
 
void Analysis::Util::copyTraceFiles (const std::string &dstDir, const std::set< string > &srcFiles)
 

Function Documentation

◆ copySourceFile()

static string copySourceFile ( const string &  filenm,
const string &  dstDir,
const Analysis::PathTuple pathTpl 
)
static

Definition at line 545 of file Util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copySourceFileMain()

static string copySourceFileMain ( const string &  fnm_orig,
std::map< string, string > &  processedFiles,
const Analysis::PathTupleVec pathVec,
const string &  dstDir 
)
static

Definition at line 433 of file Util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fileExtensionFilter()

static int fileExtensionFilter ( const struct dirent *  entry,
const string &  ext,
uint  extLen 
)
inlinestatic

Definition at line 98 of file Util.cpp.

Here is the caller graph for this function:

◆ Flat_Filter()

static bool Flat_Filter ( const Prof::Struct::ANode x,
long GCC_ATTR_UNUSED  type 
)
static

Definition at line 361 of file Util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrunFileFilter()

static int hpcrunFileFilter ( const struct dirent *  entry)
static

Definition at line 112 of file Util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ matchFileWithPath()

static std::pair< int, string > matchFileWithPath ( const string &  filenm,
const Analysis::PathTupleVec pathVec 
)
static

Definition at line 481 of file Util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: