*
*/
-#include <linux/fdtable.h>
+#include <wrapper/fdtable.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/namei.h>
struct lttng_uprobe_handler *uprobe_handler =
container_of(uc, struct lttng_uprobe_handler, up_consumer);
struct lttng_event_notifier *event_notifier = uprobe_handler->u.event_notifier;
+ struct lttng_kernel_notifier_ctx notif_ctx;
if (unlikely(!READ_ONCE(event_notifier->enabled)))
return 0;
- event_notifier->send_notification(event_notifier);
+ notif_ctx.eval_capture = LTTNG_READ_ONCE(event_notifier->eval_capture);
+ event_notifier->send_notification(event_notifier, NULL, NULL, ¬if_ctx);
return 0;
}
* Returns the file backing the given fd. Needs to be done inside an RCU
* critical section.
*/
- file = fcheck(fd);
+ file = lttng_lookup_fd_rcu(fd);
if (file == NULL) {
printk(KERN_WARNING "LTTng: Cannot access file backing the fd(%d)\n", fd);
inode = NULL;
goto end;
}
- /* Ensure the memory we just allocated don't event_notifier page faults. */
+ /* Ensure the memory we just allocated don't notify page faults. */
wrapper_vmalloc_sync_mappings();
uprobe_handler->u.event = priv_data;