| 28 | } |
| 29 | |
| 30 | void EventProcessor::init() { |
| 31 | json_entries.clear(); |
| 32 | |
| 33 | num_kernel = 0; |
| 34 | num_etw = 0; |
| 35 | num_etwti = 0; |
| 36 | num_dll = 0; |
| 37 | event_count = 0; |
| 38 | GenerateNewTraceId(); |
| 39 | |
| 40 | // Add meta data |
| 41 | nlohmann::json j; |
| 42 | j["type"] = "meta"; |
| 43 | j["func"] = "init"; |
| 44 | j["date"] = get_time_for_file(); |
| 45 | j["version"] = REDEDR_VERSION; |
| 46 | j["trace_id"] = trace_id; |
| 47 | |
| 48 | j["do_etw"] = g_Config.do_etw; |
| 49 | j["do_etwti"] = g_Config.do_etwti; |
| 50 | j["do_kernel"] = g_Config.do_kernel; |
| 51 | j["do_hook"] = g_Config.do_hook; |
| 52 | j["do_hook_callstack"] = g_Config.do_dllinjection_ucallstack; |
| 53 | |
| 54 | j["targets"] = g_Config.targetProcessNames; |
| 55 | json_entries.push_back(j); |
| 56 | } |
| 57 | |
| 58 | |
| 59 | void EventProcessor::LogInitialProcessInfo(Process *process) { |
nothing calls this directly
no test coverage detected