OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [infra/] [testsuite/] [cyginfra/] [ttrace3.cxx] - Blame information for rev 790

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

Line No. Rev Author Line
1 786 skrzyp
//==========================================================================
2
//
3
//      ttrace3.cxx
4
//
5
//      Trace test case                                                                
6
//
7
//==========================================================================
8
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
9
// -------------------------------------------                              
10
// This file is part of the eCos host tools.                                
11
// Copyright (C) 1999, 2000 Free Software Foundation, Inc.                  
12
//
13
// This program is free software; you can redistribute it and/or modify     
14
// it under the terms of the GNU General Public License as published by     
15
// the Free Software Foundation; either version 2 or (at your option) any   
16
// later version.                                                           
17
//
18
// This program is distributed in the hope that it will be useful, but      
19
// WITHOUT ANY WARRANTY; without even the implied warranty of               
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
21
// General Public License for more details.                                 
22
//
23
// You should have received a copy of the GNU General Public License        
24
// along with this program; if not, write to the                            
25
// Free Software Foundation, Inc., 51 Franklin Street,                      
26
// Fifth Floor, Boston, MA  02110-1301, USA.                                
27
// -------------------------------------------                              
28
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
29
//==========================================================================
30
//#####DESCRIPTIONBEGIN####                                             
31
//
32
// Author(s):           bartv
33
// Contributors:        bartv
34
// Date:                1999-01-06
35
// Purpose:
36
// Description:         Do an awful lot of tracing, to make sure that the
37
//                      circular buffer is circular.
38
//
39
//####DESCRIPTIONEND####
40
//==========================================================================
41
 
42
 
43
#define CYGDBG_USE_TRACING
44
#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS
45
#include <cyg/infra/testcase.h>
46
#include <cyg/infra/cyg_trac.h>
47
#include <cstdlib>
48
 
49
void
50
dummy(void)
51
{
52
    CYG_REPORT_FUNCNAME("dummy");
53
    CYG_REPORT_RETURN();
54
}
55
 
56
int
57
main(int argc, char** argv)
58
{
59
    for (int i = 0; i < 1000000; i++) {
60
        CYG_TRACE0(true, "no argument here");
61
        dummy();
62
    }
63
 
64
    CYG_TEST_PASS_FINISH("Lots of tracing is possible");
65
}
66
 
67
 

powered by: WebSVN 2.1.0

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