Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for find_symbol method, issue #478 #479

Merged
merged 2 commits into from
Apr 6, 2016
Merged

Conversation

LucaCanali
Copy link
Contributor

As discussed in issue #478 this is a proposed fix for "find_symbol method" to solve the issue that attach_uprobe fails to resolve symbols in some cases, in particular when trying to resolve functions placed in subsections text.hot and text.unlikely.

@@ -464,7 +464,7 @@ def find_symbol(cls, path, sym):
return symbols[sym]

with os.popen("""/usr/bin/objdump -tT %s | \
awk -v sym=%s '$NF == sym && $4 == ".text" \
awk -v sym=%s '$NF == sym && ($4 == ".text" || $4 == "text.hot" || $4 == "text.unlikely") \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you line wrap here to keep under 80 columns?

@drzaeus77 drzaeus77 merged commit fd604b4 into iovisor:master Apr 6, 2016
@drzaeus77
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants