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

Fixed bug around local assignment from char array #449

Merged
merged 1 commit into from
Mar 28, 2016

Conversation

goldshtn
Copy link
Collaborator

Missed that test case when creating automatic local variables from the tracepoint struct. For example, trace 't:block:block_rq_complete' wouldn't work at all because it tries to do char rwbs[8] = tp.rwbs[8]; which makes no sense. Fixed in this PR.

# Special case for 'char whatever[N]', should
# be assigned to a 'char *'
field_type = "char *"
field_name = field_name[:-3]
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is -3? Is it for [N]? In that case, what if N is 2 digits or larger?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I wasn't thinking straight. Fixed in the latest push.

@brendangregg
Copy link
Member

LGTM

@goldshtn
Copy link
Collaborator Author

@drzaeus77: Just wanted to make sure you haven't missed this, I fixed the issue you pointed out and updated the PR.

@drzaeus77 drzaeus77 merged commit af66546 into iovisor:master Mar 28, 2016
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

3 participants