1 /* SPDX-License-Identifier: GPL-2.0 */
4 #include <linux/compiler.h>
8 /* We want to check these symbols in perf script */
9 noinline
void leaf(volatile int b
);
10 noinline
void parent(volatile int b
);
12 static volatile int a
;
13 static volatile sig_atomic_t done
;
15 static void sighandler(int sig __maybe_unused
)
20 noinline
void leaf(volatile int b
)
26 noinline
void parent(volatile int b
)
31 static int leafloop(int argc
, const char **argv
)
38 signal(SIGINT
, sighandler
);
39 signal(SIGALRM
, sighandler
);
46 DEFINE_WORKLOAD(leafloop
);