/**
- * function exit -
+ * function _set_exit_status -
*
* Description: Set exit flag.
*/
0x85, 0, 0, 0, 2; /* call bpf_map_update_elem */
0xbf, $$, 0, 0, 0 /* return r0 */
%}
+
+/**
+ * function _exit
+ *
+ * Description: Send an exit request through perf_events transport.
+ */
+function _send_exit_msg:long ()
+%{ /* bpf */ /* unprivileged */
+ 0x118, $perf_events_map, 0, 0, 1; /* BPF_LD_MAP_FD($perf_events_map, map1) */
+ alloc, $data, 8;
+ 0x7a, $data, -, -, 0x0; /* stdw [$data+0], STP_EXIT */
+ call, $$, perf_event_output, $ctx, $perf_events_map, -1, $data, 8;
+%}