summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <clark.williams@gmail.com>2013-12-11 15:30:29 -0600
committerClark Williams <clark.williams@gmail.com>2013-12-11 15:30:29 -0600
commit7c21340615714a68883cc36f6aad15ef3a817d0f (patch)
treeca872810463a97e9a22d2d8933ca1af635befae0
parent2f060c9ac655b8ecdb0bf3ce827cb8d05dc8b8c5 (diff)
downloadrt-tests-7c21340615714a68883cc36f6aad15ef3a817d0f.tar.gz
fixed #ifdef that cuts -A option in display_help()
Signed-off-by: Clark Williams <clark.williams@gmail.com>
-rw-r--r--src/cyclictest/cyclictest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index ca3286f..686a635 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -985,8 +985,8 @@ static void display_help(int error)
#else
"-a [NUM] --affinity run thread #N on processor #N, if possible\n"
" with NUM pin all threads to the processor NUM\n"
- "-A USEC --aligned=USEC align thread wakeups to a specific offset\n"
#endif
+ "-A USEC --aligned=USEC align thread wakeups to a specific offset\n"
"-b USEC --breaktrace=USEC send break trace command when latency > USEC\n"
"-B --preemptirqs both preempt and irqsoff tracing (used with -b)\n"
"-c CLOCK --clock=CLOCK select clock\n"
@@ -1102,14 +1102,14 @@ static int cpu_for_thread(int thread_num, int max_cpus)
static void parse_cpumask(const char *option, const int max_cpus)
{
affinity_mask = rt_numa_parse_cpustring(option, max_cpus);
- if (affinity_mask) {
+ if (affinity_mask) {
if (is_cpumask_zero(affinity_mask)) {
rt_bitmask_free(affinity_mask);
affinity_mask = NULL;
}
}
if (!affinity_mask)
- display_help(1);
+ display_help(1);
if (verbose) {
printf("%s: Using %u cpus.\n", __func__,
@@ -1282,9 +1282,9 @@ static void process_options (int argc, char *argv[], int max_cpus)
case 'f':
case OPT_FTRACE:
tracetype = FUNCTION; ftrace = 1; break;
- case 'F':
+ case 'F':
case OPT_FIFO:
- use_fifo = 1;
+ use_fifo = 1;
strncpy(fifopath, optarg, strlen(optarg));
break;
@@ -1694,7 +1694,7 @@ static void print_stat(FILE *fp, struct thread_param *par, int index, int verbos
}
-/*
+/*
* thread that creates a named fifo and hands out run stats when someone
* reads from the fifo.
*/