argdist, trace: Support non-C identifier names
authorSasha Goldshtein <goldshtn@gmail.com>
Sat, 14 Jan 2017 11:17:40 +0000 (11:17 +0000)
committerSasha Goldshtein <goldshtn@gmail.com>
Sat, 14 Jan 2017 11:17:40 +0000 (11:17 +0000)
commit3fa7ba1e8a819896510388c91c839ac53557be48
tree81ef57081005c50a6b76feb0fe8241bcde9cbbf8
parent23e0de79887fbfc82edcb8f4847465f31738e617
argdist, trace: Support non-C identifier names

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`.
tools/argdist.py
tools/trace.py