<commit_before>#ifndef KNOBS_H
#define KNOBS_H


/* ===================================================================== */
/* General Simulator Knobs */
/* ===================================================================== */

KNOB<string> g_knob_output_file(KNOB_MODE_WRITEONCE, "pintool",
   "o", "sim.out", "specify ocache file name");
KNOB<UINT32> g_knob_num_cores(KNOB_MODE_WRITEONCE, "pintool", 
   "n", "0", "Specifies the number of threads in the application");

KNOB<BOOL>   g_knob_enable_network_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mnt", "0", "turn on modeling for the on-chip network(s)");
KNOB<BOOL>   g_knob_enable_dcache_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mdc", "0", "turn on modeling for the data cache");
KNOB<BOOL>   g_knob_enable_icache_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mic", "0", "turn on modeling for the instruction cache");
KNOB<BOOL>   g_knob_enable_bpred_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mbp", "0", "turn on modeling for the branch predictor");
KNOB<BOOL>   g_knob_enable_performance_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mpf", "0", "turns on performance modeler");

/* ===================================================================== */
/* Performance Modeler Knobs */
/* ===================================================================== */


/* ===================================================================== */
/* Organic Cache Knobs */
/* ===================================================================== */

KNOB<BOOL>   g_knob_dcache_track_loads(KNOB_MODE_WRITEONCE, "pintool",
   "dl", "0", "track individual dcache loads -- increases profiling time");
KNOB<BOOL>   g_knob_dcache_track_stores(KNOB_MODE_WRITEONCE, "pintool",
   "ds", "0", "track individual dcache stores -- increases profiling time");
KNOB<UINT32> g_knob_dcache_threshold_hit(KNOB_MODE_WRITEONCE , "pintool",
   "drh", "100", "only report dcache memops with hit count above threshold");
KNOB<UINT32> g_knob_dcache_threshold_miss(KNOB_MODE_WRITEONCE, "pintool",
   "drm","100", "only report dcache memops with miss count above threshold");
KNOB<BOOL>   g_knob_dcache_ignore_loads(KNOB_MODE_WRITEONCE, "pintool", 
   "dnl", "0", "ignore all dcache loads");
KNOB<BOOL>   g_knob_dcache_ignore_stores(KNOB_MODE_WRITEONCE, "pintool", 
   "dns", "0", "ignore all dcache stores");
KNOB<BOOL>   g_knob_dcache_ignore_size(KNOB_MODE_WRITEONCE, "pintool", 
   "dz", "0", "ignore size of all dcache references (default size is 4 bytes)");

KNOB<BOOL>   g_knob_icache_track_insts(KNOB_MODE_WRITEONCE, "pintool",
   "ii", "0", "track individual instructions -- increases profiling time");
KNOB<UINT32> g_knob_icache_threshold_hit(KNOB_MODE_WRITEONCE , "pintool",
   "irh", "100", "only report icache ops with hit count above threshold");
KNOB<UINT32> g_knob_icache_threshold_miss(KNOB_MODE_WRITEONCE, "pintool",
   "irm","100", "only report icache ops with miss count above threshold");
KNOB<BOOL>   g_knob_icache_ignore_size(KNOB_MODE_WRITEONCE, "pintool", 
   "iz", "0", "ignore size of instruction (default size is 4 bytes)");

KNOB<UINT32> g_knob_cache_size(KNOB_MODE_WRITEONCE, "pintool",
   "c","64", "cache size in kilobytes");
KNOB<UINT32> g_knob_line_size(KNOB_MODE_WRITEONCE, "pintool",
   "b","32", "cache block size in bytes");
KNOB<UINT32> g_knob_associativity(KNOB_MODE_WRITEONCE, "pintool",
   "a","8", "cache associativity (1 for direct mapped)");
KNOB<UINT32> g_knob_mutation_interval(KNOB_MODE_WRITEONCE, "pintool",
   "m","1000", "cache auto-reconfiguration period in number of accesses");

KNOB<UINT32> g_knob_dcache_size(KNOB_MODE_WRITEONCE, "pintool",
   "dc","32", "data cache size in kilobytes");
KNOB<UINT32> g_knob_dcache_associativity(KNOB_MODE_WRITEONCE, "pintool",
   "da","4", "data cache associativity (1 for direct mapped)");
KNOB<UINT32> g_knob_dcache_max_search_depth(KNOB_MODE_WRITEONCE, "pintool",
   "dd","1", "data cache max hash search depth (1 for no multi-cycle hashing)");

KNOB<UINT32> g_knob_icache_size(KNOB_MODE_WRITEONCE, "pintool",
   "ic","32", "instruction cache size in kilobytes");
KNOB<UINT32> g_knob_icache_associativity(KNOB_MODE_WRITEONCE, "pintool",
   "ia","4", "instruction cache associativity (1 for direct mapped)");
KNOB<UINT32> g_knob_icache_max_search_depth(KNOB_MODE_WRITEONCE, "pintool",
   "id","1", "instruction cache max hash search depth (1 for no multi-cycle hashing)");



#endif
<commit_msg>Changed the default value of the simulation knob that controls how often the organic cache self-optimizes. Self-optimization has been turned off; the ocache should now be degenerate and have a simple icache and dcache.<commit_after>#ifndef KNOBS_H
#define KNOBS_H


/* ===================================================================== */
/* General Simulator Knobs */
/* ===================================================================== */

KNOB<string> g_knob_output_file(KNOB_MODE_WRITEONCE, "pintool",
   "o", "sim.out", "specify ocache file name");
KNOB<UINT32> g_knob_num_cores(KNOB_MODE_WRITEONCE, "pintool", 
   "n", "0", "Specifies the number of threads in the application");

KNOB<BOOL>   g_knob_enable_network_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mnt", "0", "turn on modeling for the on-chip network(s)");
KNOB<BOOL>   g_knob_enable_dcache_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mdc", "0", "turn on modeling for the data cache");
KNOB<BOOL>   g_knob_enable_icache_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mic", "0", "turn on modeling for the instruction cache");
KNOB<BOOL>   g_knob_enable_bpred_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mbp", "0", "turn on modeling for the branch predictor");
KNOB<BOOL>   g_knob_enable_performance_modeling(KNOB_MODE_WRITEONCE, "pintool",
   "mpf", "0", "turns on performance modeler");

/* ===================================================================== */
/* Performance Modeler Knobs */
/* ===================================================================== */


/* ===================================================================== */
/* Organic Cache Knobs */
/* ===================================================================== */

KNOB<BOOL>   g_knob_dcache_track_loads(KNOB_MODE_WRITEONCE, "pintool",
   "dl", "0", "track individual dcache loads -- increases profiling time");
KNOB<BOOL>   g_knob_dcache_track_stores(KNOB_MODE_WRITEONCE, "pintool",
   "ds", "0", "track individual dcache stores -- increases profiling time");
KNOB<UINT32> g_knob_dcache_threshold_hit(KNOB_MODE_WRITEONCE , "pintool",
   "drh", "100", "only report dcache memops with hit count above threshold");
KNOB<UINT32> g_knob_dcache_threshold_miss(KNOB_MODE_WRITEONCE, "pintool",
   "drm","100", "only report dcache memops with miss count above threshold");
KNOB<BOOL>   g_knob_dcache_ignore_loads(KNOB_MODE_WRITEONCE, "pintool", 
   "dnl", "0", "ignore all dcache loads");
KNOB<BOOL>   g_knob_dcache_ignore_stores(KNOB_MODE_WRITEONCE, "pintool", 
   "dns", "0", "ignore all dcache stores");
KNOB<BOOL>   g_knob_dcache_ignore_size(KNOB_MODE_WRITEONCE, "pintool", 
   "dz", "0", "ignore size of all dcache references (default size is 4 bytes)");

KNOB<BOOL>   g_knob_icache_track_insts(KNOB_MODE_WRITEONCE, "pintool",
   "ii", "0", "track individual instructions -- increases profiling time");
KNOB<UINT32> g_knob_icache_threshold_hit(KNOB_MODE_WRITEONCE , "pintool",
   "irh", "100", "only report icache ops with hit count above threshold");
KNOB<UINT32> g_knob_icache_threshold_miss(KNOB_MODE_WRITEONCE, "pintool",
   "irm","100", "only report icache ops with miss count above threshold");
KNOB<BOOL>   g_knob_icache_ignore_size(KNOB_MODE_WRITEONCE, "pintool", 
   "iz", "0", "ignore size of instruction (default size is 4 bytes)");

KNOB<UINT32> g_knob_cache_size(KNOB_MODE_WRITEONCE, "pintool",
   "c","64", "cache size in kilobytes");
KNOB<UINT32> g_knob_line_size(KNOB_MODE_WRITEONCE, "pintool",
   "b","32", "cache block size in bytes");
KNOB<UINT32> g_knob_associativity(KNOB_MODE_WRITEONCE, "pintool",
   "a","8", "cache associativity (1 for direct mapped)");
KNOB<UINT32> g_knob_mutation_interval(KNOB_MODE_WRITEONCE, "pintool",
   "m","0", "cache auto-reconfiguration period in number of accesses");

KNOB<UINT32> g_knob_dcache_size(KNOB_MODE_WRITEONCE, "pintool",
   "dc","32", "data cache size in kilobytes");
KNOB<UINT32> g_knob_dcache_associativity(KNOB_MODE_WRITEONCE, "pintool",
   "da","4", "data cache associativity (1 for direct mapped)");
KNOB<UINT32> g_knob_dcache_max_search_depth(KNOB_MODE_WRITEONCE, "pintool",
   "dd","1", "data cache max hash search depth (1 for no multi-cycle hashing)");

KNOB<UINT32> g_knob_icache_size(KNOB_MODE_WRITEONCE, "pintool",
   "ic","32", "instruction cache size in kilobytes");
KNOB<UINT32> g_knob_icache_associativity(KNOB_MODE_WRITEONCE, "pintool",
   "ia","4", "instruction cache associativity (1 for direct mapped)");
KNOB<UINT32> g_knob_icache_max_search_depth(KNOB_MODE_WRITEONCE, "pintool",
   "id","1", "instruction cache max hash search depth (1 for no multi-cycle hashing)");



#endif

{'fraction_non_alphanumeric': 0.21262715612560815, 'fraction_numerical': 0.01713843432109686, 'mean_word_length': 7.328729281767956, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7412383', 'n_tokens_mistral': 3354, 'n_tokens_neox': 3222, 'n_words': 709}