Changeset 5ce14a5


Ignore:
Timestamp:
04/27/14 20:55:36 (7 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
a5662447
Parents:
17a3dff
Message:

Send any debug to stderr that way I can check program outputs easier.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r17a3dff r5ce14a5  
    126126        struct multithreading_stats totals = {0};
    127127        for (i = 0; i < libtrace->perpkt_thread_count ; i++) {
    128                 printf("\nStats for perpkt thread#%d\n", i);
    129                 printf("\tfull_queue_hits: %"PRIu64"\n", contention_stats[i].full_queue_hits);
     128                fprintf(stderr, "\nStats for perpkt thread#%d\n", i);
     129                fprintf(stderr, "\tfull_queue_hits: %"PRIu64"\n", contention_stats[i].full_queue_hits);
    130130                totals.full_queue_hits += contention_stats[i].full_queue_hits;
    131                 printf("\twait_for_fill_complete_hits: %"PRIu64"\n", contention_stats[i].wait_for_fill_complete_hits);
     131                fprintf(stderr, "\twait_for_fill_complete_hits: %"PRIu64"\n", contention_stats[i].wait_for_fill_complete_hits);
    132132                totals.wait_for_fill_complete_hits += contention_stats[i].wait_for_fill_complete_hits;
    133133        }
    134         printf("\nTotals for perpkt threads\n");
    135         printf("\tfull_queue_hits: %"PRIu64"\n", totals.full_queue_hits);
    136         printf("\twait_for_fill_complete_hits: %"PRIu64"\n", totals.wait_for_fill_complete_hits);
     134        fprintf(stderr, "\nTotals for perpkt threads\n");
     135        fprintf(stderr, "\tfull_queue_hits: %"PRIu64"\n", totals.full_queue_hits);
     136        fprintf(stderr, "\twait_for_fill_complete_hits: %"PRIu64"\n", totals.wait_for_fill_complete_hits);
    137137
    138138        return;
  • tools/tracestats/tracestats_parallel.c

    r17a3dff r5ce14a5  
    121121                        case MESSAGE_STOPPED:
    122122                                trace_publish_result(trace, 0, results); // Only ever using a single key 0
    123                                 printf("Thread published resuslts WOWW \n");
     123                                fprintf(stderr, "Thread published resuslts WOWW \n");
    124124                                break;
    125125                        case MESSAGE_STARTED:
     
    127127                                break;
    128128                        case MESSAGE_PAUSE:
    129                                 printf("GOT Asked to pause ahh\n");
     129                                fprintf(stderr, "GOT Asked to pause ahh\n");
    130130                                break;
    131131                }
Note: See TracChangeset for help on using the changeset viewer.