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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [infra/] [testsuite/] [cyginfra/] [ttrace2.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
//      ttrace2.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:         This file tests all the trace macros for the case
37
//                      where tracing and function reporting are enabled.
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
bool tracing_is_enabled(void);
50
bool reporting_is_enabled(void);
51
 
52
#define CYG_TRACE_USER_BOOL  (tracing_is_enabled())
53
#define CYG_REPORT_USER_BOOL (reporting_is_enabled())
54
 
55
 
56
void
57
fn1(void)
58
{
59
    CYG_REPORT_FUNCTION();
60
}
61
 
62
void
63
fn2(void)
64
{
65
    CYG_REPORT_FUNCTYPE("printf-style format string");
66
}
67
 
68
void
69
fn3(void)
70
{
71
    CYG_REPORT_FUNCNAME("fn3");
72
}
73
 
74
void
75
fn4(void)
76
{
77
    CYG_REPORT_FUNCNAMETYPE("fn4", "printf-style format string");
78
}
79
 
80
void
81
fn5(void)
82
{
83
    CYG_REPORT_FUNCTIONC();
84
}
85
 
86
void
87
fn6(void)
88
{
89
    CYG_REPORT_FUNCTYPEC("printf-style format string");
90
}
91
 
92
void
93
fn7(void)
94
{
95
    CYG_REPORT_FUNCNAMEC("fn7");
96
}
97
 
98
void
99
fn8(void)
100
{
101
    CYG_REPORT_FUNCNAMETYPEC("fn8", "printf-style format string");
102
}
103
 
104
void
105
fn9(void)
106
{
107
    CYG_REPORT_FUNCTION();
108
    CYG_REPORT_RETURN();
109
}
110
 
111
void
112
fn10(void)
113
{
114
    CYG_REPORT_FUNCTYPE("result is %d");
115
    CYG_REPORT_RETVAL(42);
116
}
117
 
118
void
119
fn11(void)
120
{
121
    CYG_REPORT_FUNCTION();
122
    CYG_REPORT_FUNCARGVOID();
123
}
124
 
125
void
126
fn12(int glorious)
127
{
128
    CYG_REPORT_FUNCTION();
129
    CYG_REPORT_FUNCARG1("%d", glorious);
130
}
131
 
132
void
133
fn13(int glorious, int summer)
134
{
135
    CYG_REPORT_FUNCTION();
136
    CYG_REPORT_FUNCARG2("%d %d", glorious, summer);
137
}
138
 
139
void
140
fn14(int glorious, int summer, int by)
141
{
142
    CYG_REPORT_FUNCTION();
143
    CYG_REPORT_FUNCARG3("%d %d %d", glorious, summer, by);
144
}
145
 
146
void
147
fn15(int glorious, int summer, int by, int thisse)
148
{
149
    CYG_REPORT_FUNCTION();
150
    CYG_REPORT_FUNCARG4("%d %d %d %d", glorious, summer, by, thisse);
151
}
152
 
153
void
154
fn16(int glorious, int summer, int by, int thisse, int son)
155
{
156
    CYG_REPORT_FUNCTION();
157
    CYG_REPORT_FUNCARG5("%d %d %d %d %d", glorious, summer, by, thisse, son);
158
}
159
 
160
void
161
fn17(int glorious, int summer, int by, int thisse, int son, int of)
162
{
163
    CYG_REPORT_FUNCTION();
164
    CYG_REPORT_FUNCARG6("%d %d %d %d %d %d", glorious, summer, by, thisse, son, of);
165
}
166
 
167
void
168
fn18(int glorious, int summer, int by, int thisse, int son, int of, int york)
169
{
170
    CYG_REPORT_FUNCTION();
171
    CYG_REPORT_FUNCARG7("%d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york);
172
}
173
 
174
void
175
fn19(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
176
{
177
    CYG_REPORT_FUNCTION();
178
    CYG_REPORT_FUNCARG8("%d %d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york, stop);
179
}
180
 
181
void
182
fn20(int glorious)
183
{
184
    CYG_REPORT_FUNCTION();
185
    CYG_REPORT_FUNCARG1X(glorious);
186
}
187
 
188
void
189
fn21(int glorious, int summer)
190
{
191
    CYG_REPORT_FUNCTION();
192
    CYG_REPORT_FUNCARG2X(glorious, summer);
193
}
194
 
195
void
196
fn22(int glorious, int summer, int by)
197
{
198
    CYG_REPORT_FUNCTION();
199
    CYG_REPORT_FUNCARG3X(glorious, summer, by);
200
}
201
 
202
void
203
fn23(int glorious, int summer, int by, int thisse)
204
{
205
    CYG_REPORT_FUNCTION();
206
    CYG_REPORT_FUNCARG4X(glorious, summer, by, thisse);
207
}
208
 
209
void
210
fn24(int glorious, int summer, int by, int thisse, int son)
211
{
212
    CYG_REPORT_FUNCTION();
213
    CYG_REPORT_FUNCARG5X(glorious, summer, by, thisse, son);
214
}
215
 
216
void
217
fn25(int glorious, int summer, int by, int thisse, int son, int of)
218
{
219
    CYG_REPORT_FUNCTION();
220
    CYG_REPORT_FUNCARG6X(glorious, summer, by, thisse, son, of);
221
}
222
 
223
void
224
fn26(int glorious, int summer, int by, int thisse, int son, int of, int york)
225
{
226
    CYG_REPORT_FUNCTION();
227
    CYG_REPORT_FUNCARG7X(glorious, summer, by, thisse, son, of, york);
228
}
229
 
230
void
231
fn27(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
232
{
233
    CYG_REPORT_FUNCTION();
234
    CYG_REPORT_FUNCARG8X(glorious, summer, by, thisse, son, of, york, stop);
235
}
236
 
237
void
238
fn28(int glorious)
239
{
240
    CYG_REPORT_FUNCTION();
241
    CYG_REPORT_FUNCARG1Y(glorious);
242
}
243
 
244
void
245
fn29(int glorious, int summer)
246
{
247
    CYG_REPORT_FUNCTION();
248
    CYG_REPORT_FUNCARG2Y(glorious, summer);
249
}
250
 
251
void
252
fn30(int glorious, int summer, int by)
253
{
254
    CYG_REPORT_FUNCTION();
255
    CYG_REPORT_FUNCARG3Y(glorious, summer, by);
256
}
257
 
258
void
259
fn31(int glorious, int summer, int by, int thisse)
260
{
261
    CYG_REPORT_FUNCTION();
262
    CYG_REPORT_FUNCARG4Y(glorious, summer, by, thisse);
263
}
264
 
265
void
266
fn32(int glorious, int summer, int by, int thisse, int son)
267
{
268
    CYG_REPORT_FUNCTION();
269
    CYG_REPORT_FUNCARG5Y(glorious, summer, by, thisse, son);
270
}
271
 
272
void
273
fn33(int glorious, int summer, int by, int thisse, int son, int of)
274
{
275
    CYG_REPORT_FUNCTION();
276
    CYG_REPORT_FUNCARG6Y(glorious, summer, by, thisse, son, of);
277
}
278
 
279
void
280
fn34(int glorious, int summer, int by, int thisse, int son, int of, int york)
281
{
282
    CYG_REPORT_FUNCTION();
283
    CYG_REPORT_FUNCARG7Y(glorious, summer, by, thisse, son, of, york);
284
}
285
 
286
void
287
fn35(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
288
{
289
    CYG_REPORT_FUNCTION();
290
    CYG_REPORT_FUNCARG8D(glorious, summer, by, thisse, son, of, york, stop);
291
}
292
 
293
void
294
fn36(int glorious)
295
{
296
    CYG_REPORT_FUNCTION();
297
    CYG_REPORT_FUNCARG1D(glorious);
298
}
299
 
300
void
301
fn37(int glorious, int summer)
302
{
303
    CYG_REPORT_FUNCTION();
304
    CYG_REPORT_FUNCARG2D(glorious, summer);
305
}
306
 
307
void
308
fn38(int glorious, int summer, int by)
309
{
310
    CYG_REPORT_FUNCTION();
311
    CYG_REPORT_FUNCARG3D(glorious, summer, by);
312
}
313
 
314
void
315
fn39(int glorious, int summer, int by, int thisse)
316
{
317
    CYG_REPORT_FUNCTION();
318
    CYG_REPORT_FUNCARG4D(glorious, summer, by, thisse);
319
}
320
 
321
void
322
fn40(int glorious, int summer, int by, int thisse, int son)
323
{
324
    CYG_REPORT_FUNCTION();
325
    CYG_REPORT_FUNCARG5D(glorious, summer, by, thisse, son);
326
}
327
 
328
void
329
fn41(int glorious, int summer, int by, int thisse, int son, int of)
330
{
331
    CYG_REPORT_FUNCTION();
332
    CYG_REPORT_FUNCARG6D(glorious, summer, by, thisse, son, of);
333
}
334
 
335
void
336
fn42(int glorious, int summer, int by, int thisse, int son, int of, int york)
337
{
338
    CYG_REPORT_FUNCTION();
339
    CYG_REPORT_FUNCARG7D(glorious, summer, by, thisse, son, of, york);
340
}
341
 
342
void
343
fn43(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
344
{
345
    CYG_REPORT_FUNCTION();
346
    CYG_REPORT_FUNCARG8D(glorious, summer, by, thisse, son, of, york, stop);
347
}
348
 
349
void
350
fn44(int glorious)
351
{
352
    CYG_REPORT_FUNCTION();
353
    CYG_REPORT_FUNCARG1XV(glorious);
354
}
355
 
356
void
357
fn45(int glorious, int summer)
358
{
359
    CYG_REPORT_FUNCTION();
360
    CYG_REPORT_FUNCARG2XV(glorious, summer);
361
}
362
 
363
void
364
fn46(int glorious, int summer, int by)
365
{
366
    CYG_REPORT_FUNCTION();
367
    CYG_REPORT_FUNCARG3XV(glorious, summer, by);
368
}
369
 
370
void
371
fn47(int glorious, int summer, int by, int thisse)
372
{
373
    CYG_REPORT_FUNCTION();
374
    CYG_REPORT_FUNCARG4XV(glorious, summer, by, thisse);
375
}
376
 
377
void
378
fn48(int glorious, int summer, int by, int thisse, int son)
379
{
380
    CYG_REPORT_FUNCTION();
381
    CYG_REPORT_FUNCARG5XV(glorious, summer, by, thisse, son);
382
}
383
 
384
void
385
fn49(int glorious, int summer, int by, int thisse, int son, int of)
386
{
387
    CYG_REPORT_FUNCTION();
388
    CYG_REPORT_FUNCARG6XV(glorious, summer, by, thisse, son, of);
389
}
390
 
391
void
392
fn50(int glorious, int summer, int by, int thisse, int son, int of, int york)
393
{
394
    CYG_REPORT_FUNCTION();
395
    CYG_REPORT_FUNCARG7XV(glorious, summer, by, thisse, son, of, york);
396
}
397
 
398
void
399
fn51(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
400
{
401
    CYG_REPORT_FUNCTION();
402
    CYG_REPORT_FUNCARG8XV(glorious, summer, by, thisse, son, of, york, stop);
403
}
404
 
405
void
406
fn52(int glorious)
407
{
408
    CYG_REPORT_FUNCTION();
409
    CYG_REPORT_FUNCARG1YV(glorious);
410
}
411
 
412
void
413
fn53(int glorious, int summer)
414
{
415
    CYG_REPORT_FUNCTION();
416
    CYG_REPORT_FUNCARG2YV(glorious, summer);
417
}
418
 
419
void
420
fn54(int glorious, int summer, int by)
421
{
422
    CYG_REPORT_FUNCTION();
423
    CYG_REPORT_FUNCARG3YV(glorious, summer, by);
424
}
425
 
426
void
427
fn55(int glorious, int summer, int by, int thisse)
428
{
429
    CYG_REPORT_FUNCTION();
430
    CYG_REPORT_FUNCARG4YV(glorious, summer, by, thisse);
431
}
432
 
433
void
434
fn56(int glorious, int summer, int by, int thisse, int son)
435
{
436
    CYG_REPORT_FUNCTION();
437
    CYG_REPORT_FUNCARG5YV(glorious, summer, by, thisse, son);
438
}
439
 
440
void
441
fn57(int glorious, int summer, int by, int thisse, int son, int of)
442
{
443
    CYG_REPORT_FUNCTION();
444
    CYG_REPORT_FUNCARG6YV(glorious, summer, by, thisse, son, of);
445
}
446
 
447
void
448
fn58(int glorious, int summer, int by, int thisse, int son, int of, int york)
449
{
450
    CYG_REPORT_FUNCTION();
451
    CYG_REPORT_FUNCARG7YV(glorious, summer, by, thisse, son, of, york);
452
}
453
 
454
void
455
fn59(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
456
{
457
    CYG_REPORT_FUNCTION();
458
    CYG_REPORT_FUNCARG8YV(glorious, summer, by, thisse, son, of, york, stop);
459
}
460
 
461
void
462
fn60(int glorious)
463
{
464
    CYG_REPORT_FUNCTION();
465
    CYG_REPORT_FUNCARG1DV(glorious);
466
}
467
 
468
void
469
fn61(int glorious, int summer)
470
{
471
    CYG_REPORT_FUNCTION();
472
    CYG_REPORT_FUNCARG2DV(glorious, summer);
473
}
474
 
475
void
476
fn62(int glorious, int summer, int by)
477
{
478
    CYG_REPORT_FUNCTION();
479
    CYG_REPORT_FUNCARG3DV(glorious, summer, by);
480
}
481
 
482
void
483
fn63(int glorious, int summer, int by, int thisse)
484
{
485
    CYG_REPORT_FUNCTION();
486
    CYG_REPORT_FUNCARG4DV(glorious, summer, by, thisse);
487
}
488
 
489
void
490
fn64(int glorious, int summer, int by, int thisse, int son)
491
{
492
    CYG_REPORT_FUNCTION();
493
    CYG_REPORT_FUNCARG5DV(glorious, summer, by, thisse, son);
494
}
495
 
496
void
497
fn65(int glorious, int summer, int by, int thisse, int son, int of)
498
{
499
    CYG_REPORT_FUNCTION();
500
    CYG_REPORT_FUNCARG6DV(glorious, summer, by, thisse, son, of);
501
}
502
 
503
void
504
fn66(int glorious, int summer, int by, int thisse, int son, int of, int york)
505
{
506
    CYG_REPORT_FUNCTION();
507
    CYG_REPORT_FUNCARG7DV(glorious, summer, by, thisse, son, of, york);
508
}
509
 
510
void
511
fn67(int glorious, int summer, int by, int thisse, int son, int of, int york, int stop)
512
{
513
    CYG_REPORT_FUNCTION();
514
    CYG_REPORT_FUNCARG8DV(glorious, summer, by, thisse, son, of, york, stop);
515
}
516
 
517
int
518
main(int argc, char** argv)
519
{
520
    int glorious    = 0;
521
    int summer      = 1;
522
    int by          = 2;
523
    int thisse      = 4;
524
    int son         = 5;
525
    int of          = 6;
526
    int york        = 7;
527
    int stop        = 8;
528
 
529
    CYG_TRACE0(true, "no argument here");
530
    CYG_TRACE1(true, "%d", glorious);
531
    CYG_TRACE2(true, "%d %d", glorious, summer);
532
    CYG_TRACE3(true, "%d %d %d", glorious, summer, by);
533
    CYG_TRACE4(true, "%d %d %d %d", glorious, summer, by, thisse);
534
    CYG_TRACE5(true, "%d %d %d %d %d", glorious, summer, by, thisse, son);
535
    CYG_TRACE6(true, "%d %d %d %d %d %d", glorious, summer, by, thisse, son, of);
536
    CYG_TRACE7(true, "%d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york);
537
    CYG_TRACE8(true, "%d %d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york, stop);
538
 
539
    CYG_TRACE0(false, "no argument here");
540
    CYG_TRACE1(false, "%d", glorious);
541
    CYG_TRACE2(false, "%d %d", glorious, summer);
542
    CYG_TRACE3(false, "%d %d %d", glorious, summer, by);
543
    CYG_TRACE4(false, "%d %d %d %d", glorious, summer, by, thisse);
544
    CYG_TRACE5(false, "%d %d %d %d %d", glorious, summer, by, thisse, son);
545
    CYG_TRACE6(false, "%d %d %d %d %d %d", glorious, summer, by, thisse, son, of);
546
    CYG_TRACE7(false, "%d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york);
547
    CYG_TRACE8(false, "%d %d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york, stop);
548
 
549
    CYG_TRACE0B("no argument here");
550
    CYG_TRACE1B("%d", glorious);
551
    CYG_TRACE2B("%d %d", glorious, summer);
552
    CYG_TRACE3B("%d %d %d", glorious, summer, by);
553
    CYG_TRACE4B("%d %d %d %d", glorious, summer, by, thisse);
554
    CYG_TRACE5B("%d %d %d %d %d", glorious, summer, by, thisse, son);
555
    CYG_TRACE6B("%d %d %d %d %d %d", glorious, summer, by, thisse, son, of);
556
    CYG_TRACE7B("%d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york);
557
    CYG_TRACE8B("%d %d %d %d %d %d %d %d", glorious, summer, by, thisse, son, of, york, stop);
558
 
559
    CYG_TRACE1X(true, glorious);
560
    CYG_TRACE2X(true, glorious, summer);
561
    CYG_TRACE3X(true, glorious, summer, by);
562
    CYG_TRACE4X(true, glorious, summer, by, thisse);
563
    CYG_TRACE5X(true, glorious, summer, by, thisse, son);
564
    CYG_TRACE6X(true, glorious, summer, by, thisse, son, of);
565
    CYG_TRACE7X(true, glorious, summer, by, thisse, son, of, york);
566
    CYG_TRACE8X(true, glorious, summer, by, thisse, son, of, york, stop);
567
 
568
    CYG_TRACE1Y(true, glorious);
569
    CYG_TRACE2Y(true, glorious, summer);
570
    CYG_TRACE3Y(true, glorious, summer, by);
571
    CYG_TRACE4Y(true, glorious, summer, by, thisse);
572
    CYG_TRACE5Y(true, glorious, summer, by, thisse, son);
573
    CYG_TRACE6Y(true, glorious, summer, by, thisse, son, of);
574
    CYG_TRACE7Y(true, glorious, summer, by, thisse, son, of, york);
575
    CYG_TRACE8Y(true, glorious, summer, by, thisse, son, of, york, stop);
576
 
577
    CYG_TRACE1D(true, glorious);
578
    CYG_TRACE2D(true, glorious, summer);
579
    CYG_TRACE3D(true, glorious, summer, by);
580
    CYG_TRACE4D(true, glorious, summer, by, thisse);
581
    CYG_TRACE5D(true, glorious, summer, by, thisse, son);
582
    CYG_TRACE6D(true, glorious, summer, by, thisse, son, of);
583
    CYG_TRACE7D(true, glorious, summer, by, thisse, son, of, york);
584
    CYG_TRACE8D(true, glorious, summer, by, thisse, son, of, york, stop);
585
 
586
    CYG_TRACE1XV(true, glorious);
587
    CYG_TRACE2XV(true, glorious, summer);
588
    CYG_TRACE3XV(true, glorious, summer, by);
589
    CYG_TRACE4XV(true, glorious, summer, by, thisse);
590
    CYG_TRACE5XV(true, glorious, summer, by, thisse, son);
591
    CYG_TRACE6XV(true, glorious, summer, by, thisse, son, of);
592
    CYG_TRACE7XV(true, glorious, summer, by, thisse, son, of, york);
593
    CYG_TRACE8XV(true, glorious, summer, by, thisse, son, of, york, stop);
594
 
595
    CYG_TRACE1YV(true, glorious);
596
    CYG_TRACE2YV(true, glorious, summer);
597
    CYG_TRACE3YV(true, glorious, summer, by);
598
    CYG_TRACE4YV(true, glorious, summer, by, thisse);
599
    CYG_TRACE5YV(true, glorious, summer, by, thisse, son);
600
    CYG_TRACE6YV(true, glorious, summer, by, thisse, son, of);
601
    CYG_TRACE7YV(true, glorious, summer, by, thisse, son, of, york);
602
    CYG_TRACE8YV(true, glorious, summer, by, thisse, son, of, york, stop);
603
 
604
    CYG_TRACE1DV(true, glorious);
605
    CYG_TRACE2DV(true, glorious, summer);
606
    CYG_TRACE3DV(true, glorious, summer, by);
607
    CYG_TRACE4DV(true, glorious, summer, by, thisse);
608
    CYG_TRACE5DV(true, glorious, summer, by, thisse, son);
609
    CYG_TRACE6DV(true, glorious, summer, by, thisse, son, of);
610
    CYG_TRACE7DV(true, glorious, summer, by, thisse, son, of, york);
611
    CYG_TRACE8DV(true, glorious, summer, by, thisse, son, of, york, stop);
612
 
613
    CYG_TRACE1X(false, glorious);
614
    CYG_TRACE2X(false, glorious, summer);
615
    CYG_TRACE3X(false, glorious, summer, by);
616
    CYG_TRACE4X(false, glorious, summer, by, thisse);
617
    CYG_TRACE5X(false, glorious, summer, by, thisse, son);
618
    CYG_TRACE6X(false, glorious, summer, by, thisse, son, of);
619
    CYG_TRACE7X(false, glorious, summer, by, thisse, son, of, york);
620
    CYG_TRACE8X(false, glorious, summer, by, thisse, son, of, york, stop);
621
 
622
    CYG_TRACE1Y(false, glorious);
623
    CYG_TRACE2Y(false, glorious, summer);
624
    CYG_TRACE3Y(false, glorious, summer, by);
625
    CYG_TRACE4Y(false, glorious, summer, by, thisse);
626
    CYG_TRACE5Y(false, glorious, summer, by, thisse, son);
627
    CYG_TRACE6Y(false, glorious, summer, by, thisse, son, of);
628
    CYG_TRACE7Y(false, glorious, summer, by, thisse, son, of, york);
629
    CYG_TRACE8Y(false, glorious, summer, by, thisse, son, of, york, stop);
630
 
631
    CYG_TRACE1D(false, glorious);
632
    CYG_TRACE2D(false, glorious, summer);
633
    CYG_TRACE3D(false, glorious, summer, by);
634
    CYG_TRACE4D(false, glorious, summer, by, thisse);
635
    CYG_TRACE5D(false, glorious, summer, by, thisse, son);
636
    CYG_TRACE6D(false, glorious, summer, by, thisse, son, of);
637
    CYG_TRACE7D(false, glorious, summer, by, thisse, son, of, york);
638
    CYG_TRACE8D(false, glorious, summer, by, thisse, son, of, york, stop);
639
 
640
    CYG_TRACE1XV(false, glorious);
641
    CYG_TRACE2XV(false, glorious, summer);
642
    CYG_TRACE3XV(false, glorious, summer, by);
643
    CYG_TRACE4XV(false, glorious, summer, by, thisse);
644
    CYG_TRACE5XV(false, glorious, summer, by, thisse, son);
645
    CYG_TRACE6XV(false, glorious, summer, by, thisse, son, of);
646
    CYG_TRACE7XV(false, glorious, summer, by, thisse, son, of, york);
647
    CYG_TRACE8XV(false, glorious, summer, by, thisse, son, of, york, stop);
648
 
649
    CYG_TRACE1YV(false, glorious);
650
    CYG_TRACE2YV(false, glorious, summer);
651
    CYG_TRACE3YV(false, glorious, summer, by);
652
    CYG_TRACE4YV(false, glorious, summer, by, thisse);
653
    CYG_TRACE5YV(false, glorious, summer, by, thisse, son);
654
    CYG_TRACE6YV(false, glorious, summer, by, thisse, son, of);
655
    CYG_TRACE7YV(false, glorious, summer, by, thisse, son, of, york);
656
    CYG_TRACE8YV(false, glorious, summer, by, thisse, son, of, york, stop);
657
 
658
    CYG_TRACE1DV(false, glorious);
659
    CYG_TRACE2DV(false, glorious, summer);
660
    CYG_TRACE3DV(false, glorious, summer, by);
661
    CYG_TRACE4DV(false, glorious, summer, by, thisse);
662
    CYG_TRACE5DV(false, glorious, summer, by, thisse, son);
663
    CYG_TRACE6DV(false, glorious, summer, by, thisse, son, of);
664
    CYG_TRACE7DV(false, glorious, summer, by, thisse, son, of, york);
665
    CYG_TRACE8DV(false, glorious, summer, by, thisse, son, of, york, stop);
666
 
667
    CYG_TRACE1XB(glorious);
668
    CYG_TRACE2XB(glorious, summer);
669
    CYG_TRACE3XB(glorious, summer, by);
670
    CYG_TRACE4XB(glorious, summer, by, thisse);
671
    CYG_TRACE5XB(glorious, summer, by, thisse, son);
672
    CYG_TRACE6XB(glorious, summer, by, thisse, son, of);
673
    CYG_TRACE7XB(glorious, summer, by, thisse, son, of, york);
674
    CYG_TRACE8XB(glorious, summer, by, thisse, son, of, york, stop);
675
 
676
    CYG_TRACE1YB(glorious);
677
    CYG_TRACE2YB(glorious, summer);
678
    CYG_TRACE3YB(glorious, summer, by);
679
    CYG_TRACE4YB(glorious, summer, by, thisse);
680
    CYG_TRACE5YB(glorious, summer, by, thisse, son);
681
    CYG_TRACE6YB(glorious, summer, by, thisse, son, of);
682
    CYG_TRACE7YB(glorious, summer, by, thisse, son, of, york);
683
    CYG_TRACE8YB(glorious, summer, by, thisse, son, of, york, stop);
684
 
685
    CYG_TRACE1DB(glorious);
686
    CYG_TRACE2DB(glorious, summer);
687
    CYG_TRACE3DB(glorious, summer, by);
688
    CYG_TRACE4DB(glorious, summer, by, thisse);
689
    CYG_TRACE5DB(glorious, summer, by, thisse, son);
690
    CYG_TRACE6DB(glorious, summer, by, thisse, son, of);
691
    CYG_TRACE7DB(glorious, summer, by, thisse, son, of, york);
692
    CYG_TRACE8DB(glorious, summer, by, thisse, son, of, york, stop);
693
 
694
    CYG_TRACE1XVB(glorious);
695
    CYG_TRACE2XVB(glorious, summer);
696
    CYG_TRACE3XVB(glorious, summer, by);
697
    CYG_TRACE4XVB(glorious, summer, by, thisse);
698
    CYG_TRACE5XVB(glorious, summer, by, thisse, son);
699
    CYG_TRACE6XVB(glorious, summer, by, thisse, son, of);
700
    CYG_TRACE7XVB(glorious, summer, by, thisse, son, of, york);
701
    CYG_TRACE8XVB(glorious, summer, by, thisse, son, of, york, stop);
702
 
703
    CYG_TRACE1YVB(glorious);
704
    CYG_TRACE2YVB(glorious, summer);
705
    CYG_TRACE3YVB(glorious, summer, by);
706
    CYG_TRACE4YVB(glorious, summer, by, thisse);
707
    CYG_TRACE5YVB(glorious, summer, by, thisse, son);
708
    CYG_TRACE6YVB(glorious, summer, by, thisse, son, of);
709
    CYG_TRACE7YVB(glorious, summer, by, thisse, son, of, york);
710
    CYG_TRACE8YVB(glorious, summer, by, thisse, son, of, york, stop);
711
 
712
    CYG_TRACE1DVB(glorious);
713
    CYG_TRACE2DVB(glorious, summer);
714
    CYG_TRACE3DVB(glorious, summer, by);
715
    CYG_TRACE4DVB(glorious, summer, by, thisse);
716
    CYG_TRACE5DVB(glorious, summer, by, thisse, son);
717
    CYG_TRACE6DVB(glorious, summer, by, thisse, son, of);
718
    CYG_TRACE7DVB(glorious, summer, by, thisse, son, of, york);
719
    CYG_TRACE8DVB(glorious, summer, by, thisse, son, of, york, stop);
720
 
721
    fn1();
722
    fn2();
723
    fn3();
724
    fn4();
725
    fn5();
726
    fn6();
727
    fn7();
728
    fn8();
729
    fn9();
730
    fn10();
731
    fn11();
732
    fn12(1);
733
    fn13(2,   3);
734
    fn14(4,   5,  6);
735
    fn15(7,   8,  9, 10);
736
    fn16(11, 12, 13, 14, 15);
737
    fn17(16, 17, 18, 19, 20, 21);
738
    fn18(22, 23, 24, 25, 26, 27, 28);
739
    fn19(29, 30, 31, 32, 33, 34, 35, 36);
740
    fn20(1);
741
    fn21(2,   3);
742
    fn22(4,   5,  6);
743
    fn23(7,   8,  9, 10);
744
    fn24(11, 12, 13, 14, 15);
745
    fn25(16, 17, 18, 19, 20, 21);
746
    fn26(22, 23, 24, 25, 26, 27, 28);
747
    fn27(29, 30, 31, 32, 33, 34, 35, 36);
748
    fn28(1);
749
    fn29(2,   3);
750
    fn30(4,   5,  6);
751
    fn31(7,   8,  9, 10);
752
    fn32(11, 12, 13, 14, 15);
753
    fn33(16, 17, 18, 19, 20, 21);
754
    fn34(22, 23, 24, 25, 26, 27, 28);
755
    fn35(29, 30, 31, 32, 33, 34, 35, 36);
756
    fn36(1);
757
    fn37(2,   3);
758
    fn38(4,   5,  6);
759
    fn39(7,   8,  9, 10);
760
    fn40(11, 12, 13, 14, 15);
761
    fn41(16, 17, 18, 19, 20, 21);
762
    fn42(22, 23, 24, 25, 26, 27, 28);
763
    fn43(29, 30, 31, 32, 33, 34, 35, 36);
764
    fn44(1);
765
    fn45(2,   3);
766
    fn46(4,   5,  6);
767
    fn47(7,   8,  9, 10);
768
    fn48(11, 12, 13, 14, 15);
769
    fn49(16, 17, 18, 19, 20, 21);
770
    fn50(22, 23, 24, 25, 26, 27, 28);
771
    fn51(29, 30, 31, 32, 33, 34, 35, 36);
772
    fn52(1);
773
    fn53(2,   3);
774
    fn54(4,   5,  6);
775
    fn55(7,   8,  9, 10);
776
    fn56(11, 12, 13, 14, 15);
777
    fn57(16, 17, 18, 19, 20, 21);
778
    fn58(22, 23, 24, 25, 26, 27, 28);
779
    fn59(29, 30, 31, 32, 33, 34, 35, 36);
780
    fn60(1);
781
    fn61(2,   3);
782
    fn62(4,   5,  6);
783
    fn63(7,   8,  9, 10);
784
    fn64(11, 12, 13, 14, 15);
785
    fn65(16, 17, 18, 19, 20, 21);
786
    fn66(22, 23, 24, 25, 26, 27, 28);
787
    fn67(29, 30, 31, 32, 33, 34, 35, 36);
788
 
789
    CYG_TEST_PASS_FINISH("enabled tracing only slows things down");
790
    return 0;
791
}
792
// ----------------------------------------------------------------------------
793
// These functions allow "dynamic" control over tracing and reporting.
794
// The assumption is that the compiler does not know enough about rand()
795
// to be able to optimise this away.
796
bool
797
tracing_is_enabled(void)
798
{
799
    return rand() >= 0;
800
}
801
 
802
bool
803
reporting_is_enabled(void)
804
{
805
    return rand() >= 0;
806
}

powered by: WebSVN 2.1.0

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