Skip to content

Commit

Permalink
Remove usyms.py and redundant ProcessSymbols class
Browse files Browse the repository at this point in the history
This class was obsolete and replaced by the SymbolCache class.
  • Loading branch information
goldshtn committed Feb 21, 2017
1 parent c8ba415 commit 98f5d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
6 changes: 2 additions & 4 deletions examples/tracing/mallocstacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Licensed under the Apache License, Version 2.0 (the "License")

from __future__ import print_function
from bcc import BPF, ProcessSymbols
from bcc import BPF
from time import sleep
import sys

Expand Down Expand Up @@ -43,8 +43,6 @@
b.attach_uprobe(name="c", sym="malloc", fn_name="alloc_enter", pid=pid)
print("Attaching to malloc in pid %d, Ctrl+C to quit." % pid)

decoder = ProcessSymbols(pid)

# sleep until Ctrl-C
try:
sleep(99999999)
Expand All @@ -57,4 +55,4 @@
for k, v in reversed(sorted(calls.items(), key=lambda c: c[1].value)):
print("%d bytes allocated at:" % v.value)
for addr in stack_traces.walk(k.value):
print("\t%s (%x)" % (decoder.decode_addr(addr), addr))
print("\t%s" % b.sym(addr, pid, show_address=True))
43 changes: 0 additions & 43 deletions src/python/bcc/usyms.py

This file was deleted.

0 comments on commit 98f5d4e

Please sign in to comment.