Annotation of cci/d/fpevent/pipe_test.c, revision 1.1.1.1

1.1       root        1: 
                      2: #include "evt_defs.h"
                      3: 
                      4: 
                      5: /*
                      6:  ********************************************************************
                      7:  *
                      8:  *     MONITOR FOR THE FPP PIPELINED EVENTS TEST
                      9:  *
                     10:  * If evt_inst is non-zero, run the test that it specifies, otherwise
                     11:  * run all of the pipelined tests. If the print headers option is 
                     12:  * set then print the names of the tests as they are run:
                     13:  * Piped Events Tests: pipe1  pipd2  pipe3  pipe4  pipe5  pipe6  pipe7  pipe8
                     14:  *  pipe9  pipd10 pipe11 pipe12 pipe13 pipe14 pipe15
                     15:  ********************************************************************
                     16: */
                     17: pipeline_test()
                     18: {
                     19:        if( evt_inst )  {               /* was the test specified? */
                     20:              inst_index = evt_inst - 1;        /* get '0' based subtest # */
                     21:              subtest = evt_inst;               /* get '1' based subtest # */
                     22:              if( (inst_index < 0) || (inst_index >= no_pipe_tests) ) {
                     23:                   if( (prt_hdrs) && (cycle == 1) ) {  /* not a valid instr */
                     24:                        writes("There is no pipeline test #");
                     25:                        writed( evt_inst );
                     26:                        writec('\n');
                     27:                        error = TRUE;   /* needed for line feed control */
                     28:                   }
                     29:              } else {
                     30:                   valid_test = TRUE;           /* a test is being run */
                     31:                   if( (prt_hdrs) && (cycle == 1) ) 
                     32:                         writes( pipe_test_tbl[inst_index].name );
                     33:                   (*pipe_test_tbl[inst_index].test)();  /* run the test */
                     34:              }
                     35:        } else          /* the test # wasn't specfied */
                     36:              for(inst_index=0; inst_index < no_pipe_tests; inst_index++) {
                     37:                   if( (prt_hdrs) && (cycle == 1) ) {
                     38:                         if( (inst_index == 8) ||
                     39:                             (inst_index == 16) )
                     40:                              writes("\n                       ");
                     41:                         writes( pipe_test_tbl[inst_index].name );
                     42:                   }
                     43:                   valid_test = TRUE;           /* a test is being run */
                     44:                   subtest = inst_index+1;      /* get '1' based subtest # */
                     45:                   (*pipe_test_tbl[inst_index].test)();  /* run the test */
                     46:              }
                     47: }
                     48: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.