blob: d0c62143e62067baf5f488e1b5ee4e4ef9f8ab01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2014-2020 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "tests.h"
#include <unistd.h>
#include "stack-fcall.h"
#ifndef ATTACH_MODE
# define ATTACH_MODE 0
#endif
int
main(int ac, char **av)
{
#if ATTACH_MODE
/* sleep a bit to let the tracer time to catch up */
sleep(1);
#endif
for (;;)
ac += f0(ac, (unsigned long) (void *) main);
}
|