commit | 80242fbe7e3188769335f845d5c814a8bc421096 | [log] [tgz] |
---|---|---|
author | zcy <zcy.chenyue.zhou@gmail.com> | Fri Jul 02 00:12:32 2021 +0800 |
committer | GitHub <noreply@github.com> | Thu Jul 01 09:12:32 2021 -0700 |
tree | 8199800e0dc82256e68e06d2aeefcfed18cd4289 | |
parent | 719191867a25ce07dc96f7faf9b8ccedadc7ec44 [diff] [blame] |
tools: replace add with xadd (#3518) resolve #3481 replace add with xadd for more tools.
diff --git a/tools/cachestat.py b/tools/cachestat.py index bb94949..2c09d14 100755 --- a/tools/cachestat.py +++ b/tools/cachestat.py
@@ -81,7 +81,7 @@ u64 ip; key.ip = PT_REGS_IP(ctx); - counts.increment(key); // update counter + counts.atomic_increment(key); // update counter return 0; }