Commit 6de69667 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

tracing: constructor for sym map to initialize everything

parent 844fe4cb
...@@ -17,6 +17,8 @@ class sym_map { ...@@ -17,6 +17,8 @@ class sym_map {
std::map<uint64_t, std::string> map; std::map<uint64_t, std::string> map;
std::map<uint64_t, std::string> map_ins; std::map<uint64_t, std::string> map_ins;
sym_map();
void add_filter(const std::string &sym); void add_filter(const std::string &sym);
void load_file(const char *path, uint64_t offset = 0); void load_file(const char *path, uint64_t offset = 0);
......
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
#include "parser.h" #include "parser.h"
#include "process.h" #include "process.h"
sym_map::sym_map()
: filter_en(false), insmap_en(false)
{
}
void sym_map::add_filter(const std::string &sym) void sym_map::add_filter(const std::string &sym)
{ {
filter_en = true; filter_en = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment