/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/stack-fcall.c
26 строк
424 B
Dmitry V. Levin
tests: workaround LTO in strace -k tests
27 июн 2020, 11:00
27 июн 2020, 11:00
adcb550
Код
Авторство
О чём код?
/* * 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); }