Compare commits

...

4 Commits

Author SHA1 Message Date
John Kacur d48504b8e8 rt-tests: cyclictest: Correct short option 's'
The short option 's' was originally intended to be the short form of
--system

Commit b35bc97cfd
which added the new option --secaligned broke this, by accidently
inserting the new option between the short form and long form.

Reported-by: Daniel Seemer <phaiax-cyclictest@invisibletower.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2016-10-28 16:40:04 +02:00
John Kacur 35dca49004 rt-tests-1.0.1: Remove _GNU_SOURCE from source files
Remove _GNU_SOURCE from source files since it is already defined in via
the Makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-06-24 13:43:42 +02:00
Daniel Bristot de Oliveira 49c61dcd3d cyclictest: new CPUs with SMI counter support
Cyclictest's SMI counter implementation is based on the turbostat
tool in the Linux kernel.  This patch syncs cyclictest's has_smi_counter()
with turbostat's check.

From turbostat's commits:
cdc5727 tools/power turbostat: initial KBL support
ec53e59 tools/power turbostat: initial SKX support
e4085d5 tools/power turbostat: initial BXT support

[ John & Clark, I did it in the branch devel/v2.0, but we need  ]
[ this in the 0.x and 1.x series as well.                       ]

Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-31 10:42:59 +02:00
John Kacur d98128f022 rt-tests: Makefile: Add missing install of rt-migrate-test.8 man page
Add missing install of rt-migrate-test.8 man page

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-13 23:57:05 +02:00
3 changed files with 6 additions and 4 deletions

View File

@ -172,6 +172,7 @@ install: all install_hwlatdetect
gzip -c src/cyclictest/cyclictest.8 >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz"
gzip -c src/pi_tests/pi_stress.8 >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz"
gzip -c src/ptsematest/ptsematest.8 >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz"
gzip -c src/rt-migrate-test/rt-migrate-test.8 >"$(DESTDIR)$(mandir)/man8/rt-migrate-test.8.gz"
gzip -c src/sigwaittest/sigwaittest.8 >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz"
gzip -c src/svsematest/svsematest.8 >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz"
gzip -c src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz"

View File

@ -927,10 +927,14 @@ static int has_smi_counter(void)
case 0x56: /* BDX-DE */
case 0x4E: /* SKL */
case 0x5E: /* SKL */
case 0x8E: /* KBL */
case 0x9E: /* KBL */
case 0x55: /* SKX */
case 0x37: /* BYT */
case 0x4D: /* AVN */
case 0x4C: /* AMT */
case 0x57: /* PHI */
case 0x5C: /* BXT */
break;
default:
return 0;
@ -1684,7 +1688,6 @@ static void process_options (int argc, char *argv[], int max_cpus)
case 'R':
case OPT_RESOLUTION:
check_clock_resolution = 1; break;
case 's':
case OPT_SECALIGNED:
secaligned = 1;
if (optarg != NULL)
@ -1694,6 +1697,7 @@ static void process_options (int argc, char *argv[], int max_cpus)
else
offset = 0;
break;
case 's':
case OPT_SYSTEM:
use_system = MODE_SYS_OFFSET; break;
case 'S':

View File

@ -20,9 +20,6 @@
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#ifndef __USE_XOPEN2K
# define __USE_XOPEN2K