static int probe_entry_lua_cancel()

in profiler/profile.bpf.c [216:231]


static int probe_entry_lua_cancel(struct pt_regs *ctx)
{
	if (!PT_REGS_PARM2(ctx))
		return 0;
	if (!PT_REGS_PARM4(ctx))
		return 0;

	__u64 pid_tgid = bpf_get_current_pid_tgid();
	__u32 pid = pid_tgid >> 32;
	__u32 tid = (__u32)pid_tgid;

	if (targ_pid != -1 && targ_pid != pid)
		return 0;
	bpf_map_delete_elem(&lua_events, &tid);
	return 0;
}