aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2017-04-26 22:15:55 +0100
committerLinus Torvalds <[email protected]>2017-04-26 15:05:47 -0700
commit1e2f82d1e9d12223b4cbd1feb3f2b5596f8049eb (patch)
tree7eeeb6ba287547adc07c8fd6f916bfda60414e54 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentfc08b197bb8c3bebda27b9e9884aaf7557fab53f (diff)
statx: Kill fd-with-NULL-path support in favour of AT_EMPTY_PATH
With the new statx() syscall, the following both allow the attributes of the file attached to a file descriptor to be retrieved: statx(dfd, NULL, 0, ...); and: statx(dfd, "", AT_EMPTY_PATH, ...); Change the code to reject the first option, though this means copying the path and engaging pathwalk for the fstat() equivalent. dfd can be a non-directory provided path is "". [ The timing of this isn't wonderful, but applying this now before we have statx() in any released kernel, before anybody starts using the NULL special case. - Linus ] Fixes: a528d35e8bfc ("statx: Add a system call to make enhanced file info available") Reported-by: Michael Kerrisk <[email protected]> Signed-off-by: David Howells <[email protected]> cc: Eric Sandeen <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions