2 * Copyright (C) 2011 Nils Carlson
4 * SPDX-License-Identifier: LGPL-2.1-only
8 /* This test generates a single event and exits.
13 #include <sys/types.h>
16 #define TRACEPOINT_DEFINE
17 #define TRACEPOINT_CREATE_PROBES
18 #include "ust_tests_exitfast.h"
20 int main(int argc
, char *argv
[])
23 char normal_exit_text
[] = "exit-fast tracepoint normal exit";
24 char suicide_exit_text
[] = "exit-fast tracepoint suicide";
26 if (argc
> 1 && !strcmp(argv
[1], "suicide")) {
31 tracepoint(ust_tests_exitfast
, message
, suicide_exit_text
);
32 kill(getpid(), SIGKILL
);
35 tracepoint(ust_tests_exitfast
, message
, normal_exit_text
);
This page took 0.033852 seconds and 4 git commands to generate.