diff options
author | Song Liu <[email protected]> | 2018-04-23 10:21:35 -0700 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2018-04-26 14:50:56 -0400 |
commit | 61f94203c9efcaf44a7435298697caf406476c79 (patch) | |
tree | 28dbde5c548085dfae5eaef1484ef8e2b56db2d6 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 0c92c7a3c5d416f47b32c5f20a611dfeca5d5f2e (diff) |
tracing: Remove igrab() iput() call from uprobes.c
Caller of uprobe_register is required to keep the inode and containing
mount point referenced.
There was misuse of igrab() in uprobes.c and trace_uprobe.c. This is
because igrab() will not prevent umount of the containing mount point.
To fix this, we added path to struct trace_uprobe, which keeps the inode
and containing mount reference.
For uprobes.c, it is not necessary to call igrab() in uprobe_register(),
as the caller is required to keep the inode reference. The igrab() is
removed and comments on this requirement is added to uprobe_register().
Link: http://lkml.kernel.org/r/CAELBmZB2XX=qEOLAdvGG4cPx4GEntcSnWQquJLUK1ongRj35cA@mail.gmail.com
Link: http://lkml.kernel.org/r/[email protected]
Cc: Ingo Molnar <[email protected]>
Cc: Howard McLauchlan <[email protected]>
Cc: Josef Bacik <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Acked-by: Miklos Szeredi <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions