summaryrefslogtreecommitdiffstats
path: root/src/utl_cpuu.h
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-05-08 13:50:57 +0300
committerHanoh Haim <hhaim@cisco.com>2016-05-08 13:50:57 +0300
commitc2912dfc5ad81e2edcf77b7ee992f92216ed0bad (patch)
tree4676234974ed4de8c804047b2e4463b893518932 /src/utl_cpuu.h
parentf27bfbab72f9221b221a7f36f4063e9ff8e9d307 (diff)
add cache capability to stateless node object
Diffstat (limited to 'src/utl_cpuu.h')
-rwxr-xr-xsrc/utl_cpuu.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/utl_cpuu.h b/src/utl_cpuu.h
index e7bb50bb..bb3fe67c 100755
--- a/src/utl_cpuu.h
+++ b/src/utl_cpuu.h
@@ -32,6 +32,14 @@ public:
m_total_cycles=0;
m_data=0;
}
+ inline void start_work1(){
+ m_data=1;
+
+ }
+ inline void commit1(){
+ m_data=0;
+ }
+
inline void start_work(){
m_data=os_get_hr_tick_64();
}
@@ -50,7 +58,7 @@ public:
private:
uint64_t m_total_cycles;
- uint64_t m_data;
+ uint8_t m_data;
} __rte_cache_aligned;