Created
February 13, 2018 22:50
-
-
Save eklitzke/8bf6957fe886ddec36cde737d69ac6f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evan@bitcoin ~/code/bitcoin (probes) $ readelf -n src/bitcoind | |
Displaying notes found in: .note.ABI-tag | |
Owner Data size Description | |
GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) | |
OS: Linux, ABI: 3.2.0 | |
Displaying notes found in: .note.gnu.build-id | |
Owner Data size Description | |
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) | |
Build ID: 8d3bf52cb6cdbeb3fa3fff3c7f2b709363e873c8 | |
Displaying notes found in: .note.stapsdt | |
Owner Data size Description | |
stapsdt 0x00000037 NT_STAPSDT (SystemTap probe descriptors) | |
Provider: bitcoin | |
Name: flushcache | |
Location: 0x00000000001ac700, Base: 0x00000000003fd3d0, Semaphore: 0x0000000000687078 | |
Arguments: -8@16(%rsp) | |
evan@bitcoin ~/code/bitcoin (probes) $ cat cache.stp | |
#!/usr/bin/env stap | |
global bytes_flushed, flush_count | |
probe process("/home/evan/code/bitcoin/src/bitcoind").mark("flushcache") { | |
bytes_flushed += $arg1 | |
flush_count++ | |
printf("flushed %d bytes\n", $arg1) | |
} | |
probe end { | |
printf("total flushes: %d\n", flush_count) | |
} | |
evan@bitcoin ~/code/bitcoin (probes) $ stap -c "$PWD/src/bitcoind -reindex-chainstate" cache.stp | |
flushed 7293872 bytes | |
flushed 7319968 bytes | |
flushed 7438720 bytes | |
flushed 8320192 bytes | |
flushed 7293872 bytes | |
flushed 7297584 bytes | |
^Cflushed 2856736 bytes | |
flushed 863200 bytes | |
total flushes: 8 | |
bytes_flushed=0x2e6dc70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment