diff options
author | Hanoh Haim <hhaim@cisco.com> | 2015-11-19 16:02:28 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2015-11-19 16:02:28 +0200 |
commit | 8b33a58a8269347faec3fa45e7544328ea2ba912 (patch) | |
tree | 4284ed920a9195b40b283376b25fd18634d42238 /src | |
parent | 9c69a86ed94732196c2b62209f61da783cda1386 (diff) |
support debug logs in case of dpdk debug image
Diffstat (limited to 'src')
-rwxr-xr-x | src/bp_sim.cpp | 6 | ||||
-rwxr-xr-x | src/bp_sim.h | 2 | ||||
-rwxr-xr-x | src/main_dpdk.cpp | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp index d35ae68a..f8dd20a1 100755 --- a/src/bp_sim.cpp +++ b/src/bp_sim.cpp @@ -3995,8 +3995,12 @@ bool CFlowGenListPerThread::set_stateless_next_node( CGenNodeStateless * cur_nod } -void CFlowGenListPerThread::start_stateless_daemon(){ +void CFlowGenListPerThread::start_stateless_daemon(CPreviewMode &preview){ m_cur_time_sec = 0; + /* set per thread global info, for performance */ + m_preview_mode = preview; + m_node_gen.open_file("",&m_preview_mode); + m_stateless_dp_info.start(); } diff --git a/src/bp_sim.h b/src/bp_sim.h index be462a91..fcca2428 100755 --- a/src/bp_sim.h +++ b/src/bp_sim.h @@ -3456,7 +3456,7 @@ public : public: void Clean(); void start_generate_stateful(std::string erf_file_name,CPreviewMode &preview); - void start_stateless_daemon(); + void start_stateless_daemon(CPreviewMode &preview); void start_stateless_daemon_simulation(); diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index 865c84ed..f66bcd9e 100755 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -4172,7 +4172,7 @@ int CGlobalTRex::run_in_core(virtual_thread_id_t virt_core_id){ lpt = m_fl.m_threads_info[virt_core_id-1]; if (get_is_stateless()) { - lpt->start_stateless_daemon(); + lpt->start_stateless_daemon(*lp); }else{ lpt->start_generate_stateful(CGlobalInfo::m_options.out_file,*lp); } |