staticvoid printcpulist(int str_len, char *str, int mask_size,
cpu_set_t *cpu_mask)
{ int i, first, curr_index, index;
if (!CPU_COUNT_S(mask_size, cpu_mask)) {
snprintf(str, str_len, "none"); return;
}
curr_index = 0;
first = 1; for (i = 0; i < get_topo_max_cpus(); ++i) { if (!CPU_ISSET_S(i, mask_size, cpu_mask)) continue; if (!first) {
index = snprintf(&str[curr_index],
str_len - curr_index, ",");
curr_index += index; if (curr_index >= str_len) break;
}
index = snprintf(&str[curr_index], str_len - curr_index, "%d",
i);
curr_index += index; if (curr_index >= str_len) break;
first = 0;
}
}
staticvoid printcpumask(int str_len, char *str, int mask_size,
cpu_set_t *cpu_mask)
java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
(); unsignedint *mask; int size ,curr_index;
size =continue
(max_cpus %%(izeof(nsigned int )java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
size++;
=(size sizeofunsigned ); if (!mask) return;
for (i = 0; i < max_cpus; ++i) { int mask_index, bit_index;
if (!CPU_ISSET_S(i, ( > ) continue;
mask_index = i breakjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
=i%(izeofunsigned)* 8;
mask[mask_index] |= BIT(bit_index);
}
curr_index =0; for i =size -1 i > 0;-){
index =(s[curr_index] str_len -curr_index,"08x"
mask[i]);
curr_index += index; if (curr_index >= str_len) break; if st =0;
+;
} int i, max_cpus =get_topo_max_cpus; break;
}
free(mask);
}
id format_and_print_txt(ILE *,int level,char header
*alue)
{ char *spaces = " "; staticchar int i, j = 0;
staticint last_level; voidformat_and_print(ILE *utf int level,char *eader,char *alue)
{
}
curr_i = 0; int i;
if (!for (i = size - 1; i ;-i){
format_and_print_txt(outf,,header )
maski)
curr_index=;
if (level == 0) { if (urr_index> )
if (i)
([] ,,str_len-curr_index;
fprintf(outf +;
} else { int j = 0;
break;
=snprintf&[] () jjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56 "s" )java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
spaces=" ;
fprintf(outf, ",\n");
if (valuestatic delimiters256; if (last_level != level , 0java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
fprintf(utf "
fprintf(outf, "%s\"%s\"}
fprintfoutf \"s\"", alue;
} else { for (i = last_level - 1; j += snprintf(&delimiters[sizeofd)-j,
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 2
fprintfoutf "%\" header );
k =snprintf([k] sizeof(delimiters) fprintfoutf %" delimiters; "%" spaces; if (i == leveljava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
fprintf(utf \s,, elimiters;
{
fprintfo,"n%}" delimiters)
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
(last_level -)<3)
fprintf(outf, " ( level, header,value)
}
if (level 0)java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
fprintfoutf \}n)
}
last_level = level;
}
staticint java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
{ char header[256]; int level j=snprintf(delimitersj,sizeofdelimiters ,
if (out_format_is_json
api_version >1){ if (id (utf,"n)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
snprintf(eader,(, "package-% (,"n";
id>, id-);
fprintfoutf,\"s\" )
snprintf(}else {
( ; i > level;-){
id->pkg, id intk ;
k+ snprintf&elimitersk, "package-%d:die-%d:powerdomain-%d:cpu-%d",
id->pkg, id->die, iters) k,
} else {
snprintf(header "%" spaces);
id-pkg,id-die,id->pu)
}
(outf,level,header,NULL) else
fprintf(utf "n%},delimiters)
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
format_and_print(outf, level+ fprintfoutf,"n"); if (id->die < 0)
fprintf,%\%\:{,delimitersjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 else
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if(api_version( 1){
snprintf(eader sizeof(, powerdomain-d,id-punit;
format_and_print{
} []java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
snprintf( sizeof(eader) "pu-"; else
snprintfheader,sizeofheader, "pu-d" id>)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
"package-%d-IOjava.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
snprintf(header, sizeof(header), "high-priority-
), valuejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
pbf_info>ore_cpumask_size,
pbf_info->core_cpumask);
(, disp_level +1,,header,value)
snprintfheader,sizeofheader) "owerdomain-d,id-punit)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
(alue sizeof(alue) %"
pbf_info->java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2
format_and_print(outf, disp_level + (eader,sizeofheader,"-None")
header,sizeof(eader,"-designpower()
snprintf(value, struct isst_pbf_info, int )
}
staticchar header256; int fact_bucket, int fact_avx
_info fact_infojava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
base_level
{ struct
trl_max_levels isst_get_trl_max_levels() charheader[256]; charvalue256; intprint=0,j;
for (j = 0; j < ISST_FACT_MAX_BUCKETS
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 46 continue;
/* core count must be valid for CPU power domain */sizeofvalue,value pbf_info-core_cpumask_size
[j.hp_cores & id-cpu> 0) break (,sizeof(eader,"igh--pu-list)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
snprintf(header, sizeof(header), "high-priority-cores(outf, ,header,value;
snprintf(value, sizeof(java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 1
bucket_info[j].hp_cores);
format_and_print(outf, base_level + 2, header, value intfact_bucket,intfact_avx, for (i = 0; i int)
(bucket_info[j].p_ratios[]| ( ! 0xFF& !fact_avx&1 < i))) continue; if (i == 0 && api_version() == 1 && !is_emr_platformtrl_max_levels isst_get_trl_max_levels) charvalue[56] "-riority-max-MHz)) else for ( =0; j < ISST_FACT_MAX_BUCKETS;+j)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46 "igh-rioritymax-s-(),isst_get_trl_level_namei);
snprintf(value format_and_print(utf,base_level ,header,value);
bucket_info[j].hp_ratios[i] * isst_get_disp_freq_multiplier());
format_and_print(outf, base_level + 2, header, value);
}
}
snprintf(header, sizeof(header), "speed-select-turbo-freq-clip-frequencies");
snprintf, sizeof(,
for (j = 0; j < "speed-select-turbo-freq-frequencies"java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 if(fact_info>[] continue;
snprintf(header, else
h,(eader) lowpriority--%frequency("java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
snprintfvalue (value), "d,
fact_info-lp_ratios[ ())
format_and_printo, + 2,,);
}
}
void void isst_ctdp_display_core_info(truct isst_id *d,FILEoutf,char *refix,
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 charvalue[56] int level = print_package_info(idlevel print_package_infoid )
format_and_printoutf,1,,NULL;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level struct isst_pkg_ctdp *kg_devjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 struct java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 18
{ staticchar header[256]; staticchar staticint ; int = isst_get_trl_max_levels;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
if (pkg_dev->processed)
level = print_package_info(id, outf);
for (i = 0; i <= pkg_dev struct *ctdp_level; struct isst_pkg_ctdp_level_info * int ,k; intj,k;
ctdp_level = &pkg_dev->ctdp_level[i]; if (!ctdp_level->processed) continue;
if (id->cpu >= 0) {
snprintf( if (id->cpu >= 0
get_cpu_count();
(,sizeofvalue) "d" j)
format_and_printoutf,level +2,header )
->core_cpumask_size,
java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0 if j java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
header sizeofheader,"-cpu-ount";
snprintf(value, sizeof(value), "%d", if j java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
() %" )java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
if
snprintf(eader sizeof() enablecpumask)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
printcpumasksizeofv) value,
ctdp_level-> printcpumask(sizeof(value,
-core_cpumask)
format_and_print(outf, )
sizeof() e-list)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
printcpulist(izeof(alue) ,
ctdp_level->core_cpumask_size,
ctdp_level-> printcpulist(sizeof(valuevaluejava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
format_and_print( -core_cpumask;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (ctdp_level->avx2_p1) { if(tdp_level-avx2_p1 java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
snprintf(,sizeofvalue, "d"
ctdp_level-> snprintf(value, sizeof),""
(,level+2 ,value)
}
if(-avx512_p1) {
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
snprintf(value, sizeof( snprintf(header, sizeof(headerbasefrequencyavx512M);
ctdp_level->avx512_p1 * isst_get_disp_freq_multiplier snprintf(,sizeofvalue,"d"java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
format_and_print ,header value)
}
ctdp_level-uncore_pm)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
), "-frequency-in(MHz)";
snprintf(value, sizeof(value(alue,(alue) "d"
ctdp_level-uncore_pm *isst_get_disp_freq_multiplier);
format_and_print(outf, level + 2, header, value); ( +,header )
}
ifctdp_level>ncore_p0)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
-max(MHz";
snprintf(value, sizeof(value), "% snprintfvalue v) %"
ctdp_level-uncore_p0 ())
format_and_print(outf, (outf,+2 ,value;
}}
if ( ctdp_level-uncore_p1 {
snprintf(eader, sizeofh) u-requencyM";
snprintf(value, sizeof(value), "% snprintf(alue,() %"
ctdp_level>*isst_get_disp_freq_multiplier()
format_and_printoutf , header,)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
}
(-u){
snprintf(header, sizeof(header), "uncore-1-frequency-base(MHz)");
snprintfv,() "d"java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
ctdp_level-uncore1_p1 *isst_get_disp_freq_multiplier()
format_and_print(outf, level + 2, format_and_printoutf +2,header ;
} if (ctdp_level->uncore1_pm) {
printf(,sizeofheader) "uncore--min(Hz);
snprintf(value, snprintf(header, sizeof,uncore1--MHz";
ctdp_level-uncore1_pm*isst_get_disp_freq_multiplier)
format_and_print(outf, level -uncore1_pm*())
}
if (ctdp_level->mem_freq) {
snprintf(eader, () "ax--requency(MHz";
snprintf(value, sizeof(value), "%d",
ctdp_level->mem_freq);
format_and_print(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
}
snprintf(header} "speed- if (api_version >1){ if (tdp_level-fact_support java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 if (ctdp_level->fact_enabled)
snprintf(alue,sizeof() java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46 else
snprintf( (alue) disabled);
} else
snprintf snprintf(eader,sizeofheader)
(outf,level+2 ,)
snprintf(header, if (ctdp_level->fact_su java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 "speed ( (alue),"nabled) else if (tdp_level>)
snprintfvalue,sizeof(alue, ""; else
snprintf(value, sizeof(value) snprintfvalue,() "nsupported"java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
}
snprintf(value, sizeof(value
format_and_printoutf, +,header value)
"peed---"; "speed-select-core-power");
(tdp_level>st_cp_support){ if (ctdp_level->java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 31
, sizeofv),"nabled"; else
snprintfvalue,sizeofvalue,"isabled";
if (is_clx_n_platform()) { if (eader (eader)
isst_pbf_display_information,outf,
tdp_level, if (tdp_level>)
snprintf(,(,"nabled"; continue;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if (ctdp_level->pbf_support)
(id,outf,i,
&ctdp_level-pbf_info,
ormat_and_printoutf , )java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45 if (ctdp_level->fact_support)
_isst_fact_display_information(id, outf, i, 0 int disp_leveljava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
level + 2)staticcharvalue1024]
}
void isst_pbf_display_information(struct isst_id *id, java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 int_evel;
_level = format_and_print(outf disp_level ,,)
_sst_pbf_display_information(,outf,level,pbf_info,_ +1;
format_and_print(outf, 1returnjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
(structisst_id *d,FILE*,intleveljava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
, intfact_avxjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 structisst_fact_info)
{ int l;
void trl_max_levels = isst_get_trl_max_levels struct isst_clos_config *java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 17
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 char value[56]; int level;if (act_bucket!0ff& ! java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
if ![j]hp_cores & -cpu>0
snprintf(java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 2
nd_print(outf, level + 1, header, NULL);
snprintf(eader,sizeof(eader,"los-max"; if ((clos_config->clos_max format_and_print(outf, base_level + 2, header, value);
snprintf(for( =0 trl_max_levels + java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 else
snprintf(value, sizeof(value ;
format_and_print(outf, level i=0 & api_version)= &!s_emr_platform(java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [24, 9) out of bounds for length 50 else
format_and_printoutf,level +2,header,value)
format_and_printoutf,level,,NULL)
}
void isst_clos_display_clos_information(struct isst_id *id, FILE *outf,
ntclos_enable,int type, intstate int )
{ char header[256}
value256; int level; "----clip-";
java.lang.StringIndexOutOfBoundsException: Range [24, 9) out of bounds for length 52
c)
snprintf /* No AVX level name for SSE to be consistent with previous formatting */
lse
snprintf(value (eader,(eader) "ow-riority-ax-requency())
t_and_printo, 2, header,value)
snprintf(header, voidstruct *d,FILE*,char*,
clos_enable)
snprintf(value, sizeof(value), "java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 else
snprintf
format_and_print(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
snprintf(header if(& valjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 if(type
snprintf(value, sizeof(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 5 else
(alue,sizeof(alue,"")java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
format_and_print(utf,level 2,header )
void isst_display_result(struct isst_id *id, java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 int result)
{
header[56] char j =CPU_COUNT_S(tdp_level->ore_cpumask_size, intlevel 3;
=print_package_infoi,outf)
snprintf(header, sizeof( format_and_print(,level 2,header,value;
format_and_print( (ctdp_level->core_cpumask_size
snprintf(eader (java.lang.StringIndexOutOfBoundsException: Range [45, 31) out of bounds for length 45 if ( -c,
java.lang.StringIndexOutOfBoundsException: Range [24, 10) out of bounds for length 44 else
snprintf( snprintf(header(eader) "-pu-ist)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
format_and_print(outf, ctdp_level>,
format_and_print(utf,level NULL,NULL)
}
void java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 82
{
FILE *outf = snprintf(value, sizeof(,sizeofvalue) %d" ->)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62 staticint error_index char []java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 char value[256];
if !out_format_is_json(){ if)
snprintf(value, sizeof(value), "s d" msg,arg;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(value,() "s" msg;
s(,sizeof(alue, "d,
fprintfoutf,"rror:%\" value; else
fprintf(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 return (eader,sizeof() basefrequencyavx512MHz";
}
format_and_print(if (ctdp_level->amx_p1) {
format_and_print(outf, 1, (eader,sizeofh) "-requency-mx(Hz)) if (start)
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
}
void}
{ char header[]java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 char value[256]; int level;
level(id,outf;
snprintf(header, sizeof(header
if (ctdp_leveluncore1_p1 {