On Sun, 22 Apr 2018, Carsten Emde wrote: > Cylictest's --smi option allows to continuously display SMIs that occur > during the measurement. However, the SMI count was not yet included in the > summary at the end of the program run. Added this. > > While we are at it, update the list of Intel family 6 models that support > retrieving the SMI count by copying newly added items from kernel sources > at tools/power/x86/turbostat. > > Signed-off-by: Carsten Emde <C.Emde@xxxxxxxxx> > > --- > src/cyclictest/cyclictest.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > Index: rt-tests/src/cyclictest/cyclictest.c > =================================================================== > --- rt-tests.orig/src/cyclictest/cyclictest.c > +++ rt-tests/src/cyclictest/cyclictest.c > @@ -935,6 +935,9 @@ static int has_smi_counter(void) > case 0x4C: /* AMT */ > case 0x57: /* PHI */ > case 0x5C: /* BXT */ > + case 0x5F: /* DNV */ > + case 0x7A: /* Gemini Lake */ > + case 0x85: /* Knights Mill */ > break; > default: > return 0; > @@ -2036,6 +2039,13 @@ static void print_hist(struct thread_par > fprintf(fd, " # %05lu others", par[i]->stats->hist_overflow - par[i]->stats->num_outliers); > fprintf(fd, "\n"); > } > + if (smi) { > + fprintf(fd, "# SMIs:"); > + for (i = 0; i < nthreads; i++) > + fprintf(fd, " %05lu", par[i]->stats->smi_count); > + fprintf(fd, "\n"); > + } > + > fprintf(fd, "\n"); > > if (use_histfile) > Thanks Carsten. I've applied and pushed this. I'm going to port it to the development branch as well. John -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html