This patch provides instrumentation for dup system call. It records the
oldfd and newfd if the operation succeed. This is required to recover in
the trace tre fd that newfd reference to.
Signed-off-by: Francis Giraldeau <francis.giraldeau@usherbrooke.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
"fd %d", fd);
}
+void probe_fs_dup(void *_data, unsigned int oldfd, unsigned int newfd)
+{
+ trace_mark_tp(fs, dup, fs_dup, probe_fs_dup,
+ "oldfd %d newfd %d", oldfd, newfd);
+}
+
MODULE_LICENSE("GPL and additional rights");
MODULE_AUTHOR("Mathieu Desnoyers");
MODULE_DESCRIPTION("FS Tracepoint Probes");