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

argdist, trace: Support non-C identifier names #906

Merged
merged 1 commit into from
Jan 16, 2017

Conversation

goldshtn
Copy link
Collaborator

@goldshtn goldshtn commented Jan 14, 2017

When argdist or trace face a function that has characters
in its name that are not valid in C identifiers, they now
replace these characters with an underscore (_) when
generating function names and structure names to include
in the BPF program. As a result, it is now possible to
trace functions that have these identifiers in their names,
such as Golang functions like fmt.Println.

Resolves #903 reported by @brendangregg.

When argdist or trace face a function that has characters
in its name that are not valid in C identifier, they now
replace these characters with an underscore (`_`) when
generating function names and structure names to include
in the BPF program. As a result, it is now possible to
trace functions that have these identifiers in their names,
such as Golang functions like `fmt.Println`.
@4ast
Copy link
Member

4ast commented Jan 16, 2017

makes sense to me.

@brendangregg
Copy link
Member

thanks!

@brendangregg brendangregg merged commit ec9d42c into iovisor:master Jan 16, 2017
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