OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [infra/] [testsuite/] [cyginfra/] [ttrace3.cxx] - Blame information for rev 196

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
//==========================================================================
2
//
3
//      ttrace3.cxx
4
//
5
//      Trace test case                                                                
6
//
7
//==========================================================================
8
//####COPYRIGHTBEGIN####
9
//                                                                          
10
// ----------------------------------------------------------------------------
11
// Copyright (C) 1999, 2000 Red Hat, Inc.
12
//
13
// This file is part of the eCos host tools.
14
//
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) 
18
// any later version.
19
// 
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 
23
// more details.
24
// 
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.
28
//
29
// ----------------------------------------------------------------------------
30
//                                                                          
31
//####COPYRIGHTEND####
32
//==========================================================================
33
//#####DESCRIPTIONBEGIN####                                             
34
//
35
// Author(s):           bartv
36
// Contributors:        bartv
37
// Date:                1999-01-06
38
// Purpose:
39
// Description:         Do an awful lot of tracing, to make sure that the
40
//                      circular buffer is circular.
41
//
42
//####DESCRIPTIONEND####
43
//==========================================================================
44
 
45
 
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>
50
#include <cstdlib>
51
 
52
void
53
dummy(void)
54
{
55
    CYG_REPORT_FUNCNAME("dummy");
56
    CYG_REPORT_RETURN();
57
}
58
 
59
int
60
main(int argc, char** argv)
61
{
62
    for (int i = 0; i < 1000000; i++) {
63
        CYG_TRACE0(true, "no argument here");
64
        dummy();
65
    }
66
 
67
    CYG_TEST_PASS_FINISH("Lots of tracing is possible");
68
}
69
 
70
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.