Skip to content

Commit

Permalink
Merge pull request iovisor#2365 from pchaigno/bcc-macro-memleak
Browse files Browse the repository at this point in the history
memleak: use BPF_HASH macro
  • Loading branch information
palmtenor authored May 19, 2019
2 parents 6e7500b + af2f106 commit 3f138ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/memleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def run_command_get_pid(command):
};
BPF_HASH(sizes, u64);
BPF_TABLE("hash", u64, struct alloc_info_t, allocs, 1000000);
BPF_HASH(allocs, u64, struct alloc_info_t, 1000000);
BPF_HASH(memptrs, u64, u64);
BPF_STACK_TRACE(stack_traces, 10240);
BPF_TABLE("hash", u64, struct combined_alloc_info_t, combined_allocs, 10240);
BPF_HASH(combined_allocs, u64, struct combined_alloc_info_t, 10240);
static inline void update_statistics_add(u64 stack_id, u64 sz) {
struct combined_alloc_info_t *existing_cinfo;
Expand Down

0 comments on commit 3f138ce

Please sign in to comment.