aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2023-03-27 20:22:53 +0200
committerChristian Brauner <[email protected]>2023-04-03 11:16:57 +0200
commiteee3a0e93924f2aab8ebaa7f2e26fd0f3b33f9e7 (patch)
tree5a4692d7b26c242aa85b806fc66897e23426bab4 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentca7707f5430ad6b1c9cb7cee0a7f67d69328bb2d (diff)
fanotify: use pidfd_prepare()
We generally try to avoid installing a file descriptor into the caller's file descriptor table just to close it again via close_fd() in case an error occurs. Instead we reserve a file descriptor but don't install it into the caller's file descriptor table yet. If we fail for other, unrelated reasons we can just close the reserved file descriptor and if we make it past all meaningful error paths we just install it. Fanotify gets this right already for one fd type but not for pidfds. Use the new pidfd_prepare() helper to reserve a pidfd and a pidfd file and switch to the more common fd allocation and installation pattern. Acked-by: Jan Kara <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions