projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfce311
)
Added source for gettime code
author
Sasha Goldshtein
<goldshtn@gmail.com>
Sun, 7 Feb 2016 19:11:56 +0000
(11:11 -0800)
committer
Sasha Goldshtein
<goldshtn@gmail.com>
Sun, 7 Feb 2016 19:11:56 +0000
(11:11 -0800)
tools/memleak.py
patch
|
blob
|
history
diff --git
a/tools/memleak.py
b/tools/memleak.py
index
ddacfb5
..
03fd0c1
100755
(executable)
--- a/
tools/memleak.py
+++ b/
tools/memleak.py
@@
-121,6
+121,7
@@
def decode_stack(info):
stack += " %s (%x) ;" % (decode_addr(code_ranges, addr), addr)
return stack
+# Adapted from http://stackoverflow.com/a/1205762
CLOCK_MONOTONIC_RAW = 4 # see <linux/time.h>
class timespec(ctypes.Structure):