1 //==========================================================================
7 //==========================================================================
8 //####COPYRIGHTBEGIN####
10 // ----------------------------------------------------------------------------
11 // Copyright (C) 1999, 2000 Red Hat, Inc.
13 // This file is part of the eCos host tools.
15 // This program is free software; you can redistribute it and/or modify it
16 // under the terms of the GNU General Public License as published by the Free
17 // Software Foundation; either version 2 of the License, or (at your option)
20 // This program is distributed in the hope that it will be useful, but WITHOUT
21 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
25 // You should have received a copy of the GNU General Public License along with
26 // this program; if not, write to the Free Software Foundation, Inc.,
27 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 // ----------------------------------------------------------------------------
31 //####COPYRIGHTEND####
32 //==========================================================================
33 //#####DESCRIPTIONBEGIN####
36 // Contributors: bartv
39 // Description: Do an awful lot of tracing, to make sure that the
40 // circular buffer is circular.
42 //####DESCRIPTIONEND####
43 //==========================================================================
46 #define CYGDBG_USE_TRACING
47 #define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS
48 #include <cyg/infra/testcase.h>
49 #include <cyg/infra/cyg_trac.h>
55 CYG_REPORT_FUNCNAME("dummy");
60 main(int argc, char** argv)
62 for (int i = 0; i < 1000000; i++) {
63 CYG_TRACE0(true, "no argument here");
67 CYG_TEST_PASS_FINISH("Lots of tracing is possible");