Ignore:
Timestamp:
Aug 28, 2014, 6:04:44 PM (10 years ago)
Author:
meunier
Message:

Trunk:

  • Updating python scripts for simulations and graphs for tsar_generic_xbar (support for rwt and mesi)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_xbar/scripts/counter_defs.py

    r749 r779  
    55
    66stacked_metrics = [ 'nonwrite_broadcast', 'write_broadcast', 'local_m_inv', 'remote_m_inv', 'local_update', 'remote_update' ]
     7
     8m_prot_name = {}
     9m_prot_name['dhccp'] = "DHCCP"
     10m_prot_name['rwt'] = "RWT"
     11m_prot_name['mesi'] = "HMESI"
    712
    813m_app_name = {}
     
    3237m_metric_tag['counter_reset']      = "[000]"
    3338m_metric_tag['ncycles']            = "[001]"
    34 m_metric_tag['local_read']         = "[002]"
    35 m_metric_tag['remote_read']        = "[003]"
    36 m_metric_tag['read_cost']          = "[004]"
    37 m_metric_tag['local_write']        = "[005]"
    38 m_metric_tag['remote_write']       = "[006]"
    39 m_metric_tag['write_flits_local']  = "[007]"
    40 m_metric_tag['write_flits_remote'] = "[008]"
    41 m_metric_tag['write_cost']         = "[009]"
    42 m_metric_tag['local_ll']           = "[010]"
    43 m_metric_tag['remote_ll']          = "[011]"
    44 m_metric_tag['ll_cost']            = "[012]"
    45 m_metric_tag['local_sc']           = "[013]"
    46 m_metric_tag['remote_sc']          = "[014]"
    47 m_metric_tag['sc_cost']            = "[015]"
    48 m_metric_tag['local_cas']          = "[016]"
    49 m_metric_tag['remote_cas']         = "[017]"
    50 m_metric_tag['cas_cost']           = "[018]"
    51 m_metric_tag['req_trig_update']    = "[019]"
    52 m_metric_tag['local_update']       = "[020]"
    53 m_metric_tag['remote_update']      = "[021]"
    54 m_metric_tag['update_cost']        = "[022]"
    55 m_metric_tag['req_trig_m_inv']     = "[023]"
    56 m_metric_tag['local_m_inv']        = "[024]"
    57 m_metric_tag['remote_m_inv']       = "[025]"
    58 m_metric_tag['m_inv_cost']         = "[026]"
    59 m_metric_tag['broadcast']          = "[027]"
    60 m_metric_tag['local_cleanup']      = "[028]"
    61 m_metric_tag['remote_cleanup']     = "[029]"
    62 m_metric_tag['cleanup_cost']       = "[030]"
    63 m_metric_tag['nb_read_miss']       = "[031]"
    64 m_metric_tag['write_miss']         = "[032]"
    65 m_metric_tag['write_dirty']        = "[033]"
    66 m_metric_tag['read_hit_trt']       = "[034]" # Reads blocked by a hit in the TRT
    67 m_metric_tag['trans_full_trt']     = "[035]" # Transactions blocked because the TRT is full
    68 m_metric_tag['put']                = "[036]"
    69 m_metric_tag['get']                = "[037]"
    70 m_metric_tag['write_broadcast']    = "[038]"
    71 
    72 m_metric_tag['total_read']         = "[040]"
    73 m_metric_tag['total_write']        = "[041]"
    74 m_metric_tag['total_ll']           = "[042]"
    75 m_metric_tag['total_sc']           = "[043]"
    76 m_metric_tag['total_cas']          = "[044]"
    77 m_metric_tag['total_update']       = "[045]"
    78 m_metric_tag['total_m_inv']        = "[046]"
    79 m_metric_tag['total_cleanup']      = "[047]"
    80 m_metric_tag['total_direct']       = "[048]"
    81 
    82 m_metric_tag['nonwrite_broadcast'] = "[050]"
    83 m_metric_tag['broadcast_cost']     = "[051]"
    84 m_metric_tag['direct_cost']        = "[052]"
    85 m_metric_tag['total_stacked']      = "|060]"
     39
     40m_metric_tag['local_read']         = "[010]"
     41m_metric_tag['remote_read']        = "[011]"
     42m_metric_tag['read_cost']          = "[012]"
     43
     44m_metric_tag['local_write']        = "[020]"
     45m_metric_tag['remote_write']       = "[021]"
     46m_metric_tag['write_flits_local']  = "[022]"
     47m_metric_tag['write_flits_remote'] = "[023]"
     48m_metric_tag['write_cost']         = "[024]"
     49m_metric_tag['write_l1_miss_ncc']  = "[025]"
     50
     51m_metric_tag['local_ll']           = "[030]"
     52m_metric_tag['remote_ll']          = "[031]"
     53m_metric_tag['ll_cost']            = "[032]"
     54
     55m_metric_tag['local_sc']           = "[040]"
     56m_metric_tag['remote_sc']          = "[041]"
     57m_metric_tag['sc_cost']            = "[042]"
     58
     59m_metric_tag['local_cas']          = "[050]"
     60m_metric_tag['remote_cas']         = "[051]"
     61m_metric_tag['cas_cost']           = "[052]"
     62
     63m_metric_tag['req_trig_update']    = "[060]"
     64m_metric_tag['local_update']       = "[061]"
     65m_metric_tag['remote_update']      = "[062]"
     66m_metric_tag['update_cost']        = "[063]"
     67
     68m_metric_tag['req_trig_m_inv']     = "[070]"
     69m_metric_tag['local_m_inv']        = "[071]"
     70m_metric_tag['remote_m_inv']       = "[072]"
     71m_metric_tag['m_inv_cost']         = "[073]"
     72
     73m_metric_tag['broadcast']          = "[080]"
     74m_metric_tag['write_broadcast']    = "[081]"
     75
     76m_metric_tag['local_cleanup']      = "[090]"
     77m_metric_tag['remote_cleanup']     = "[091]"
     78m_metric_tag['cleanup_cost']       = "[092]"
     79m_metric_tag['cleanup_data_flits'] = "[093]"
     80
     81m_metric_tag['read_miss']          = "[100]"
     82m_metric_tag['write_miss']         = "[101]"
     83m_metric_tag['write_dirty']        = "[102]"
     84m_metric_tag['read_hit_trt']       = "[110]" # Reads blocked by a hit in the TRT
     85m_metric_tag['trans_full_trt']     = "[111]" # Transactions blocked because the TRT is full
     86m_metric_tag['put']                = "[120]"
     87m_metric_tag['get']                = "[121]"
     88m_metric_tag['min_heap_slots_av']  = "[130]"
     89
     90m_metric_tag['ncc_to_cc_read']     = "[140]"
     91m_metric_tag['ncc_to_cc_write']    = "[141]"
     92
     93m_metric_tag['total_read']         = "[500]"
     94m_metric_tag['total_write']        = "[501]"
     95m_metric_tag['total_ll']           = "[502]"
     96m_metric_tag['total_sc']           = "[503]"
     97m_metric_tag['total_cas']          = "[504]"
     98m_metric_tag['total_update']       = "[505]"
     99m_metric_tag['total_m_inv']        = "[506]"
     100m_metric_tag['total_cleanup']      = "[507]"
     101m_metric_tag['total_direct']       = "[508]"
     102m_metric_tag['total_ncc_to_cc']    = "[509]"
     103
     104m_metric_tag['nonwrite_broadcast'] = "[600]"
     105m_metric_tag['broadcast_cost']     = "[601]"
     106m_metric_tag['direct_cost']        = "[602]"
    86107
    87108all_metrics = m_metric_tag.keys()
     
    91112m_metric_name['counter_reset']      = "Counters reset at cycle"
    92113m_metric_name['ncycles']            = "Number of Cycles"
     114
    93115m_metric_name['local_read']         = "Number of Local Reads (Miss in L1)"
    94116m_metric_name['remote_read']        = "Number of Remote Reads (Miss in L1)"
    95117m_metric_name['read_cost']          = "Read Cost"
     118
    96119m_metric_name['local_write']        = "Number of Local Writes"
    97120m_metric_name['remote_write']       = "Number of Remote Writes"
     
    99122m_metric_name['write_flits_remote'] = "Number of Remote Write Flits"
    100123m_metric_name['write_cost']         = "Write Cost"
     124
    101125m_metric_name['local_ll']           = "Number of Local LL"
    102126m_metric_name['remote_ll']          = "Number of Remote LL"
    103127m_metric_name['ll_cost']            = "LL Cost"
     128
    104129m_metric_name['local_sc']           = "Number of Local SC"
    105130m_metric_name['remote_sc']          = "Number of Remote SC"
    106131m_metric_name['sc_cost']            = "SC Cost"
     132
    107133m_metric_name['local_cas']          = "Number of Local CAS"
    108134m_metric_name['remote_cas']         = "Number of Remote CAS"
    109135m_metric_name['cas_cost']           = "CAS Cost"
     136
    110137m_metric_name['req_trig_update']    = "Number of Requests Triggering an Update"
    111138m_metric_name['local_update']       = "Number of Local Updates"
    112139m_metric_name['remote_update']      = "Number of Remote Updates"
    113140m_metric_name['update_cost']        = "Update Cost"
     141
    114142m_metric_name['req_trig_m_inv']     = "Number of Requests Triggering a M.inv"
    115143m_metric_name['local_m_inv']        = "Number of Local Multi Inval"
    116144m_metric_name['remote_m_inv']       = "Number of Remote Multi Inval"
    117145m_metric_name['m_inv_cost']         = "Multi Inval Cost"
    118 m_metric_name['broadcast']          = "Number of Broadcasts"
     146
    119147m_metric_name['broadcast']          = "Total Number of Broadcasts"
     148m_metric_name['write_broadcast']    = "Number of Broadcasts Trig. by Writes"
     149m_metric_name['nonwrite_broadcast'] = "Number of Broadcasts not Trig. by Writes"
     150
    120151m_metric_name['local_cleanup']      = "Number of Local Cleanups"
    121152m_metric_name['remote_cleanup']     = "Number of Remote Cleanups"
    122153m_metric_name['cleanup_cost']       = "Cleanup Cost"
    123 m_metric_name['nb_read_miss']       = "Number of Read Miss (in L2)"
     154
     155m_metric_name['read_miss']          = "Number of Read Miss (in L2)"
    124156m_metric_name['write_miss']         = "Number of Write Miss (in L2)"
    125157m_metric_name['write_dirty']        = "Number of Write Dirty (from L2 to Memory)"
     
    128160m_metric_name['put']                = "Number of PUT to Memory"
    129161m_metric_name['get']                = "Number of GET from Memory"
    130 m_metric_name['write_broadcast']    = "Number of Broadcasts Trig. by Writes"
     162m_metric_name['min_heap_slots_av']  = "Minimum Number of Heap Slots available"
     163
     164m_metric_name['ncc_to_cc_read']     = "Number or Reads trig. NCC to CC"
     165m_metric_name['ncc_to_cc_write']    = "Number of Writes trig. NCC to CC"
    131166
    132167m_metric_name['total_read']         = "Total Number of Reads"
     
    139174m_metric_name['total_cleanup']      = "Total Number of Cleanups"
    140175m_metric_name['total_direct']       = "Total Number of Direct Requests"
    141 m_metric_name['nonwrite_broadcast'] = "Number of Broadcasts not Trig. by Writes"
     176m_metric_name['total_ncc_to_cc']    = "Total Number of NCC to CC Changes"
    142177m_metric_name['broadcast_cost']     = "Broadcast Cost"
    143178m_metric_name['direct_cost']        = "Direct Requests Cost"
    144 m_metric_name['total_stacked']      = "??" # Normalization factor
     179m_metric_name['total_stacked']      = "??" # Normalization factor, does not have a name (unused)
    145180
    146181
Note: See TracChangeset for help on using the changeset viewer.