diff options
author | 2015-02-22 20:07:13 -0500 | |
---|---|---|
committer | 2015-04-11 22:21:24 -0400 | |
commit | fd2f7cb5bcac58b63717cd45366bff9a6ab961c6 (patch) | |
tree | 4271223c22f541510331e806ac178df920d3b69c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | switch path_init() to struct filename (diff) | |
download | linux-dev-fd2f7cb5bcac58b63717cd45366bff9a6ab961c6.tar.xz linux-dev-fd2f7cb5bcac58b63717cd45366bff9a6ab961c6.zip |
kill struct filename.separate
just make const char iname[] the last member and compare name->name with
name->iname instead of checking name->separate
We need to make sure that out-of-line name doesn't end up allocated adjacent
to struct filename refering to it; fortunately, it's easy to achieve - just
allocate that struct filename with one byte in ->iname[], so that ->iname[0]
will be inside the same object and thus have an address different from that
of out-of-line name [spotted by Boqun Feng <boqun.feng@gmail.com>]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions