fix class naming
This commit is contained in:
parent
f40ab41899
commit
076b5a39ad
|
@ -89,7 +89,7 @@ private:
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cov::cov(std::string const &filename)
|
pctrace::pctrace(std::string const &filename)
|
||||||
: instr_if(nullptr)
|
: instr_if(nullptr)
|
||||||
, filename(filename)
|
, filename(filename)
|
||||||
, output("output.trc")
|
, output("output.trc")
|
||||||
|
@ -99,9 +99,9 @@ cov::cov(std::string const &filename)
|
||||||
#endif
|
#endif
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
cov::~cov() { }
|
pctrace::~pctrace() { }
|
||||||
|
|
||||||
bool cov::registration(const char *const version, vm_if& vm) {
|
bool pctrace::registration(const char *const version, vm_if& vm) {
|
||||||
instr_if = vm.get_arch()->get_instrumentation_if();
|
instr_if = vm.get_arch()->get_instrumentation_if();
|
||||||
if(!instr_if) return false;
|
if(!instr_if) return false;
|
||||||
const string core_name = instr_if->core_type_name();
|
const string core_name = instr_if->core_type_name();
|
||||||
|
@ -152,7 +152,7 @@ bool cov::registration(const char *const version, vm_if& vm) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cov::callback(instr_info_t iinfo, const exec_info& einfo) {
|
void pctrace::callback(instr_info_t iinfo, const exec_info& einfo) {
|
||||||
auto delay = 0;
|
auto delay = 0;
|
||||||
size_t id = iinfo.instr_id;
|
size_t id = iinfo.instr_id;
|
||||||
auto entry = delays[id];
|
auto entry = delays[id];
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
namespace iss {
|
namespace iss {
|
||||||
namespace plugin {
|
namespace plugin {
|
||||||
class lz4compress_steambuf;
|
class lz4compress_steambuf;
|
||||||
class cov : public iss::vm_plugin {
|
class pctrace : public iss::vm_plugin {
|
||||||
struct instr_delay {
|
struct instr_delay {
|
||||||
std::string instr_name;
|
std::string instr_name;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
@ -67,17 +67,17 @@ class cov : public iss::vm_plugin {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
cov(const cov &) = delete;
|
pctrace(const pctrace &) = delete;
|
||||||
|
|
||||||
cov(const cov &&) = delete;
|
pctrace(const pctrace &&) = delete;
|
||||||
|
|
||||||
cov(std::string const &);
|
pctrace(std::string const &);
|
||||||
|
|
||||||
virtual ~cov();
|
virtual ~pctrace();
|
||||||
|
|
||||||
cov &operator=(const cov &) = delete;
|
pctrace &operator=(const pctrace &) = delete;
|
||||||
|
|
||||||
cov &operator=(const cov &&) = delete;
|
pctrace &operator=(const pctrace &&) = delete;
|
||||||
|
|
||||||
bool registration(const char *const version, vm_if &arch) override;
|
bool registration(const char *const version, vm_if &arch) override;
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@ int main(int argc, char *argv[]) {
|
||||||
vm->register_plugin(*ce_plugin);
|
vm->register_plugin(*ce_plugin);
|
||||||
plugin_list.push_back(ce_plugin);
|
plugin_list.push_back(ce_plugin);
|
||||||
} else if (plugin_name == "pctrace") {
|
} else if (plugin_name == "pctrace") {
|
||||||
auto *plugin = new iss::plugin::cov(filename);
|
auto *plugin = new iss::plugin::pctrace(filename);
|
||||||
vm->register_plugin(*plugin);
|
vm->register_plugin(*plugin);
|
||||||
plugin_list.push_back(plugin);
|
plugin_list.push_back(plugin);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -405,7 +405,7 @@ void core_complex::before_end_of_elaboration() {
|
||||||
cpu->vm->register_plugin(*plugin);
|
cpu->vm->register_plugin(*plugin);
|
||||||
plugin_list.push_back(plugin);
|
plugin_list.push_back(plugin);
|
||||||
} else if (plugin_name == "pctrace") {
|
} else if (plugin_name == "pctrace") {
|
||||||
auto *plugin = new iss::plugin::cov(filename);
|
auto *plugin = new iss::plugin::pctrace(filename);
|
||||||
cpu->vm->register_plugin(*plugin);
|
cpu->vm->register_plugin(*plugin);
|
||||||
plugin_list.push_back(plugin);
|
plugin_list.push_back(plugin);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue