Add litmus tests for MTTCG consistency tests
v2 cover Add litmus tests for MTTCG consistency tests
Hello,
The following patch series adds litmus tests to test consistency for MTTCG enabled qemu. These patches apply on top of the clean up tests/tcg folder made by my previous patch series.
The tests were generated using the litmus tool. The sources and instructions on how to generate these sources can be found in this
repository: https://github.com/pranith/qemu-litmus
The litmus tests will fail if you do not have the barrier emitting patch series applied and will pass otherwise. I tested these on both an x86 and an Aarch64 machine. These tests are currently enabled on the trusty configuration on travis.
These and all the patches necessary to successfully emit barrier instructions can be found at the following location:
git://github.com/pranith/qemu fence_v4_litmus
Thanks!
Pranith Kumar (3):
tests/tcg: Add i386 litmus test
tests/tcg: Add aarch64 litmus tests
travis: Enable litmus tests
.travis.yml | 8 + tests/tcg/aarch64/litmus/ARMARM00.c | 501 +++++++++++++ tests/tcg/aarch64/litmus/ARMARM01.c | 504 +++++++++++++ tests/tcg/aarch64/litmus/ARMARM02.c | 571 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM03.c | 498 +++++++++++++ tests/tcg/aarch64/litmus/ARMARM04+BIS.c | 556 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM04+TER.c | 538 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM04.c | 556 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM05.c | 553 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM06+AP+AA.c | 581 +++++++++++++++ tests/tcg/aarch64/litmus/ARMARM06+AP+AP.c | 581 +++++++++++++++ tests/tcg/aarch64/litmus/ARMARM06.c | 581 +++++++++++++++ tests/tcg/aarch64/litmus/ARMARM07+SAL.c | 497 +++++++++++++ tests/tcg/aarch64/litmus/Makefile | 53 ++ tests/tcg/aarch64/litmus/README.txt | 22 + tests/tcg/aarch64/litmus/affinity.c | 159 ++++ tests/tcg/aarch64/litmus/affinity.h | 34 + tests/tcg/aarch64/litmus/comp.sh | 30 + tests/tcg/aarch64/litmus/litmus_rand.c | 64 ++ tests/tcg/aarch64/litmus/litmus_rand.h | 29 + tests/tcg/aarch64/litmus/outs.c | 148 ++++ tests/tcg/aarch64/litmus/outs.h | 49 ++ tests/tcg/aarch64/litmus/run.sh | 378 ++++++++++ tests/tcg/aarch64/litmus/show.awk | 2 + tests/tcg/aarch64/litmus/utils.c | 1148 +++++++++++++++++++++++++++++ tests/tcg/aarch64/litmus/utils.h | 275 +++++++ tests/tcg/i386/litmus/Makefile | 42 ++ tests/tcg/i386/litmus/README.txt | 22 + tests/tcg/i386/litmus/SAL.c | 491 ++++++++++++ tests/tcg/i386/litmus/affinity.c | 159 ++++ tests/tcg/i386/litmus/affinity.h | 34 + tests/tcg/i386/litmus/comp.sh | 10 + tests/tcg/i386/litmus/litmus_rand.c | 64 ++ tests/tcg/i386/litmus/litmus_rand.h | 29 + tests/tcg/i386/litmus/outs.c | 148 ++++ tests/tcg/i386/litmus/outs.h | 49 ++ tests/tcg/i386/litmus/run.sh | 55 ++ tests/tcg/i386/litmus/show.awk | 2 + tests/tcg/i386/litmus/utils.c | 1148 +++++++++++++++++++++++++++++ tests/tcg/i386/litmus/utils.h | 275 +++++++ 40 files changed, 11444 insertions(+) create mode 100644 tests/tcg/aarch64/litmus/ARMARM00.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM01.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM02.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM03.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM04+BIS.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM04+TER.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM04.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM05.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM06+AP+AA.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM06+AP+AP.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM06.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM07+SAL.c create mode 100644 tests/tcg/aarch64/litmus/Makefile create mode 100644 tests/tcg/aarch64/litmus/README.txt create mode 100644 tests/tcg/aarch64/litmus/affinity.c create mode 100644 tests/tcg/aarch64/litmus/affinity.h create mode 100644 tests/tcg/aarch64/litmus/comp.sh create mode 100644 tests/tcg/aarch64/litmus/litmus_rand.c create mode 100644 tests/tcg/aarch64/litmus/litmus_rand.h create mode 100644 tests/tcg/aarch64/litmus/outs.c create mode 100644 tests/tcg/aarch64/litmus/outs.h create mode 100755 tests/tcg/aarch64/litmus/run.sh create mode 100644 tests/tcg/aarch64/litmus/show.awk create mode 100644 tests/tcg/aarch64/litmus/utils.c create mode 100644 tests/tcg/aarch64/litmus/utils.h create mode 100644 tests/tcg/i386/litmus/Makefile create mode 100644 tests/tcg/i386/litmus/README.txt create mode 100644 tests/tcg/i386/litmus/SAL.c create mode 100644 tests/tcg/i386/litmus/affinity.c create mode 100644 tests/tcg/i386/litmus/affinity.h create mode 100644 tests/tcg/i386/litmus/comp.sh create mode 100644 tests/tcg/i386/litmus/litmus_rand.c create mode 100644 tests/tcg/i386/litmus/litmus_rand.h create mode 100644 tests/tcg/i386/litmus/outs.c create mode 100644 tests/tcg/i386/litmus/outs.h create mode 100755 tests/tcg/i386/litmus/run.sh create mode 100644 tests/tcg/i386/litmus/show.awk create mode 100644 tests/tcg/i386/litmus/utils.c create mode 100644 tests/tcg/i386/litmus/utils.h
Signature · 1 line
2.9.3
PATCH v2 1/3 tests/tcg: Add i386 litmus test
This adds the x86 store-after-load re-ordering litmus test.
--- tests/tcg/i386/litmus/Makefile | 42 ++ tests/tcg/i386/litmus/README.txt | 22 + tests/tcg/i386/litmus/SAL.c | 491 +++++++++++++++ tests/tcg/i386/litmus/affinity.c | 159 +++++ tests/tcg/i386/litmus/affinity.h | 34 ++ tests/tcg/i386/litmus/comp.sh | 10 + tests/tcg/i386/litmus/litmus_rand.c | 64 ++ tests/tcg/i386/litmus/litmus_rand.h | 29 + tests/tcg/i386/litmus/outs.c | 148 +++++ tests/tcg/i386/litmus/outs.h | 49 ++ tests/tcg/i386/litmus/run.sh | 55 ++ tests/tcg/i386/litmus/show.awk | 2 + tests/tcg/i386/litmus/utils.c | 1148 +++++++++++++++++++++++++++++++++++ tests/tcg/i386/litmus/utils.h | 275 +++++++++ 14 files changed, 2528 insertions(+) create mode 100644 tests/tcg/i386/litmus/Makefile create mode 100644 tests/tcg/i386/litmus/README.txt create mode 100644 tests/tcg/i386/litmus/SAL.c create mode 100644 tests/tcg/i386/litmus/affinity.c create mode 100644 tests/tcg/i386/litmus/affinity.h create mode 100644 tests/tcg/i386/litmus/comp.sh create mode 100644 tests/tcg/i386/litmus/litmus_rand.c create mode 100644 tests/tcg/i386/litmus/litmus_rand.h create mode 100644 tests/tcg/i386/litmus/outs.c create mode 100644 tests/tcg/i386/litmus/outs.h create mode 100755 tests/tcg/i386/litmus/run.sh create mode 100644 tests/tcg/i386/litmus/show.awk create mode 100644 tests/tcg/i386/litmus/utils.c create mode 100644 tests/tcg/i386/litmus/utils.h
tests/tcg/i386/litmus/Makefile new file +42 -0
@@ -0,0 +1,42 @@ +GCC=gcc +GCCOPTS=-D_GNU_SOURCE -DFORCE_AFFINITY -Wall -std=gnu99 -fomit-frame-pointer -O2 -pthread +LINKOPTS= +SRC=\ + SAL.c\ + +EXE=$(SRC:.c=.exe) +T=$(SRC:.c=.t) + +all: $(EXE) $(T) + +clean: + /bin/rm -f *.o *.s *.t *.exe *~ + +cleansource: + /bin/rm -f *.o *.c *.h *.s *~ + +affinity.o: affinity.c + $(GCC) $(GCCOPTS) -O2 -c affinity.c + +outs.o: outs.c + $(GCC) $(GCCOPTS) -O2 -c outs.c + +utils.o: utils.c + $(GCC) $(GCCOPTS) -O2 -c utils.c + +litmus_rand.o: litmus_rand.c + $(GCC) $(GCCOPTS) -O2 -c litmus_rand.c + +UTILS=affinity.o outs.o utils.o litmus_rand.o + +%.exe:%.s $(UTILS) + $(GCC) $(GCCOPTS) $(LINKOPTS) -o $@ $(UTILS) $< + +%.s:%.c + $(GCC) $(GCCOPTS) -S $< + +%.t:%.s + awk -f show.awk $< > $@ + +tests: all + ./run.sh
tests/tcg/i386/litmus/README.txt new file +22 -0
@@ -0,0 +1,22 @@ +Tests produced by litmus for architecture X86 on linux + +COMPILING + with command 'make [-j N]' or 'sh comp.sh' + +RUNNING ALL TESTS + with command 'sh run.sh'. Test result on standard output. + +RUNNING ONE TEST + Tests are .exe files, for instance SAL.exe, run it by './SAL.exe' + +RUNNING OPTIONS + Main options to the run.sh script and to .exe files: + -v be verbose (can be repeated). + -a <n> number of (logical) processors available, default 0. + The default value of 0 means that .exe files attempt + to infer the actual number of logical threads. + -s <n> one run operates on arrays of size <n>, default 100000. + -r <n> number of runs, default 10. + + For more options see for instance './SAL.exe -help' and litmus documentation + <http://diy.inria.fr/doc/litmus.html>
tests/tcg/i386/litmus/SAL.c new file +491 -0
491 lines not on this page · raw message
tests/tcg/i386/litmus/affinity.c new file +159 -0
159 lines not on this page · raw message
tests/tcg/i386/litmus/affinity.h new file +34 -0
@@ -0,0 +1,34 @@ +/****************************************************************************/ +/* the diy toolsuite */ +/* */ +/* Jade Alglave, University College London, UK. */ +/* Luc Maranget, INRIA Paris-Rocquencourt, France. */ +/* */ +/* Copyright 2015-present Institut National de Recherche en Informatique et */ +/* en Automatique and the authors. All rights reserved. */ +/* */ +/* This software is governed by the CeCILL-B license under French law and */ +/* abiding by the rules of distribution of free software. You can use, */ +/* modify and/ or redistribute the software under the terms of the CeCILL-B */ +/* license as circulated by CEA, CNRS and INRIA at the following URL */ +/* "http://www.cecill.info". We also give a copy in LICENSE.txt. */ +/****************************************************************************/ +#ifndef _AFFINITY_H +#define _AFFINITY_H 1 + +#include "utils.h" + +#ifdef CPUS_DEFINED +cpus_t *read_affinity (void ) ; +#ifdef FORCE_AFFINITY +cpus_t *read_force_affinity (int n_avail,int verbose) ; +#endif +void write_affinity (cpus_t *p) ; +#endif + +void write_one_affinity (int cpu) ; +#ifdef FORCE_AFFINITY +void force_one_affinity (int cpu,int sz,int verbose,char *name) ; +#endif + +#endif
tests/tcg/i386/litmus/comp.sh new file +10 -0
@@ -0,0 +1,10 @@ +GCC=gcc +GCCOPTS="-D_GNU_SOURCE -DFORCE_AFFINITY -Wall -std=gnu99 -fomit-frame-pointer -O2 -pthread" +LINKOPTS="" +/bin/rm -f *.exe *.s +$GCC $GCCOPTS -O2 -c affinity.c +$GCC $GCCOPTS -O2 -c outs.c +$GCC $GCCOPTS -O2 -c utils.c +$GCC $GCCOPTS -O2 -c litmus_rand.c +$GCC $GCCOPTS $LINKOPTS -o SAL.exe affinity.o outs.o utils.o litmus_rand.o SAL.c +$GCC $GCCOPTS -S SAL.c && awk -f show.awk SAL.s > SAL.t && /bin/rm SAL.s
tests/tcg/i386/litmus/litmus_rand.c new file +64 -0
64 lines not on this page · raw message
tests/tcg/i386/litmus/litmus_rand.h new file +29 -0
@@ -0,0 +1,29 @@ +/****************************************************************************/ +/* the diy toolsuite */ +/* */ +/* Jade Alglave, University College London, UK. */ +/* Luc Maranget, INRIA Paris-Rocquencourt, France. */ +/* */ +/* Copyright 2015-present Institut National de Recherche en Informatique et */ +/* en Automatique and the authors. All rights reserved. */ +/* */ +/* This software is governed by the CeCILL-B license under French law and */ +/* abiding by the rules of distribution of free software. You can use, */ +/* modify and/ or redistribute the software under the terms of the CeCILL-B */ +/* license as circulated by CEA, CNRS and INRIA at the following URL */ +/* "http://www.cecill.info". We also give a copy in LICENSE.txt. */ +/****************************************************************************/ +#ifndef _LITMUS_RAND_H +#define _LITMUS_RAND_H 1 + +#include <stdint.h> + +/* type of state for pseudorandom generators */ +typedef uint32_t st_t ; + +/* Unlocked random bit */ + +int rand_bit (st_t *st) ; +uint32_t rand_k (st_t *st,uint32_t n) ; + +#endif
tests/tcg/i386/litmus/outs.c new file +148 -0
148 lines not on this page · raw message
tests/tcg/i386/litmus/outs.h new file +49 -0
49 lines not on this page · raw message
tests/tcg/i386/litmus/run.sh new file +55 -0
55 lines not on this page · raw message
tests/tcg/i386/litmus/show.awk new file +2 -0
@@ -0,0 +1,2 @@ +/START _litmus_P/ { print $0 } +/_litmus_P[0-9]+_[0-9]+/ { getline; print $0 ; }
tests/tcg/i386/litmus/utils.c new file +1148 -0
1,148 lines not on this page · raw message
tests/tcg/i386/litmus/utils.h new file +275 -0
275 lines not on this page · raw message
Signature · 1 line
2.9.3
PATCH v2 2/3 tests/tcg: Add aarch64 litmus tests
In reply to Pranith KumarAdd Aarch64 litmus tests.
--- tests/tcg/aarch64/litmus/ARMARM00.c | 501 +++++++++++++ tests/tcg/aarch64/litmus/ARMARM01.c | 504 +++++++++++++ tests/tcg/aarch64/litmus/ARMARM02.c | 571 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM03.c | 498 +++++++++++++ tests/tcg/aarch64/litmus/ARMARM04+BIS.c | 556 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM04+TER.c | 538 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM04.c | 556 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM05.c | 553 ++++++++++++++ tests/tcg/aarch64/litmus/ARMARM06+AP+AA.c | 581 +++++++++++++++ tests/tcg/aarch64/litmus/ARMARM06+AP+AP.c | 581 +++++++++++++++ tests/tcg/aarch64/litmus/ARMARM06.c | 581 +++++++++++++++ tests/tcg/aarch64/litmus/ARMARM07+SAL.c | 497 +++++++++++++ tests/tcg/aarch64/litmus/Makefile | 53 ++ tests/tcg/aarch64/litmus/README.txt | 22 + tests/tcg/aarch64/litmus/affinity.c | 159 ++++ tests/tcg/aarch64/litmus/affinity.h | 34 + tests/tcg/aarch64/litmus/comp.sh | 30 + tests/tcg/aarch64/litmus/litmus_rand.c | 64 ++ tests/tcg/aarch64/litmus/litmus_rand.h | 29 + tests/tcg/aarch64/litmus/outs.c | 148 ++++ tests/tcg/aarch64/litmus/outs.h | 49 ++ tests/tcg/aarch64/litmus/run.sh | 378 ++++++++++ tests/tcg/aarch64/litmus/show.awk | 2 + tests/tcg/aarch64/litmus/utils.c | 1148 +++++++++++++++++++++++++++++ tests/tcg/aarch64/litmus/utils.h | 275 +++++++ 25 files changed, 8908 insertions(+) create mode 100644 tests/tcg/aarch64/litmus/ARMARM00.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM01.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM02.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM03.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM04+BIS.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM04+TER.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM04.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM05.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM06+AP+AA.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM06+AP+AP.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM06.c create mode 100644 tests/tcg/aarch64/litmus/ARMARM07+SAL.c create mode 100644 tests/tcg/aarch64/litmus/Makefile create mode 100644 tests/tcg/aarch64/litmus/README.txt create mode 100644 tests/tcg/aarch64/litmus/affinity.c create mode 100644 tests/tcg/aarch64/litmus/affinity.h create mode 100644 tests/tcg/aarch64/litmus/comp.sh create mode 100644 tests/tcg/aarch64/litmus/litmus_rand.c create mode 100644 tests/tcg/aarch64/litmus/litmus_rand.h create mode 100644 tests/tcg/aarch64/litmus/outs.c create mode 100644 tests/tcg/aarch64/litmus/outs.h create mode 100755 tests/tcg/aarch64/litmus/run.sh create mode 100644 tests/tcg/aarch64/litmus/show.awk create mode 100644 tests/tcg/aarch64/litmus/utils.c create mode 100644 tests/tcg/aarch64/litmus/utils.h
tests/tcg/aarch64/litmus/ARMARM00.c new file +501 -0
@@ -0,0 +1,501 @@ +/****************************************************************************/ +/* the diy toolsuite */ +/* */ +/* Jade Alglave, University College London, UK. */ +/* Luc Maranget, INRIA Paris-Rocquencourt, France. */ +/* */ +/* This C source is a product of litmus7 and includes source that is */ +/* governed by the CeCILL-B license. */ +/****************************************************************************/ +/* Parameters */ +#define SIZE_OF_TEST 100000 +#define NUMBER_OF_RUN 10 +#define AVAIL 0 +#define STRIDE 1 +#define MAX_LOOP 0 +#define N 2 +#define AFF_INCR (0) +/* Includes */ +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <errno.h> +#include <assert.h> +#include <time.h> +#include <limits.h> +#include "utils.h" +#include "outs.h" +#include "affinity.h" + +/* params */ +typedef struct { +int verbose; +int size_of_test,max_run; +int stride; +aff_mode_t aff_mode; +int ncpus, ncpus_used; +int do_change; +}param_t ; + + +/* Full memory barrier */ +inline static void mbar (void ) { + asm __volatile__ ("dsb sy" :::"memory" ); +} + +/* Barriers macros */ +inline static void barrier_wait (unsigned int id,unsigned int k,int volatile *b) { +if ((k %N ) == id) { + *b =1 ; + }else { +while (*b ==0 ) ; + } +} + +/**********************/ +/* Context definition */ +/**********************/ + + +typedef struct { +/* Shared variables */ +int *y; +int *x; +/* Final content of observed registers */ +int *out_1_x0; +int *out_1_x2; +/* Check data */ +pb_t *fst_barrier; +/* Barrier for litmus loop */ +int volatile *barrier; +/* Instance seed */ +st_t seed; +/* Parameters */ +param_t *_p; +}ctx_t ; + +inline static int final_cond (int _out_1_x0,int _out_1_x2) { +switch (_out_1_x0) { +case 1 : +switch (_out_1_x2) { +case 0 : +return 1 ; +default : +return 0 ; + } +default : +return 0 ; + } +} + +inline static int final_ok (int cond) { +return cond; +} + +/**********************/ +/* Outcome collection */ +/**********************/ +#define NOUTS 2 +typedef intmax_t outcome_t [NOUTS ]; + +static const int out_1_x0_f =0 ; +static const int out_1_x2_f =1 ; + + +typedef struct hist_t { +outs_t *outcomes ; +count_t n_pos,n_neg ; +}hist_t ; + +static hist_t *alloc_hist (void ) { +hist_t *p =malloc_check (sizeof (*p)) ; + p->outcomes =NULL ; + p->n_pos = p->n_neg =0 ; +return p ; +} + +static void free_hist (hist_t *h) { +free_outs (h->outcomes) ; +free (h) ; +} + +static void add_outcome (hist_t *h,count_t v,outcome_t o,int show) { + h->outcomes =add_outcome_outs (h->outcomes,o,NOUTS ,v,show) ; +} + +static void merge_hists (hist_t *h0,hist_t *h1) { + h0->n_pos += h1->n_pos ; + h0->n_neg += h1->n_neg ; + h0->outcomes =merge_outs (h0->outcomes,h1->outcomes,NOUTS ) ; +} + +static count_t sum_hist (hist_t *h) { +return sum_outs (h->outcomes) ; +} + + +static void do_dump_outcome (FILE *fhist,intmax_t *o,count_t c,int show) { +fprintf (fhist,"%-6" PCTR "%c>1:X0=%i; 1:X2=%i;\n" ,c,show ?'*' :':' ,(int )o[out_1_x0_f],(int )o[out_1_x2_f]); +} + +static void just_dump_outcomes (FILE *fhist,hist_t *h) { +outcome_t buff ; +dump_outs (fhist,do_dump_outcome,h->outcomes,buff,NOUTS ) ; +} + +/*******************************************************/ +/* Context allocation, freeing and reinitialization */ +/*******************************************************/ + +static void init (ctx_t *_a) { +int size_of_test = _a->_p->size_of_test; + + _a->seed =rand (); + _a->out_1_x0 =malloc_check (size_of_test*sizeof (*(_a->out_1_x0))); + _a->out_1_x2 =malloc_check (size_of_test*sizeof (*(_a->out_1_x2))); + _a->y =malloc_check (size_of_test*sizeof (*(_a->y))); + _a->x =malloc_check (size_of_test*sizeof (*(_a->x))); + _a->fst_barrier =pb_create (N ); + _a->barrier =malloc_check (size_of_test*sizeof (*(_a->barrier))); +} + +static void finalize (ctx_t *_a) { +free ((void *)_a->y); +free ((void *)_a->x); +free ((void *)_a->out_1_x0); +free ((void *)_a->out_1_x2); +pb_free (_a->fst_barrier); +free ((void *)_a->barrier); +} + +static void reinit (ctx_t *_a) { +for (int _i = _a->_p->size_of_test-1 ; _i >=0 ; _i--) { + _a->y[_i] =0 ; + _a->x[_i] =0 ; + _a->out_1_x0[_i] =-239487 ; + _a->out_1_x2[_i] =-239487 ; + _a->barrier[_i] =0 ; + } +} + +/**************************************/ +/* Prefetch (and check) global values */ +/**************************************/ + +static void check_globals (ctx_t *_a) { +int *y = _a->y; +int *x = _a->x; +for (int _i = _a->_p->size_of_test-1 ; _i >=0 ; _i--) { +if (rand_bit (&(_a->seed)) && y[_i] !=0 )fatal ("ARMARM00, check_globals failed" ); +if (rand_bit (&(_a->seed)) && x[_i] !=0 )fatal ("ARMARM00, check_globals failed" ); + } +pb_wait (_a->fst_barrier); +} + +/***************/ +/* Litmus code */ +/***************/ + +typedef struct { +int th_id;/* I am running on this thread */ +int *cpu;/* On this cpu */ +ctx_t *_a;/* In this context */ +}parg_t ; + + + + + +static void *P0 (void *_vb) { +mbar (); +parg_t *_b = (parg_t *)_vb; +ctx_t *_a = _b->_a; +int _ecpu = _b->cpu[_b->th_id]; +force_one_affinity (_ecpu,AVAIL ,_a->_p->verbose,"ARMARM00" ); +check_globals (_a); +int _th_id = _b->th_id; +int volatile *barrier = _a->barrier; +int _size_of_test = _a->_p->size_of_test; +int _stride = _a->_p->stride; +for (int _j = _stride ; _j >0 ; _j--) { +for (int _i = _size_of_test-_j ; _i >=0 ; _i -= _stride) { +barrier_wait (_th_id,_i,&barrier[_i]); +int trashed_x0; +int trashed_x2; +asm __volatile__ ( +"\n" +"#START _litmus_P0\n" +"#_litmus_P0_0\n\t" +"mov %w[x0],#1\n" +"#_litmus_P0_1\n\t" +"str %w[x0],[%[x1]]\n" +"#_litmus_P0_2\n\t" +"mov %w[x2],#1\n" +"#_litmus_P0_3\n\t" +"stlr %w[x2],[%[x3]]\n" +"#END _litmus_P0\n\t" +:[x2]"=&r" (trashed_x2),[x0]"=&r" (trashed_x0) +:[x1]"r" (&_a->x[_i]),[x3]"r" (&_a->y[_i]) +:"cc" ,"memory" +); + } + } +mbar (); +return NULL ; +} + +static void *P1 (void *_vb) { +mbar (); +parg_t *_b = (parg_t *)_vb; +ctx_t *_a = _b->_a; +int _ecpu = _b->cpu[_b->th_id]; +force_one_affinity (_ecpu,AVAIL ,_a->_p->verbose,"ARMARM00" ); +check_globals (_a); +int _th_id = _b->th_id; +int volatile *barrier = _a->barrier; +int _size_of_test = _a->_p->size_of_test; +int _stride = _a->_p->stride; +int *out_1_x0 = _a->out_1_x0; +int *out_1_x2 = _a->out_1_x2; +for (int _j = _stride ; _j >0 ; _j--) { +for (int _i = _size_of_test-_j ; _i >=0 ; _i -= _stride) { +barrier_wait (_th_id,_i,&barrier[_i]); +asm __volatile__ ( +"\n" +"#START _litmus_P1\n" +"#_litmus_P1_0\n\t" +"ldar %w[x0],[%[x1]]\n" +"#_litmus_P1_1\n\t" +"cmp %w[x0],#1\n" +"#_litmus_P1_2\n\t" +"b.ne 0f\n" +"#_litmus_P1_3\n\t" +"ldr %w[x2],[%[x3]]\n" +"#_litmus_P1_4\n" +"0:\n" +"#END _litmus_P1\n\t" +:[x2]"=&r" (out_1_x2[_i]),[x0]"=&r" (out_1_x0[_i]) +:[x1]"r" (&_a->y[_i]),"[x2]" (-1 ),[x3]"r" (&_a->x[_i]) +:"cc" ,"memory" +); + } + } +mbar (); +return NULL ; +} + +typedef struct { +pm_t *p_mutex; +pb_t *p_barrier; +param_t *_p; +int z_id; +int *cpus; +}zyva_t ; + +#define NT N + +static void *zyva (void *_va) { +zyva_t *_a = (zyva_t *) _va; +param_t *_b = _a->_p; +pb_wait (_a->p_barrier); +pthread_t thread[NT ]; +parg_t parg[N ]; +f_t *fun[] = {&P0 ,&P1 }; +hist_t *hist =alloc_hist (); +ctx_t ctx; + ctx._p = _b; + +init (&ctx); +for (int _p =N -1 ; _p >=0 ; _p--) { + parg[_p].th_id = _p; parg[_p]._a = &ctx; + parg[_p].cpu = &(_a->cpus[0 ]); + } + +for (int n_run =0 ; n_run < _b->max_run ; n_run++) { +if (_b->aff_mode == aff_random) { +pb_wait (_a->p_barrier); +if (_a->z_id ==0 )perm_prefix_ints (&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus); +pb_wait (_a->p_barrier); + }else { + } +if (_b->verbose>1 )fprintf (stderr,"Run %i of %i\r" , n_run, _b->max_run); +reinit (&ctx); +if (_b->do_change)perm_funs (&ctx.seed,fun,N ); +for (int _p =NT -1 ; _p >=0 ; _p--) { +launch (&thread[_p],fun[_p],&parg[_p]); + } +if (_b->do_change)perm_threads (&ctx.seed,thread,NT ); +for (int _p =NT -1 ; _p >=0 ; _p--) { +join (&thread[_p]); + } +/* Log final states */ +for (int _i = _b->size_of_test-1 ; _i >=0 ; _i--) { +int _out_1_x0_i = ctx.out_1_x0[_i]; +int _out_1_x2_i = ctx.out_1_x2[_i]; +outcome_t o; +int cond; + + cond =final_ok (final_cond (_out_1_x0_i,_out_1_x2_i)); + o[out_1_x0_f] = _out_1_x0_i; + o[out_1_x2_f] = _out_1_x2_i; +add_outcome (hist,1 ,o,cond); +if (cond) { hist->n_pos++; }else { hist->n_neg++; } + } + } + +finalize (&ctx); +return hist; +} + +#define ENOUGH 10 + +static int postlude (FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) { +fprintf (out,"Test ARMARM00 Forbidden\n" ); +fprintf (out,"Histogram (%i states)\n" ,finals_outs (hist->outcomes)); +just_dump_outcomes (out,hist); +int cond = p_true ==0 ; +fprintf (out,"%s\n" ,cond?"Ok" :"No" ); +fprintf (out,"\nWitnesses\n" ); +fprintf (out,"Positive: %" PCTR ", Negative: %" PCTR "\n" ,p_false,p_true); +fprintf (out,"Condition ~exists (1:X0=1 /\\ 1:X2=0) is %svalidated\n" ,cond ?"" :"NOT " ); +fprintf (out,"Hash=8b05db686103708c048891dddc96e8bd\n" ); +fprintf (out,"Com=Rf Fr\n" ); +fprintf (out,"Orig=PodWWPL RfeLA PodRRAP Fre\n" ); +count_t cond_true = p_true; +count_t cond_false = p_false; +fprintf (out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n" ,!cond_true ?"Never" : !cond_false ?"Always" :"Sometimes" ,cond_true,cond_false); +if (p_true >0 ) { + } +fprintf (out,"Time ARMARM00 %.2f\n" ,total /1000000.0 ); +fflush (out); +return cond; +} + +static int run (cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) { +tsc_t start =timeofday (); +param_t prm ; +/* Set some parameters */ + prm.verbose = cmd->verbose; + prm.size_of_test = cmd->size_of_test; + prm.max_run = cmd->max_run; + prm.stride = cmd->stride; + prm.do_change =1 ; +if (cmd->fix) prm.do_change =0 ; +/* Computes number of test concurrent instances */ +int n_avail = cmd->avail >0 ? cmd->avail : cmd->aff_cpus->sz; +if (n_avail > cmd->aff_cpus->sz)log_error ("Warning: avail=%i, available=%i\n" ,n_avail, cmd->aff_cpus->sz); +int n_exe; +if (cmd->n_exe >0 ) { + n_exe = cmd->n_exe; + }else { + n_exe = n_avail <N ?1 : n_avail /N ; + } +/* Set affinity parameters */ +cpus_t *all_cpus = cmd->aff_cpus; +int aff_cpus_sz = cmd->aff_mode == aff_random ?max (all_cpus->sz,N *n_exe) :N *n_exe; +int aff_cpus[aff_cpus_sz]; + prm.aff_mode = cmd->aff_mode; + prm.ncpus = aff_cpus_sz; + prm.ncpus_used =N *n_exe; +/* Show parameters to user */ +if (prm.verbose) { +log_error ("ARMARM00: n=%i, r=%i, s=%i" ,n_exe,prm.max_run,prm.size_of_test); +log_error (", st=%i" ,prm.stride); +if (cmd->aff_mode == aff_incr) { +log_error (", i=%i" ,cmd->aff_incr); + }else if (cmd->aff_mode == aff_random) { +log_error (", +ra" ); + }else if (cmd->aff_mode == aff_custom) { +log_error (", +ca" ); + }else if (cmd->aff_mode == aff_scan) { +log_error (", +sa" ); + } +log_error (", p='" ); +cpus_dump (stderr,cmd->aff_cpus); +log_error ("'" ); +log_error ("\n" ); + } +if (cmd->aff_mode == aff_random) { +for (int k =0 ; k < aff_cpus_sz ; k++) { + aff_cpus[k] = all_cpus->cpu[k % all_cpus->sz]; + } + } +hist_t *hist =NULL ; +int n_th = n_exe-1 ; +pthread_t th[n_th]; +zyva_t zarg[n_exe]; +pm_t *p_mutex =pm_create (); +pb_t *p_barrier =pb_create (n_exe); +int next_cpu =0 ; +int delta = cmd->aff_incr; +if (delta <=0 ) { +for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] =-1 ; + delta =1 ; + }else { + delta %= all_cpus->sz; + } +int start_scan=0 , max_start=gcd (delta,all_cpus->sz); +int *aff_p = aff_cpus; +for (int k=0 ; k < n_exe ; k++) { +zyva_t *p = &zarg[k]; + p->_p = &prm; + p->p_mutex = p_mutex; p->p_barrier = p_barrier; + p->z_id = k; + p->cpus = aff_p; +if (cmd->aff_mode != aff_incr) { + aff_p +=N ; + }else { +for (int i=0 ; i <N ; i++) { + *aff_p = all_cpus->cpu[next_cpu]; aff_p++; + next_cpu += delta; next_cpu %= all_cpus->sz; +if (next_cpu == start_scan) { + start_scan++ ; start_scan %= max_start; + next_cpu = start_scan; + } + } + } +if (k < n_th) { +launch (&th[k],zyva,p); + }else { + hist = (hist_t *)zyva (p); + } + } + +count_t n_outs = prm.size_of_test; n_outs *= prm.max_run; +for (int k=0 ; k < n_th ; k++) { +hist_t *hk = (hist_t *)join (&th[k]); +if (sum_hist (hk) != n_outs || hk->n_pos + hk->n_neg != n_outs) { +fatal ("ARMARM00, sum_hist" ); + } +merge_hists (hist,hk); +free_hist (hk); + } +cpus_free (all_cpus); +tsc_t total =timeofday () - start; +pm_free (p_mutex); +pb_free (p_barrier); + + n_outs *= n_exe ; +if (sum_hist (hist) != n_outs || hist->n_pos + hist->n_neg != n_outs) { +fatal ("ARMARM00, sum_hist" ) ; + } +count_t p_true = hist->n_pos, p_false = hist->n_neg; +int cond =postlude (out,cmd,hist,p_true,p_false,total); +free_hist (hist); +return cond; +} + + +int main (int argc,char **argv) { +cpus_t *def_all_cpus =read_force_affinity (AVAIL ,0 ); +if (def_all_cpus->sz <N ) { +cpus_free (def_all_cpus); +return EXIT_SUCCESS ; + } +cmd_t def = {0 ,NUMBER_OF_RUN ,SIZE_OF_TEST ,STRIDE ,AVAIL ,0 ,0 , aff_incr,0 ,0 ,AFF_INCR , def_all_cpus,NULL ,-1 ,MAX_LOOP ,NULL ,NULL ,-1 ,-1 ,-1 ,0 ,0 }; +cmd_t cmd = def; +parse_cmd (argc,argv,&def,&cmd); +int cond =run (&cmd,def_all_cpus,stdout); +if (def_all_cpus != cmd.aff_cpus)cpus_free (def_all_cpus); +return cond ?EXIT_SUCCESS :EXIT_FAILURE ; +}
tests/tcg/aarch64/litmus/ARMARM01.c new file +504 -0
504 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM02.c new file +571 -0
571 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM03.c new file +498 -0
498 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM04+BIS.c new file +556 -0
556 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM04+TER.c new file +538 -0
370 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM04.c new file +556 -0
556 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM05.c new file +553 -0
553 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM06+AP+AA.c new file +581 -0
581 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM06+AP+AP.c new file +581 -0
581 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM06.c new file +581 -0
581 lines not on this page · raw message
tests/tcg/aarch64/litmus/ARMARM07+SAL.c new file +497 -0
497 lines not on this page · raw message
tests/tcg/aarch64/litmus/Makefile new file +53 -0
53 lines not on this page · raw message
tests/tcg/aarch64/litmus/README.txt new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/aarch64/litmus/affinity.c new file +159 -0
159 lines not on this page · raw message
tests/tcg/aarch64/litmus/affinity.h new file +34 -0
Lines of this file are not shown. View the raw message.
tests/tcg/aarch64/litmus/comp.sh new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/aarch64/litmus/litmus_rand.c new file +64 -0
64 lines not on this page · raw message
tests/tcg/aarch64/litmus/litmus_rand.h new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/aarch64/litmus/outs.c new file +148 -0
148 lines not on this page · raw message
tests/tcg/aarch64/litmus/outs.h new file +49 -0
49 lines not on this page · raw message
tests/tcg/aarch64/litmus/run.sh new file +378 -0
378 lines not on this page · raw message
tests/tcg/aarch64/litmus/show.awk new file +2 -0
Lines of this file are not shown. View the raw message.
tests/tcg/aarch64/litmus/utils.c new file +1148 -0
1,148 lines not on this page · raw message
tests/tcg/aarch64/litmus/utils.h new file +275 -0
275 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.9.3
Part of the diff is not shown here. View the raw message.
PATCH v2 3/3 travis: Enable litmus tests
In reply to Pranith KumarEnable running the litmus tests on travis.
--- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+)
.travis.yml +8 -0
@@ -97,5 +97,13 @@ matrix: before_install: - sudo apt-get update -qq - sudo apt-get build-dep -qq qemu + - sudo apt-get install gcc-aarch64-linux-gnu - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ - git submodule update --init --recursive + after_success: + - cd tests/tcg/i386/litmus + - export QEMU=../../../../x86_64-linux-user/qemu-x86_64 + - make tests + - cd ../../aarch64/litmus + - export QEMU=../../../../aarch64-linux-user/qemu-aarch64 + - make tests
Signature · 1 line
2.9.3
Your series seems to have some coding style problems. See output below for more information:
Hi,
Your series seems to have some coding style problems. See output below for more information:
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH v2 0/3] Add litmus tests for MTTCG consistency tests
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
# Useful git options
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
fa48cbf travis: Enable litmus tests
863855b tests/tcg: Add aarch64 litmus tests
c0bb07a tests/tcg: Add i386 litmus test
=== OUTPUT BEGIN ===
Checking PATCH 1/3: tests/tcg: Add i386 litmus test...
ERROR: trailing whitespace
#65: FILE: tests/tcg/i386/litmus/README.txt:1:
+Tests produced by litmus for architecture X86 on linux $
ERROR: space required after that ',' (ctx:VxV)
#125: FILE: tests/tcg/i386/litmus/SAL.c:33:
+ int size_of_test,max_run;
^ERROR: open brace '{' following function declarations go on the next line #134: FILE: tests/tcg/i386/litmus/SAL.c:42:
+inline static void mbar(void) {
ERROR: storage class should be at the beginning of the declaration #134: FILE: tests/tcg/i386/litmus/SAL.c:42:
+inline static void mbar(void) {
ERROR: inline keyword should sit between storage class and type #134: FILE: tests/tcg/i386/litmus/SAL.c:42:
+inline static void mbar(void) {
ERROR: spaces required around that '::' (ctx:WxO)
#135: FILE: tests/tcg/i386/litmus/SAL.c:43:
+ asm __volatile__ ("mfence" ::: "memory");
^ERROR: spaces required around that ':' (ctx:OxW)
#135: FILE: tests/tcg/i386/litmus/SAL.c:43:
+ asm __volatile__ ("mfence" ::: "memory");
^WARNING: line over 80 characters
#139: FILE: tests/tcg/i386/litmus/SAL.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: open brace '{' following function declarations go on the next line #139: FILE: tests/tcg/i386/litmus/SAL.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #139: FILE: tests/tcg/i386/litmus/SAL.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: storage class should be at the beginning of the declaration #139: FILE: tests/tcg/i386/litmus/SAL.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: inline keyword should sit between storage class and type
#139: FILE: tests/tcg/i386/litmus/SAL.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: trailing statements should be on next line
#143: FILE: tests/tcg/i386/litmus/SAL.c:51:
+ while (*b == 0) ;
ERROR: braces {} are necessary even for single statement blocks #143: FILE: tests/tcg/i386/litmus/SAL.c:51:
+ while (*b == 0) ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #162: FILE: tests/tcg/i386/litmus/SAL.c:70:
+ int volatile *barrier;
ERROR: open brace '{' following function declarations go on the next line #169: FILE: tests/tcg/i386/litmus/SAL.c:77:
+inline static int final_cond(int _out_0_eax,int _out_1_eax) {
ERROR: space required after that ',' (ctx:VxV)
#169: FILE: tests/tcg/i386/litmus/SAL.c:77:
+inline static int final_cond(int _out_0_eax,int _out_1_eax) {
^ERROR: storage class should be at the beginning of the declaration #169: FILE: tests/tcg/i386/litmus/SAL.c:77:
+inline static int final_cond(int _out_0_eax,int _out_1_eax) {
ERROR: inline keyword should sit between storage class and type #169: FILE: tests/tcg/i386/litmus/SAL.c:77:
+inline static int final_cond(int _out_0_eax,int _out_1_eax) {
ERROR: open brace '{' following function declarations go on the next line #183: FILE: tests/tcg/i386/litmus/SAL.c:91:
+inline static int final_ok(int cond) {
ERROR: storage class should be at the beginning of the declaration #183: FILE: tests/tcg/i386/litmus/SAL.c:91:
+inline static int final_ok(int cond) {
ERROR: inline keyword should sit between storage class and type #183: FILE: tests/tcg/i386/litmus/SAL.c:91:
+inline static int final_ok(int cond) {
ERROR: do not initialise statics to 0 or NULL
#193: FILE: tests/tcg/i386/litmus/SAL.c:101:
+static const int out_0_eax_f = 0 ;
ERROR: space required after that ',' (ctx:VxV)
#199: FILE: tests/tcg/i386/litmus/SAL.c:107:
+ count_t n_pos,n_neg ;
^ERROR: open brace '{' following function declarations go on the next line #202: FILE: tests/tcg/i386/litmus/SAL.c:110:
+static hist_t *alloc_hist(void) {
ERROR: open brace '{' following function declarations go on the next line #209: FILE: tests/tcg/i386/litmus/SAL.c:117:
+static void free_hist(hist_t *h) {
ERROR: open brace '{' following function declarations go on the next line #214: FILE: tests/tcg/i386/litmus/SAL.c:122:
+static void add_outcome(hist_t *h, count_t v, outcome_t o, int show) {
ERROR: space required after that ',' (ctx:VxV)
#215: FILE: tests/tcg/i386/litmus/SAL.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV)
#215: FILE: tests/tcg/i386/litmus/SAL.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV)
#215: FILE: tests/tcg/i386/litmus/SAL.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV)
#215: FILE: tests/tcg/i386/litmus/SAL.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: open brace '{' following function declarations go on the next line #218: FILE: tests/tcg/i386/litmus/SAL.c:126:
+static void merge_hists(hist_t *h0, hist_t *h1) {
ERROR: space required after that ',' (ctx:VxV)
#221: FILE: tests/tcg/i386/litmus/SAL.c:129:
+ h0->outcomes = merge_outs(h0->outcomes,h1->outcomes,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV)
#221: FILE: tests/tcg/i386/litmus/SAL.c:129:
+ h0->outcomes = merge_outs(h0->outcomes,h1->outcomes,NOUTS) ;
^ERROR: open brace '{' following function declarations go on the next line #224: FILE: tests/tcg/i386/litmus/SAL.c:132:
+static count_t sum_hist(hist_t *h) {
ERROR: open brace '{' following function declarations go on the next line #229: FILE: tests/tcg/i386/litmus/SAL.c:137:
+static void do_dump_outcome(FILE *fhist, intmax_t *o, count_t c, int show) {
ERROR: line over 90 characters
#230: FILE: tests/tcg/i386/litmus/SAL.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>0:EAX=%i; 1:EAX=%i;\n",c,show ? '*' : ':',(int)o[out_0_eax_f],(int)o[out_1_eax_f]);
ERROR: space required after that ',' (ctx:VxV)
#230: FILE: tests/tcg/i386/litmus/SAL.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>0:EAX=%i; 1:EAX=%i;\n",c,show ? '*' : ':',(int)o[out_0_eax_f],(int)o[out_1_eax_f]);
^ERROR: space required after that ',' (ctx:VxV)
#230: FILE: tests/tcg/i386/litmus/SAL.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>0:EAX=%i; 1:EAX=%i;\n",c,show ? '*' : ':',(int)o[out_0_eax_f],(int)o[out_1_eax_f]);
^ERROR: space required after that ',' (ctx:VxV)
#230: FILE: tests/tcg/i386/litmus/SAL.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>0:EAX=%i; 1:EAX=%i;\n",c,show ? '*' : ':',(int)o[out_0_eax_f],(int)o[out_1_eax_f]);
^ERROR: space required after that ',' (ctx:VxV)
#230: FILE: tests/tcg/i386/litmus/SAL.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>0:EAX=%i; 1:EAX=%i;\n",c,show ? '*' : ':',(int)o[out_0_eax_f],(int)o[out_1_eax_f]);
^ERROR: space required after that ',' (ctx:VxV)
#230: FILE: tests/tcg/i386/litmus/SAL.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>0:EAX=%i; 1:EAX=%i;\n",c,show ? '*' : ':',(int)o[out_0_eax_f],(int)o[out_1_eax_f]);
^ERROR: open brace '{' following function declarations go on the next line #233: FILE: tests/tcg/i386/litmus/SAL.c:141:
+static void just_dump_outcomes(FILE *fhist, hist_t *h) {
ERROR: space required after that ',' (ctx:VxV)
#235: FILE: tests/tcg/i386/litmus/SAL.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV)
#235: FILE: tests/tcg/i386/litmus/SAL.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV)
#235: FILE: tests/tcg/i386/litmus/SAL.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV)
#235: FILE: tests/tcg/i386/litmus/SAL.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: open brace '{' following function declarations go on the next line #242: FILE: tests/tcg/i386/litmus/SAL.c:150:
+static void init(ctx_t *_a) {
ERROR: spaces required around that '*' (ctx:VxV)
#246: FILE: tests/tcg/i386/litmus/SAL.c:154:
+ _a->out_0_eax = malloc_check(size_of_test*sizeof(*(_a->out_0_eax)));
^ERROR: spaces required around that '*' (ctx:VxV)
#247: FILE: tests/tcg/i386/litmus/SAL.c:155:
+ _a->out_1_eax = malloc_check(size_of_test*sizeof(*(_a->out_1_eax)));
^ERROR: spaces required around that '*' (ctx:VxV)
#248: FILE: tests/tcg/i386/litmus/SAL.c:156:
+ _a->y = malloc_check(size_of_test*sizeof(*(_a->y)));
^ERROR: spaces required around that '*' (ctx:VxV)
#249: FILE: tests/tcg/i386/litmus/SAL.c:157:
+ _a->x = malloc_check(size_of_test*sizeof(*(_a->x)));
^ERROR: spaces required around that '*' (ctx:VxV)
#251: FILE: tests/tcg/i386/litmus/SAL.c:159:
+ _a->barrier = malloc_check(size_of_test*sizeof(*(_a->barrier)));
^ERROR: open brace '{' following function declarations go on the next line #254: FILE: tests/tcg/i386/litmus/SAL.c:162:
+static void finalize(ctx_t *_a) {
ERROR: open brace '{' following function declarations go on the next line #263: FILE: tests/tcg/i386/litmus/SAL.c:171:
+static void reinit(ctx_t *_a) {
ERROR: spaces required around that '-' (ctx:VxV)
#264: FILE: tests/tcg/i386/litmus/SAL.c:172:
+ for (int _i = _a->_p->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: open brace '{' following function declarations go on the next line #277: FILE: tests/tcg/i386/litmus/SAL.c:185:
+static void check_globals(ctx_t *_a) {
ERROR: spaces required around that '-' (ctx:VxV)
#280: FILE: tests/tcg/i386/litmus/SAL.c:188:
+ for (int _i = _a->_p->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: trailing statements should be on next line
#281: FILE: tests/tcg/i386/litmus/SAL.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("SAL, check_globals failed");
ERROR: braces {} are necessary for all arms of this statement #281: FILE: tests/tcg/i386/litmus/SAL.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("SAL, check_globals failed");
[...]
ERROR: trailing statements should be on next line
#282: FILE: tests/tcg/i386/litmus/SAL.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("SAL, check_globals failed");
ERROR: braces {} are necessary for all arms of this statement #282: FILE: tests/tcg/i386/litmus/SAL.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("SAL, check_globals failed");
[...]
ERROR: open brace '{' following function declarations go on the next line #301: FILE: tests/tcg/i386/litmus/SAL.c:209:
+static void *P0(void *_vb) {
ERROR: space required after that ',' (ctx:VxV)
#306: FILE: tests/tcg/i386/litmus/SAL.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"SAL");
^ERROR: space required after that ',' (ctx:VxV)
#306: FILE: tests/tcg/i386/litmus/SAL.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"SAL");
^ERROR: space required after that ',' (ctx:VxV)
#306: FILE: tests/tcg/i386/litmus/SAL.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"SAL");
^ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #309: FILE: tests/tcg/i386/litmus/SAL.c:217:
+ int volatile *barrier = _a->barrier;
ERROR: suspect code indent for conditional statements (4, 6) #314: FILE: tests/tcg/i386/litmus/SAL.c:222:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
+ barrier_wait(_th_id,_i,&barrier[_i]);
ERROR: spaces required around that '-' (ctx:VxV)
#314: FILE: tests/tcg/i386/litmus/SAL.c:222:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
^ERROR: space required after that ',' (ctx:VxV)
#315: FILE: tests/tcg/i386/litmus/SAL.c:223:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required after that ',' (ctx:VxO)
#315: FILE: tests/tcg/i386/litmus/SAL.c:223:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required before that '&' (ctx:OxV)
#315: FILE: tests/tcg/i386/litmus/SAL.c:223:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: spaces required around that ':' (ctx:ExV)
#326: FILE: tests/tcg/i386/litmus/SAL.c:234:
+:[x] "=m" (_a->x[_i]),[y] "=m" (_a->y[_i]),[eax] "=&a" (out_0_eax[_i])
^
ERROR: space required after that ',' (ctx:VxV)
#326: FILE: tests/tcg/i386/litmus/SAL.c:234:
+:[x] "=m" (_a->x[_i]),[y] "=m" (_a->y[_i]),[eax] "=&a" (out_0_eax[_i])
^
ERROR: space required after that ',' (ctx:VxV)
#326: FILE: tests/tcg/i386/litmus/SAL.c:234:
+:[x] "=m" (_a->x[_i]),[y] "=m" (_a->y[_i]),[eax] "=&a" (out_0_eax[_i])
^
ERROR: spaces required around that ':' (ctx:ExV)
#328: FILE: tests/tcg/i386/litmus/SAL.c:236:
+:"cc","memory"
^
ERROR: space required after that ',' (ctx:VxV)
#328: FILE: tests/tcg/i386/litmus/SAL.c:236:
+:"cc","memory"
^
ERROR: open brace '{' following function declarations go on the next line #336: FILE: tests/tcg/i386/litmus/SAL.c:244:
+static void *P1(void *_vb) {
ERROR: space required after that ',' (ctx:VxV)
#341: FILE: tests/tcg/i386/litmus/SAL.c:249:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"SAL");
^ERROR: space required after that ',' (ctx:VxV)
#341: FILE: tests/tcg/i386/litmus/SAL.c:249:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"SAL");
^ERROR: space required after that ',' (ctx:VxV)
#341: FILE: tests/tcg/i386/litmus/SAL.c:249:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"SAL");
^ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #344: FILE: tests/tcg/i386/litmus/SAL.c:252:
+ int volatile *barrier = _a->barrier;
ERROR: suspect code indent for conditional statements (4, 6) #349: FILE: tests/tcg/i386/litmus/SAL.c:257:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
+ barrier_wait(_th_id,_i,&barrier[_i]);
ERROR: spaces required around that '-' (ctx:VxV)
#349: FILE: tests/tcg/i386/litmus/SAL.c:257:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
^ERROR: space required after that ',' (ctx:VxV)
#350: FILE: tests/tcg/i386/litmus/SAL.c:258:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required after that ',' (ctx:VxO)
#350: FILE: tests/tcg/i386/litmus/SAL.c:258:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required before that '&' (ctx:OxV)
#350: FILE: tests/tcg/i386/litmus/SAL.c:258:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: spaces required around that ':' (ctx:ExV)
#361: FILE: tests/tcg/i386/litmus/SAL.c:269:
+:[x] "=m" (_a->x[_i]),[y] "=m" (_a->y[_i]),[eax] "=&a" (out_1_eax[_i])
^
ERROR: space required after that ',' (ctx:VxV)
#361: FILE: tests/tcg/i386/litmus/SAL.c:269:
+:[x] "=m" (_a->x[_i]),[y] "=m" (_a->y[_i]),[eax] "=&a" (out_1_eax[_i])
^
ERROR: space required after that ',' (ctx:VxV)
#361: FILE: tests/tcg/i386/litmus/SAL.c:269:
+:[x] "=m" (_a->x[_i]),[y] "=m" (_a->y[_i]),[eax] "=&a" (out_1_eax[_i])
^
ERROR: spaces required around that ':' (ctx:ExV)
#363: FILE: tests/tcg/i386/litmus/SAL.c:271:
+:"cc","memory"
^
ERROR: space required after that ',' (ctx:VxV)
#363: FILE: tests/tcg/i386/litmus/SAL.c:271:
+:"cc","memory"
^
ERROR: open brace '{' following function declarations go on the next line #381: FILE: tests/tcg/i386/litmus/SAL.c:289:
+static void *zyva(void *_va) {
ERROR: space required after that ',' (ctx:VxO)
#387: FILE: tests/tcg/i386/litmus/SAL.c:295:
+ f_t *fun[] = {&P0,&P1};
^ERROR: space required before that '&' (ctx:OxV)
#387: FILE: tests/tcg/i386/litmus/SAL.c:295:
+ f_t *fun[] = {&P0,&P1};
^ERROR: spaces required around that '-' (ctx:VxV)
#393: FILE: tests/tcg/i386/litmus/SAL.c:301:
+ for (int _p = N-1 ; _p >= 0 ; _p--) {
^ERROR: suspect code indent for conditional statements (4, 6) #399: FILE: tests/tcg/i386/litmus/SAL.c:307:
+ if (_b->aff_mode == aff_random) {
+ pb_wait(_a->p_barrier);
WARNING: line over 80 characters
#401: FILE: tests/tcg/i386/litmus/SAL.c:309:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
ERROR: space required after that ',' (ctx:VxV)
#401: FILE: tests/tcg/i386/litmus/SAL.c:309:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: space required after that ',' (ctx:VxV)
#401: FILE: tests/tcg/i386/litmus/SAL.c:309:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: space required after that ',' (ctx:VxV)
#401: FILE: tests/tcg/i386/litmus/SAL.c:309:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: trailing statements should be on next line
#401: FILE: tests/tcg/i386/litmus/SAL.c:309:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
ERROR: braces {} are necessary for all arms of this statement #401: FILE: tests/tcg/i386/litmus/SAL.c:309:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
[...]
ERROR: spaces required around that '>' (ctx:VxV)
#405: FILE: tests/tcg/i386/litmus/SAL.c:313:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
^ERROR: space required after that ',' (ctx:VxV)
#405: FILE: tests/tcg/i386/litmus/SAL.c:313:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
^ERROR: trailing statements should be on next line
#405: FILE: tests/tcg/i386/litmus/SAL.c:313:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
ERROR: braces {} are necessary for all arms of this statement #405: FILE: tests/tcg/i386/litmus/SAL.c:313:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
[...]
ERROR: space required after that ',' (ctx:VxV)
#407: FILE: tests/tcg/i386/litmus/SAL.c:315:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
^ERROR: space required after that ',' (ctx:VxV)
#407: FILE: tests/tcg/i386/litmus/SAL.c:315:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
^ERROR: trailing statements should be on next line
#407: FILE: tests/tcg/i386/litmus/SAL.c:315:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
ERROR: braces {} are necessary for all arms of this statement #407: FILE: tests/tcg/i386/litmus/SAL.c:315:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
[...]
ERROR: suspect code indent for conditional statements (4, 6) #408: FILE: tests/tcg/i386/litmus/SAL.c:316:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
+ launch(&thread[_p],fun[_p],&parg[_p]);
ERROR: spaces required around that '-' (ctx:VxV)
#408: FILE: tests/tcg/i386/litmus/SAL.c:316:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
^ERROR: space required after that ',' (ctx:VxV)
#409: FILE: tests/tcg/i386/litmus/SAL.c:317:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required after that ',' (ctx:VxO)
#409: FILE: tests/tcg/i386/litmus/SAL.c:317:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required before that '&' (ctx:OxV)
#409: FILE: tests/tcg/i386/litmus/SAL.c:317:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required after that ',' (ctx:VxV)
#411: FILE: tests/tcg/i386/litmus/SAL.c:319:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
^ERROR: space required after that ',' (ctx:VxV)
#411: FILE: tests/tcg/i386/litmus/SAL.c:319:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
^ERROR: trailing statements should be on next line
#411: FILE: tests/tcg/i386/litmus/SAL.c:319:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
ERROR: braces {} are necessary for all arms of this statement #411: FILE: tests/tcg/i386/litmus/SAL.c:319:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
[...]
ERROR: suspect code indent for conditional statements (4, 6) #412: FILE: tests/tcg/i386/litmus/SAL.c:320:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
+ join(&thread[_p]);
ERROR: spaces required around that '-' (ctx:VxV)
#412: FILE: tests/tcg/i386/litmus/SAL.c:320:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
^ERROR: suspect code indent for conditional statements (4, 6) #416: FILE: tests/tcg/i386/litmus/SAL.c:324:
+ for (int _i = _b->size_of_test-1 ; _i >= 0 ; _i--) {
+ int _out_0_eax_i = ctx.out_0_eax[_i];
ERROR: spaces required around that '-' (ctx:VxV)
#416: FILE: tests/tcg/i386/litmus/SAL.c:324:
+ for (int _i = _b->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: space required after that ',' (ctx:VxV)
#422: FILE: tests/tcg/i386/litmus/SAL.c:330:
+ cond = final_ok(final_cond(_out_0_eax_i,_out_1_eax_i));
^ERROR: space required after that ',' (ctx:VxV)
#425: FILE: tests/tcg/i386/litmus/SAL.c:333:
+ add_outcome(hist,1,o,cond);
^ERROR: space required after that ',' (ctx:VxV)
#425: FILE: tests/tcg/i386/litmus/SAL.c:333:
+ add_outcome(hist,1,o,cond);
^ERROR: space required after that ',' (ctx:VxV)
#425: FILE: tests/tcg/i386/litmus/SAL.c:333:
+ add_outcome(hist,1,o,cond);
^ERROR: trailing statements should be on next line
#426: FILE: tests/tcg/i386/litmus/SAL.c:334:
+ if (cond) { hist->n_pos++; } else { hist->n_neg++; }
ERROR: line over 90 characters
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
ERROR: open brace '{' following function declarations go on the next line
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
ERROR: space required after that ',' (ctx:VxV)
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV)
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV)
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV)
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV)
#436: FILE: tests/tcg/i386/litmus/SAL.c:344:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV)
#437: FILE: tests/tcg/i386/litmus/SAL.c:345:
+ fprintf(out,"Test SAL Forbidden\n");
^ERROR: space required after that ',' (ctx:VxV)
#438: FILE: tests/tcg/i386/litmus/SAL.c:346:
+ fprintf(out,"Histogram (%i states)\n",finals_outs(hist->outcomes));
^ERROR: space required after that ',' (ctx:VxV)
#438: FILE: tests/tcg/i386/litmus/SAL.c:346:
+ fprintf(out,"Histogram (%i states)\n",finals_outs(hist->outcomes));
^ERROR: space required after that ',' (ctx:VxV)
#439: FILE: tests/tcg/i386/litmus/SAL.c:347:
+ just_dump_outcomes(out,hist);
^ERROR: space required after that ',' (ctx:VxV)
#441: FILE: tests/tcg/i386/litmus/SAL.c:349:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: space required after that ',' (ctx:VxV)
#441: FILE: tests/tcg/i386/litmus/SAL.c:349:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: spaces required around that '?' (ctx:VxV)
#441: FILE: tests/tcg/i386/litmus/SAL.c:349:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: spaces required around that ':' (ctx:VxV)
#441: FILE: tests/tcg/i386/litmus/SAL.c:349:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: space required after that ',' (ctx:VxV)
#442: FILE: tests/tcg/i386/litmus/SAL.c:350:
+ fprintf(out,"\nWitnesses\n");
^ERROR: space required after that ',' (ctx:VxV)
#443: FILE: tests/tcg/i386/litmus/SAL.c:351:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: space required after that ',' (ctx:VxV)
#443: FILE: tests/tcg/i386/litmus/SAL.c:351:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: space required after that ',' (ctx:VxV)
#443: FILE: tests/tcg/i386/litmus/SAL.c:351:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: line over 90 characters
#444: FILE: tests/tcg/i386/litmus/SAL.c:352:
+ fprintf(out,"Condition ~exists (0:EAX=0 /\\ 1:EAX=0) is %svalidated\n",cond ? "" : "NOT ");
ERROR: space required after that ',' (ctx:VxV)
#444: FILE: tests/tcg/i386/litmus/SAL.c:352:
+ fprintf(out,"Condition ~exists (0:EAX=0 /\\ 1:EAX=0) is %svalidated\n",cond ? "" : "NOT ");
^ERROR: space required after that ',' (ctx:VxV)
#444: FILE: tests/tcg/i386/litmus/SAL.c:352:
+ fprintf(out,"Condition ~exists (0:EAX=0 /\\ 1:EAX=0) is %svalidated\n",cond ? "" : "NOT ");
^ERROR: space required after that ',' (ctx:VxV)
#445: FILE: tests/tcg/i386/litmus/SAL.c:353:
+ fprintf(out,"Hash=d8f89591b2adad11d42d3eeb22d212c6\n");
^ERROR: line over 90 characters
#448: FILE: tests/tcg/i386/litmus/SAL.c:356:
+ fprintf(out,"Observation SAL %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
ERROR: space required after that ',' (ctx:VxV)
#448: FILE: tests/tcg/i386/litmus/SAL.c:356:
+ fprintf(out,"Observation SAL %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxO)
#448: FILE: tests/tcg/i386/litmus/SAL.c:356:
+ fprintf(out,"Observation SAL %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required before that '!' (ctx:OxV)
#448: FILE: tests/tcg/i386/litmus/SAL.c:356:
+ fprintf(out,"Observation SAL %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxV)
#448: FILE: tests/tcg/i386/litmus/SAL.c:356:
+ fprintf(out,"Observation SAL %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxV)
#448: FILE: tests/tcg/i386/litmus/SAL.c:356:
+ fprintf(out,"Observation SAL %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: suspect code indent for conditional statements (2, 2) #449: FILE: tests/tcg/i386/litmus/SAL.c:357:
+ if (p_true > 0) {
+ }
ERROR: space required after that ',' (ctx:VxV)
#451: FILE: tests/tcg/i386/litmus/SAL.c:359:
+ fprintf(out,"Time SAL %.2f\n",total / 1000000.0);
^ERROR: space required after that ',' (ctx:VxV)
#451: FILE: tests/tcg/i386/litmus/SAL.c:359:
+ fprintf(out,"Time SAL %.2f\n",total / 1000000.0);
^ERROR: open brace '{' following function declarations go on the next line #456: FILE: tests/tcg/i386/litmus/SAL.c:364:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
ERROR: space required after that ',' (ctx:VxV)
#456: FILE: tests/tcg/i386/litmus/SAL.c:364:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
^ERROR: space required after that ',' (ctx:VxV)
#456: FILE: tests/tcg/i386/litmus/SAL.c:364:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
^ERROR: trailing statements should be on next line
#465: FILE: tests/tcg/i386/litmus/SAL.c:373:
+ if (cmd->fix) prm.do_change = 0;
ERROR: braces {} are necessary for all arms of this statement #465: FILE: tests/tcg/i386/litmus/SAL.c:373:
+ if (cmd->fix) prm.do_change = 0;
[...]
ERROR: line over 90 characters
#468: FILE: tests/tcg/i386/litmus/SAL.c:376:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
ERROR: space required after that ',' (ctx:VxV)
#468: FILE: tests/tcg/i386/litmus/SAL.c:376:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
^ERROR: trailing statements should be on next line
#468: FILE: tests/tcg/i386/litmus/SAL.c:376:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
ERROR: braces {} are necessary for all arms of this statement
#468: FILE: tests/tcg/i386/litmus/SAL.c:376:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz); [...]
WARNING: line over 80 characters
#477: FILE: tests/tcg/i386/litmus/SAL.c:385:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
ERROR: space required after that ',' (ctx:VxV)
#477: FILE: tests/tcg/i386/litmus/SAL.c:385:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV)
#477: FILE: tests/tcg/i386/litmus/SAL.c:385:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV)
#477: FILE: tests/tcg/i386/litmus/SAL.c:385:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV)
#481: FILE: tests/tcg/i386/litmus/SAL.c:389:
+ prm.ncpus_used = N*n_exe;
^ERROR: space required after that ',' (ctx:VxV)
#484: FILE: tests/tcg/i386/litmus/SAL.c:392:
+ log_error( "SAL: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space required after that ',' (ctx:VxV)
#484: FILE: tests/tcg/i386/litmus/SAL.c:392:
+ log_error( "SAL: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space required after that ',' (ctx:VxV)
#484: FILE: tests/tcg/i386/litmus/SAL.c:392:
+ log_error( "SAL: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space prohibited after that open parenthesis '(' #484: FILE: tests/tcg/i386/litmus/SAL.c:392:
+ log_error( "SAL: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
ERROR: space required after that ',' (ctx:VxV)
#485: FILE: tests/tcg/i386/litmus/SAL.c:393:
+ log_error(", st=%i",prm.stride);
^ERROR: suspect code indent for conditional statements (4, 6) #486: FILE: tests/tcg/i386/litmus/SAL.c:394:
+ if (cmd->aff_mode == aff_incr) {
+ log_error( ", i=%i",cmd->aff_incr);
ERROR: space required after that ',' (ctx:VxV)
#487: FILE: tests/tcg/i386/litmus/SAL.c:395:
+ log_error( ", i=%i",cmd->aff_incr);
^ERROR: space prohibited after that open parenthesis '(' #487: FILE: tests/tcg/i386/litmus/SAL.c:395:
+ log_error( ", i=%i",cmd->aff_incr);
ERROR: suspect code indent for conditional statements (4, 6) #488: FILE: tests/tcg/i386/litmus/SAL.c:396:
+ } else if (cmd->aff_mode == aff_random) {
+ log_error(", +ra");
ERROR: suspect code indent for conditional statements (4, 6) #490: FILE: tests/tcg/i386/litmus/SAL.c:398:
+ } else if (cmd->aff_mode == aff_custom) {
+ log_error(", +ca");
ERROR: suspect code indent for conditional statements (4, 6) #492: FILE: tests/tcg/i386/litmus/SAL.c:400:
+ } else if (cmd->aff_mode == aff_scan) {
+ log_error(", +sa");
ERROR: space required after that ',' (ctx:VxV)
#496: FILE: tests/tcg/i386/litmus/SAL.c:404:
+ cpus_dump(stderr,cmd->aff_cpus);
^ERROR: suspect code indent for conditional statements (4, 6) #501: FILE: tests/tcg/i386/litmus/SAL.c:409:
+ for (int k = 0 ; k < aff_cpus_sz ; k++) {
+ aff_cpus[k] = all_cpus->cpu[k % all_cpus->sz];
ERROR: spaces required around that '-' (ctx:VxV)
#506: FILE: tests/tcg/i386/litmus/SAL.c:414:
+ int n_th = n_exe-1;
^ERROR: spaces required around that '=' (ctx:VxV)
#514: FILE: tests/tcg/i386/litmus/SAL.c:422:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
^ERROR: trailing statements should be on next line
#514: FILE: tests/tcg/i386/litmus/SAL.c:422:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
ERROR: braces {} are necessary even for single statement blocks #514: FILE: tests/tcg/i386/litmus/SAL.c:422:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
ERROR: spaces required around that '=' (ctx:VxV)
#519: FILE: tests/tcg/i386/litmus/SAL.c:427:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: spaces required around that '=' (ctx:VxV)
#519: FILE: tests/tcg/i386/litmus/SAL.c:427:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: space required after that ',' (ctx:VxV)
#519: FILE: tests/tcg/i386/litmus/SAL.c:427:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: spaces required around that '=' (ctx:VxV)
#521: FILE: tests/tcg/i386/litmus/SAL.c:429:
+ for (int k=0 ; k < n_exe ; k++) {
^ERROR: trailing whitespace
#524: FILE: tests/tcg/i386/litmus/SAL.c:432:
+ p->p_mutex = p_mutex; p->p_barrier = p_barrier; $
ERROR: suspect code indent for conditional statements (4, 6) #527: FILE: tests/tcg/i386/litmus/SAL.c:435:
+ if (cmd->aff_mode != aff_incr) {
+ aff_p += N;
ERROR: spaces required around that '=' (ctx:VxV)
#530: FILE: tests/tcg/i386/litmus/SAL.c:438:
+ for (int i=0 ; i < N ; i++) {
^ERROR: suspect code indent for conditional statements (8, 10) #533: FILE: tests/tcg/i386/litmus/SAL.c:441:
+ if (next_cpu == start_scan) {
+ start_scan++ ; start_scan %= max_start;
ERROR: suspect code indent for conditional statements (4, 6) #539: FILE: tests/tcg/i386/litmus/SAL.c:447:
+ if (k < n_th) {
+ launch(&th[k],zyva,p);
ERROR: space required after that ',' (ctx:VxV)
#540: FILE: tests/tcg/i386/litmus/SAL.c:448:
+ launch(&th[k],zyva,p);
^ERROR: space required after that ',' (ctx:VxV)
#540: FILE: tests/tcg/i386/litmus/SAL.c:448:
+ launch(&th[k],zyva,p);
^ERROR: spaces required around that '=' (ctx:VxV)
#547: FILE: tests/tcg/i386/litmus/SAL.c:455:
+ for (int k=0 ; k < n_th ; k++) {
^ERROR: suspect code indent for conditional statements (4, 6) #549: FILE: tests/tcg/i386/litmus/SAL.c:457:
+ if (sum_hist(hk) != n_outs || hk->n_pos + hk->n_neg != n_outs) {
+ fatal("SAL, sum_hist");
ERROR: space required after that ',' (ctx:VxV)
#552: FILE: tests/tcg/i386/litmus/SAL.c:460:
+ merge_hists(hist,hk);
^ERROR: space required after that ',' (ctx:VxV)
#565: FILE: tests/tcg/i386/litmus/SAL.c:473:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV)
#565: FILE: tests/tcg/i386/litmus/SAL.c:473:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV)
#565: FILE: tests/tcg/i386/litmus/SAL.c:473:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV)
#565: FILE: tests/tcg/i386/litmus/SAL.c:473:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV)
#565: FILE: tests/tcg/i386/litmus/SAL.c:473:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: open brace '{' following function declarations go on the next line #571: FILE: tests/tcg/i386/litmus/SAL.c:479:
+int main(int argc, char **argv) {
ERROR: space required after that ',' (ctx:VxV)
#572: FILE: tests/tcg/i386/litmus/SAL.c:480:
+ cpus_t *def_all_cpus = read_force_affinity(AVAIL,0);
^ERROR: line over 90 characters
#577: FILE: tests/tcg/i386/litmus/SAL.c:485:
+ cmd_t def = { 0, NUMBER_OF_RUN, SIZE_OF_TEST, STRIDE, AVAIL, 0, 0, aff_incr, 0, 0, AFF_INCR, def_all_cpus, NULL, -1, MAX_LOOP, NULL, NULL, -1, -1, -1, 0, 0};
ERROR: space required after that ',' (ctx:VxV)
#579: FILE: tests/tcg/i386/litmus/SAL.c:487:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxO)
#579: FILE: tests/tcg/i386/litmus/SAL.c:487:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required before that '&' (ctx:OxV)
#579: FILE: tests/tcg/i386/litmus/SAL.c:487:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxO)
#579: FILE: tests/tcg/i386/litmus/SAL.c:487:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required before that '&' (ctx:OxV)
#579: FILE: tests/tcg/i386/litmus/SAL.c:487:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxV)
#580: FILE: tests/tcg/i386/litmus/SAL.c:488:
+ int cond = run(&cmd,def_all_cpus,stdout);
^ERROR: space required after that ',' (ctx:VxV)
#580: FILE: tests/tcg/i386/litmus/SAL.c:488:
+ int cond = run(&cmd,def_all_cpus,stdout);
^ERROR: trailing statements should be on next line #581: FILE: tests/tcg/i386/litmus/SAL.c:489:
+ if (def_all_cpus != cmd.aff_cpus) cpus_free(def_all_cpus);
ERROR: braces {} are necessary for all arms of this statement #581: FILE: tests/tcg/i386/litmus/SAL.c:489:
+ if (def_all_cpus != cmd.aff_cpus) cpus_free(def_all_cpus); [...]
ERROR: open brace '{' following function declarations go on the next line #612: FILE: tests/tcg/i386/litmus/affinity.c:23:
+cpus_t *read_affinity(void) {
ERROR: trailing whitespace
#616: FILE: tests/tcg/i386/litmus/affinity.c:27:
+ $
ERROR: trailing whitespace
#617: FILE: tests/tcg/i386/litmus/affinity.c:28:
+ if (res != 0) { $
ERROR: space required after that ',' (ctx:VxV)
#618: FILE: tests/tcg/i386/litmus/affinity.c:29:
+ errexit("pthread_getaffinity_np",res);
^ERROR: spaces required around that '=' (ctx:VxV)
#620: FILE: tests/tcg/i386/litmus/affinity.c:31:
+ for (int p=0 ; p < CPU_SETSIZE ; p++) {
^ERROR: space required after that ',' (ctx:VxO)
#621: FILE: tests/tcg/i386/litmus/affinity.c:32:
+ if (CPU_ISSET(p,&mask)) sz++ ;
^ERROR: space required before that '&' (ctx:OxV)
#621: FILE: tests/tcg/i386/litmus/affinity.c:32:
+ if (CPU_ISSET(p,&mask)) sz++ ;
^ERROR: trailing statements should be on next line
#621: FILE: tests/tcg/i386/litmus/affinity.c:32:
+ if (CPU_ISSET(p,&mask)) sz++ ;
ERROR: braces {} are necessary for all arms of this statement #621: FILE: tests/tcg/i386/litmus/affinity.c:32:
+ if (CPU_ISSET(p,&mask)) sz++ ;
[...]
ERROR: spaces required around that '=' (ctx:VxV)
#625: FILE: tests/tcg/i386/litmus/affinity.c:36:
+ for (int p=0, *q=r->cpu ; p < CPU_SETSIZE ; p++) {
^ERROR: spaces required around that '=' (ctx:VxV)
#625: FILE: tests/tcg/i386/litmus/affinity.c:36:
+ for (int p=0, *q=r->cpu ; p < CPU_SETSIZE ; p++) {
^ERROR: space required after that ',' (ctx:VxO)
#626: FILE: tests/tcg/i386/litmus/affinity.c:37:
+ if (CPU_ISSET(p,&mask)) *q++ = p ;
^ERROR: space required before that '&' (ctx:OxV)
#626: FILE: tests/tcg/i386/litmus/affinity.c:37:
+ if (CPU_ISSET(p,&mask)) *q++ = p ;
^ERROR: trailing statements should be on next line
#626: FILE: tests/tcg/i386/litmus/affinity.c:37:
+ if (CPU_ISSET(p,&mask)) *q++ = p ;
ERROR: braces {} are necessary for all arms of this statement #626: FILE: tests/tcg/i386/litmus/affinity.c:37:
+ if (CPU_ISSET(p,&mask)) *q++ = p ;
[...]
ERROR: storage class should be at the beginning of the declaration #637: FILE: tests/tcg/i386/litmus/affinity.c:48:
+const static tsc_t sec = (tsc_t)1000000 ;
ERROR: "foo* bar" should be "foo *bar"
#639: FILE: tests/tcg/i386/litmus/affinity.c:50:
+static void* loop(void *p) {
ERROR: open brace '{' following function declarations go on the next line #639: FILE: tests/tcg/i386/litmus/affinity.c:50:
+static void* loop(void *p) {
ERROR: trailing statements should be on next line
#642: FILE: tests/tcg/i386/litmus/affinity.c:53:
+ while (timeofday() < max) ;
ERROR: braces {} are necessary even for single statement blocks #642: FILE: tests/tcg/i386/litmus/affinity.c:53:
+ while (timeofday() < max) ;
ERROR: open brace '{' following function declarations go on the next line #647: FILE: tests/tcg/i386/litmus/affinity.c:58:
+static void warm_up(int sz, tsc_t d) {
ERROR: trailing statements should be on next line
#650: FILE: tests/tcg/i386/litmus/affinity.c:61:
+ for (int k = 0 ; k < sz ; k++) launch(&th[k], loop, &d) ;
ERROR: braces {} are necessary even for single statement blocks #650: FILE: tests/tcg/i386/litmus/affinity.c:61:
+ for (int k = 0 ; k < sz ; k++) launch(&th[k], loop, &d) ;
ERROR: trailing statements should be on next line
#651: FILE: tests/tcg/i386/litmus/affinity.c:62:
+ for (int k = 0 ; k < sz ; k++) join(&th[k]) ;
ERROR: braces {} are necessary even for single statement blocks #651: FILE: tests/tcg/i386/litmus/affinity.c:62:
+ for (int k = 0 ; k < sz ; k++) join(&th[k]) ;
ERROR: open brace '{' following function declarations go on the next line #655: FILE: tests/tcg/i386/litmus/affinity.c:66:
+cpus_t *read_force_affinity(int n_avail, int verbose) {
ERROR: spaces required around that '+' (ctx:VxV)
#660: FILE: tests/tcg/i386/litmus/affinity.c:71:
+ warm_up(sz+1,max) ;
^ERROR: space required after that ',' (ctx:VxV)
#660: FILE: tests/tcg/i386/litmus/affinity.c:71:
+ warm_up(sz+1,max) ;
^ERROR: trailing statements should be on next line
#662: FILE: tests/tcg/i386/litmus/affinity.c:73:
+ if (n_avail <= r->sz) return r ;
ERROR: braces {} are necessary for all arms of this statement #662: FILE: tests/tcg/i386/litmus/affinity.c:73:
+ if (n_avail <= r->sz) return r ;
[...]
ERROR: suspect code indent for conditional statements (4, 6) #663: FILE: tests/tcg/i386/litmus/affinity.c:74:
+ if (verbose) {
+ fprintf(stderr,"Read affinity: '") ;
ERROR: space required after that ',' (ctx:VxV)
#664: FILE: tests/tcg/i386/litmus/affinity.c:75:
+ fprintf(stderr,"Read affinity: '") ;
^ERROR: space required after that ',' (ctx:VxV)
#665: FILE: tests/tcg/i386/litmus/affinity.c:76:
+ cpus_dump(stderr,r) ;
^ERROR: space required after that ',' (ctx:VxV)
#666: FILE: tests/tcg/i386/litmus/affinity.c:77:
+ fprintf(stderr,"'\n") ;
^ERROR: trailing whitespace
#679: FILE: tests/tcg/i386/litmus/affinity.c:90:
+ $
ERROR: open brace '{' following function declarations go on the next line #681: FILE: tests/tcg/i386/litmus/affinity.c:92:
+void write_affinity(cpus_t *p) {
ERROR: suspect code indent for conditional statements (4, 6) #687: FILE: tests/tcg/i386/litmus/affinity.c:98:
+ if (p->cpu[k] >= 0) {
+ CPU_SET(p->cpu[k],&mask) ;
ERROR: space required after that ',' (ctx:VxO)
#688: FILE: tests/tcg/i386/litmus/affinity.c:99:
+ CPU_SET(p->cpu[k],&mask) ;
^ERROR: space required before that '&' (ctx:OxV)
#688: FILE: tests/tcg/i386/litmus/affinity.c:99:
+ CPU_SET(p->cpu[k],&mask) ;
^ERROR: space required after that ',' (ctx:VxV)
#693: FILE: tests/tcg/i386/litmus/affinity.c:104:
+ int r = pthread_setaffinity_np(pthread_self(),sizeof(mask),&mask) ;
^ERROR: space required after that ',' (ctx:VxO)
#693: FILE: tests/tcg/i386/litmus/affinity.c:104:
+ int r = pthread_setaffinity_np(pthread_self(),sizeof(mask),&mask) ;
^ERROR: space required before that '&' (ctx:OxV)
#693: FILE: tests/tcg/i386/litmus/affinity.c:104:
+ int r = pthread_setaffinity_np(pthread_self(),sizeof(mask),&mask) ;
^ERROR: suspect code indent for conditional statements (4, 6) #694: FILE: tests/tcg/i386/litmus/affinity.c:105:
+ if (r != 0) {
+ errexit("pthread_setaffinity_np",r) ;
ERROR: space required after that ',' (ctx:VxV)
#695: FILE: tests/tcg/i386/litmus/affinity.c:106:
+ errexit("pthread_setaffinity_np",r) ;
^ERROR: open brace '{' following function declarations go on the next line #701: FILE: tests/tcg/i386/litmus/affinity.c:112:
+void write_one_affinity(int a) {
ERROR: space required after that ',' (ctx:VxO)
#705: FILE: tests/tcg/i386/litmus/affinity.c:116:
+ CPU_SET(a,&mask) ;
^ERROR: space required before that '&' (ctx:OxV)
#705: FILE: tests/tcg/i386/litmus/affinity.c:116:
+ CPU_SET(a,&mask) ;
^ERROR: suspect code indent for conditional statements (4, 6) #707: FILE: tests/tcg/i386/litmus/affinity.c:118:
+ if (r != 0) {
+ errexit("pthread_setaffinity_np",r) ;
ERROR: space required after that ',' (ctx:VxV)
#708: FILE: tests/tcg/i386/litmus/affinity.c:119:
+ errexit("pthread_setaffinity_np",r) ;
^ERROR: open brace '{' following function declarations go on the next line #718: FILE: tests/tcg/i386/litmus/affinity.c:129:
+static int get_present(void) {
ERROR: space required after that ',' (ctx:VxV)
#719: FILE: tests/tcg/i386/litmus/affinity.c:130:
+ FILE *fp = fopen(present,"r") ;
^ERROR: trailing statements should be on next line
#720: FILE: tests/tcg/i386/litmus/affinity.c:131:
+ if (fp == NULL) return -1 ;
ERROR: braces {} are necessary for all arms of this statement #720: FILE: tests/tcg/i386/litmus/affinity.c:131:
+ if (fp == NULL) return -1 ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#721: FILE: tests/tcg/i386/litmus/affinity.c:132:
+ int r1,r2 ;
^ERROR: space required after that ',' (ctx:VxV)
#722: FILE: tests/tcg/i386/litmus/affinity.c:133:
+ int n = fscanf(fp,"%d-%d\n",&r1,&r2) ;
^ERROR: space required after that ',' (ctx:VxO)
#722: FILE: tests/tcg/i386/litmus/affinity.c:133:
+ int n = fscanf(fp,"%d-%d\n",&r1,&r2) ;
^ERROR: space required before that '&' (ctx:OxV)
#722: FILE: tests/tcg/i386/litmus/affinity.c:133:
+ int n = fscanf(fp,"%d-%d\n",&r1,&r2) ;
^ERROR: space required after that ',' (ctx:VxO)
#722: FILE: tests/tcg/i386/litmus/affinity.c:133:
+ int n = fscanf(fp,"%d-%d\n",&r1,&r2) ;
^ERROR: space required before that '&' (ctx:OxV)
#722: FILE: tests/tcg/i386/litmus/affinity.c:133:
+ int n = fscanf(fp,"%d-%d\n",&r1,&r2) ;
^ERROR: trailing statements should be on next line
#724: FILE: tests/tcg/i386/litmus/affinity.c:135:
+ if (n != 2) return -1 ;
ERROR: braces {} are necessary for all arms of this statement #724: FILE: tests/tcg/i386/litmus/affinity.c:135:
+ if (n != 2) return -1 ;
[...]
ERROR: spaces required around that '-' (ctx:VxV)
#725: FILE: tests/tcg/i386/litmus/affinity.c:136:
+ return r2-r1+1 ;
^ERROR: spaces required around that '+' (ctx:VxV)
#725: FILE: tests/tcg/i386/litmus/affinity.c:136:
+ return r2-r1+1 ;
^ERROR: open brace '{' following function declarations go on the next line #728: FILE: tests/tcg/i386/litmus/affinity.c:139:
+void force_one_affinity(int a, int sz,int verbose, char *name) {
ERROR: space required after that ',' (ctx:VxV)
#728: FILE: tests/tcg/i386/litmus/affinity.c:139:
+void force_one_affinity(int a, int sz,int verbose, char *name) {
^ERROR: space required after that ',' (ctx:VxO)
#733: FILE: tests/tcg/i386/litmus/affinity.c:144:
+ CPU_SET(a,&mask) ;
^ERROR: space required before that '&' (ctx:OxV)
#733: FILE: tests/tcg/i386/litmus/affinity.c:144:
+ CPU_SET(a,&mask) ;
^ERROR: suspect code indent for conditional statements (4, 6) #734: FILE: tests/tcg/i386/litmus/affinity.c:145:
+ do {
+ r = pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask) ;
ERROR: suspect code indent for conditional statements (8, 10) #737: FILE: tests/tcg/i386/litmus/affinity.c:148:
+ if (verbose)
+ fprintf(stderr,"%s: force %i failed\n",name,a) ;
ERROR: braces {} are necessary for all arms of this statement #737: FILE: tests/tcg/i386/litmus/affinity.c:148:
+ if (verbose)
[...]
ERROR: space required after that ',' (ctx:VxV)
#738: FILE: tests/tcg/i386/litmus/affinity.c:149:
+ fprintf(stderr,"%s: force %i failed\n",name,a) ;
^ERROR: space required after that ',' (ctx:VxV)
#738: FILE: tests/tcg/i386/litmus/affinity.c:149:
+ fprintf(stderr,"%s: force %i failed\n",name,a) ;
^ERROR: space required after that ',' (ctx:VxV)
#738: FILE: tests/tcg/i386/litmus/affinity.c:149:
+ fprintf(stderr,"%s: force %i failed\n",name,a) ;
^ERROR: suspect code indent for conditional statements (8, 10) #740: FILE: tests/tcg/i386/litmus/affinity.c:151:
+ if (verbose > 1)
+ fprintf(stderr,"%s: present=%i\n",name,nwarm) ;
ERROR: braces {} are necessary for all arms of this statement #740: FILE: tests/tcg/i386/litmus/affinity.c:151:
+ if (verbose > 1)
[...]
ERROR: space required after that ',' (ctx:VxV)
#741: FILE: tests/tcg/i386/litmus/affinity.c:152:
+ fprintf(stderr,"%s: present=%i\n",name,nwarm) ;
^ERROR: space required after that ',' (ctx:VxV)
#741: FILE: tests/tcg/i386/litmus/affinity.c:152:
+ fprintf(stderr,"%s: present=%i\n",name,nwarm) ;
^ERROR: space required after that ',' (ctx:VxV)
#741: FILE: tests/tcg/i386/litmus/affinity.c:152:
+ fprintf(stderr,"%s: present=%i\n",name,nwarm) ;
^ERROR: spaces required around that '+' (ctx:VxV)
#742: FILE: tests/tcg/i386/litmus/affinity.c:153:
+ if (nwarm < 0) nwarm = sz+1 ;
^ERROR: trailing statements should be on next line
#742: FILE: tests/tcg/i386/litmus/affinity.c:153:
+ if (nwarm < 0) nwarm = sz+1 ;
ERROR: braces {} are necessary for all arms of this statement #742: FILE: tests/tcg/i386/litmus/affinity.c:153:
+ if (nwarm < 0) nwarm = sz+1 ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#743: FILE: tests/tcg/i386/litmus/affinity.c:154:
+ warm_up(nwarm,sec/100) ;
^ERROR: spaces required around that '/' (ctx:VxV)
#743: FILE: tests/tcg/i386/litmus/affinity.c:154:
+ warm_up(nwarm,sec/100) ;
^ERROR: line over 90 characters
#796: FILE: tests/tcg/i386/litmus/comp.sh:2:
+GCCOPTS="-D_GNU_SOURCE -DFORCE_AFFINITY -Wall -std=gnu99 -fomit-frame-pointer -O2 -pthread"
ERROR: open brace '{' following function declarations go on the next line #849: FILE: tests/tcg/i386/litmus/litmus_rand.c:39:
+inline static uint32_t unlocked_rand(st_t *st) {
ERROR: storage class should be at the beginning of the declaration #849: FILE: tests/tcg/i386/litmus/litmus_rand.c:39:
+inline static uint32_t unlocked_rand(st_t *st) {
ERROR: inline keyword should sit between storage class and type #849: FILE: tests/tcg/i386/litmus/litmus_rand.c:39:
+inline static uint32_t unlocked_rand(st_t *st) {
ERROR: open brace '{' following function declarations go on the next line #859: FILE: tests/tcg/i386/litmus/litmus_rand.c:49:
+int rand_bit(st_t *st) {
ERROR: trailing whitespace
#862: FILE: tests/tcg/i386/litmus/litmus_rand.c:52:
+ return r ; $
ERROR: space prohibited between function name and open parenthesis '(' #867: FILE: tests/tcg/i386/litmus/litmus_rand.c:57:
+uint32_t rand_k (uint32_t *st,uint32_t k) {
ERROR: space required after that ',' (ctx:VxV) #867: FILE: tests/tcg/i386/litmus/litmus_rand.c:57:
+uint32_t rand_k (uint32_t *st,uint32_t k) {
^ERROR: spaces required around that '-' (ctx:VxV) #872: FILE: tests/tcg/i386/litmus/litmus_rand.c:62:
+ } while (r-v > r_max-k+1) ;
^ERROR: spaces required around that '-' (ctx:VxV) #872: FILE: tests/tcg/i386/litmus/litmus_rand.c:62:
+ } while (r-v > r_max-k+1) ;
^ERROR: spaces required around that '+' (ctx:VxV) #872: FILE: tests/tcg/i386/litmus/litmus_rand.c:62:
+ } while (r-v > r_max-k+1) ;
^ERROR: space required after that ',' (ctx:VxV) #907: FILE: tests/tcg/i386/litmus/litmus_rand.h:27:
+uint32_t rand_k(st_t *st,uint32_t n) ;
^ERROR: if this code is redundant consider removing it #939: FILE: tests/tcg/i386/litmus/outs.c:24:
+#if 0
ERROR: open brace '{' following function declarations go on the next line #940: FILE: tests/tcg/i386/litmus/outs.c:25:
+static void debug(int *t, int i, int j) {
ERROR: spaces required around that '=' (ctx:VxV)
#941: FILE: tests/tcg/i386/litmus/outs.c:26:
+ for (int k=i ; k <= j ; k++)
^
ERROR: braces {} are necessary even for single statement blocks #941: FILE: tests/tcg/i386/litmus/outs.c:26:
+ for (int k=i ; k <= j ; k++)
+ fprintf(stderr,"%i",t[k]) ;
ERROR: space required after that ',' (ctx:VxV)
#942: FILE: tests/tcg/i386/litmus/outs.c:27:
+ fprintf(stderr,"%i",t[k]) ;
^ERROR: space required after that ',' (ctx:VxV)
#942: FILE: tests/tcg/i386/litmus/outs.c:27:
+ fprintf(stderr,"%i",t[k]) ;
^ERROR: space required after that ',' (ctx:VxV)
#943: FILE: tests/tcg/i386/litmus/outs.c:28:
+ fprintf(stderr,"\n") ;
^ERROR: open brace '{' following function declarations go on the next line #950: FILE: tests/tcg/i386/litmus/outs.c:35:
+static outs_t *alloc_outs(intmax_t k) {
ERROR: open brace '{' following function declarations go on the next line #959: FILE: tests/tcg/i386/litmus/outs.c:44:
+void free_outs(outs_t *p) {
ERROR: trailing statements should be on next line
#960: FILE: tests/tcg/i386/litmus/outs.c:45:
+ if (p == NULL) return ;
ERROR: braces {} are necessary for all arms of this statement #960: FILE: tests/tcg/i386/litmus/outs.c:45:
+ if (p == NULL) return ;
[...]
WARNING: line over 80 characters
#967: FILE: tests/tcg/i386/litmus/outs.c:52:
+static outs_t *loop_add_outcome_outs(outs_t *p, intmax_t *k, int i, count_t c, int show) {
ERROR: open brace '{' following function declarations go on the next line #967: FILE: tests/tcg/i386/litmus/outs.c:52:
+static outs_t *loop_add_outcome_outs(outs_t *p, intmax_t *k, int i, count_t c, int show) {
ERROR: suspect code indent for conditional statements (4, 6) #976: FILE: tests/tcg/i386/litmus/outs.c:61:
+ if (k[i] > p->k) {
+ q = &(p->next) ;
ERROR: suspect code indent for conditional statements (4, 6) #979: FILE: tests/tcg/i386/litmus/outs.c:64:
+ } else if (i <= 0) {
+ p->c += c ;
ERROR: suspect code indent for conditional statements (4, 6) #988: FILE: tests/tcg/i386/litmus/outs.c:73:
+ if (p == NULL || k[i] < p->k) {
+ outs_t *a = alloc_outs(k[i]) ;
ERROR: open brace '{' following function declarations go on the next line #997: FILE: tests/tcg/i386/litmus/outs.c:82:
+outs_t *add_outcome_outs(outs_t *p, intmax_t *k, int sz, count_t c, int show) {
ERROR: space required after that ',' (ctx:VxV)
#998: FILE: tests/tcg/i386/litmus/outs.c:83:
+ return loop_add_outcome_outs(p,k,sz-1,c,show) ;
^ERROR: space required after that ',' (ctx:VxV)
#998: FILE: tests/tcg/i386/litmus/outs.c:83:
+ return loop_add_outcome_outs(p,k,sz-1,c,show) ;
^ERROR: spaces required around that '-' (ctx:VxV)
#998: FILE: tests/tcg/i386/litmus/outs.c:83:
+ return loop_add_outcome_outs(p,k,sz-1,c,show) ;
^ERROR: space required after that ',' (ctx:VxV)
#998: FILE: tests/tcg/i386/litmus/outs.c:83:
+ return loop_add_outcome_outs(p,k,sz-1,c,show) ;
^ERROR: space required after that ',' (ctx:VxV)
#998: FILE: tests/tcg/i386/litmus/outs.c:83:
+ return loop_add_outcome_outs(p,k,sz-1,c,show) ;
^ERROR: open brace '{' following function declarations go on the next line #1001: FILE: tests/tcg/i386/litmus/outs.c:86:
+count_t sum_outs(outs_t *p) {
ERROR: open brace '{' following function declarations go on the next line #1010: FILE: tests/tcg/i386/litmus/outs.c:95:
+int finals_outs(outs_t *p) {
ERROR: trailing statements should be on next line
#1013: FILE: tests/tcg/i386/litmus/outs.c:98:
+ if (p->c > 0) r++ ;
ERROR: braces {} are necessary for all arms of this statement #1013: FILE: tests/tcg/i386/litmus/outs.c:98:
+ if (p->c > 0) r++ ;
[...]
WARNING: line over 80 characters
#1019: FILE: tests/tcg/i386/litmus/outs.c:104:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff,int sz) {
ERROR: space prohibited between function name and open parenthesis '(' #1019: FILE: tests/tcg/i386/litmus/outs.c:104:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff,int sz) {
ERROR: space required after that ',' (ctx:VxV)
#1019: FILE: tests/tcg/i386/litmus/outs.c:104:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff,int sz) {
^ERROR: space required after that ',' (ctx:VxV)
#1019: FILE: tests/tcg/i386/litmus/outs.c:104:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff,int sz) {
^ERROR: spaces required around that '-' (ctx:VxV)
#1021: FILE: tests/tcg/i386/litmus/outs.c:106:
+ buff[sz-1] = p->k ;
^ERROR: suspect code indent for conditional statements (4, 6) #1022: FILE: tests/tcg/i386/litmus/outs.c:107:
+ if (p->c > 0) {
+ dout(chan,buff,p->c,p->show) ;
ERROR: space required after that ',' (ctx:VxV)
#1023: FILE: tests/tcg/i386/litmus/outs.c:108:
+ dout(chan,buff,p->c,p->show) ;
^ERROR: space required after that ',' (ctx:VxV)
#1023: FILE: tests/tcg/i386/litmus/outs.c:108:
+ dout(chan,buff,p->c,p->show) ;
^ERROR: space required after that ',' (ctx:VxV)
#1023: FILE: tests/tcg/i386/litmus/outs.c:108:
+ dout(chan,buff,p->c,p->show) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1024: FILE: tests/tcg/i386/litmus/outs.c:109:
+ } else if (p->down) {
+ dump_outs(chan,dout,p->down,buff,sz-1) ;
ERROR: space required after that ',' (ctx:VxV)
#1025: FILE: tests/tcg/i386/litmus/outs.c:110:
+ dump_outs(chan,dout,p->down,buff,sz-1) ;
^ERROR: space required after that ',' (ctx:VxV)
#1025: FILE: tests/tcg/i386/litmus/outs.c:110:
+ dump_outs(chan,dout,p->down,buff,sz-1) ;
^ERROR: space required after that ',' (ctx:VxV)
#1025: FILE: tests/tcg/i386/litmus/outs.c:110:
+ dump_outs(chan,dout,p->down,buff,sz-1) ;
^ERROR: space required after that ',' (ctx:VxV)
#1025: FILE: tests/tcg/i386/litmus/outs.c:110:
+ dump_outs(chan,dout,p->down,buff,sz-1) ;
^ERROR: spaces required around that '-' (ctx:VxV)
#1025: FILE: tests/tcg/i386/litmus/outs.c:110:
+ dump_outs(chan,dout,p->down,buff,sz-1) ;
^ERROR: open brace '{' following function declarations go on the next line #1031: FILE: tests/tcg/i386/litmus/outs.c:116:
+static outs_t *do_merge_outs(outs_t *p, outs_t *q) {
ERROR: do not use C99 // comments
#1032: FILE: tests/tcg/i386/litmus/outs.c:117:
+ if (q == NULL) { // Nothing to add
ERROR: trailing statements should be on next line
#1032: FILE: tests/tcg/i386/litmus/outs.c:117:
+ if (q == NULL) { // Nothing to add
ERROR: do not use C99 // comments
#1035: FILE: tests/tcg/i386/litmus/outs.c:120:
+ if (p == NULL || q->k < p->k) { // Need a cell
ERROR: trailing statements should be on next line
#1035: FILE: tests/tcg/i386/litmus/outs.c:120:
+ if (p == NULL || q->k < p->k) { // Need a cell
ERROR: space required after that ',' (ctx:VxV)
#1043: FILE: tests/tcg/i386/litmus/outs.c:128:
+ p->down = do_merge_outs(p->down,q->down) ;
^ERROR: space required after that ',' (ctx:VxV)
#1044: FILE: tests/tcg/i386/litmus/outs.c:129:
+ p->next = do_merge_outs(p->next,q->next) ;
^ERROR: space required after that ',' (ctx:VxV)
#1046: FILE: tests/tcg/i386/litmus/outs.c:131:
+ p->next = do_merge_outs(p->next,q) ;
^ERROR: open brace '{' following function declarations go on the next line #1051: FILE: tests/tcg/i386/litmus/outs.c:136:
+outs_t *merge_outs(outs_t *p, outs_t *q, int sz) {
ERROR: space required after that ',' (ctx:VxV)
#1052: FILE: tests/tcg/i386/litmus/outs.c:137:
+ return do_merge_outs(p,q) ;
^ERROR: open brace '{' following function declarations go on the next line #1055: FILE: tests/tcg/i386/litmus/outs.c:140:
+int same_outs(outs_t *p,outs_t *q) {
ERROR: space required after that ',' (ctx:VxV)
#1055: FILE: tests/tcg/i386/litmus/outs.c:140:
+int same_outs(outs_t *p,outs_t *q) {
^ERROR: trailing statements should be on next line
#1057: FILE: tests/tcg/i386/litmus/outs.c:142:
+ if (p->k != q->k || p->c != q->c || p->show != q->show) return 0 ;
ERROR: braces {} are necessary for all arms of this statement #1057: FILE: tests/tcg/i386/litmus/outs.c:142:
+ if (p->k != q->k || p->c != q->c || p->show != q->show) return 0 ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1058: FILE: tests/tcg/i386/litmus/outs.c:143:
+ if (!same_outs(p->down,q->down)) return 0 ;
^ERROR: trailing statements should be on next line
#1058: FILE: tests/tcg/i386/litmus/outs.c:143:
+ if (!same_outs(p->down,q->down)) return 0 ;
ERROR: braces {} are necessary for all arms of this statement #1058: FILE: tests/tcg/i386/litmus/outs.c:143:
+ if (!same_outs(p->down,q->down)) return 0 ;
[...]
ERROR: space required after that ',' (ctx:VxO)
#1104: FILE: tests/tcg/i386/litmus/outs.h:35:
+ struct outs_t *next,*down ;
^ERROR: space required before that '*' (ctx:OxV)
#1104: FILE: tests/tcg/i386/litmus/outs.h:35:
+ struct outs_t *next,*down ;
^WARNING: line over 80 characters
#1115: FILE: tests/tcg/i386/litmus/outs.h:46:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff, int sz) ;
ERROR: space prohibited between function name and open parenthesis '(' #1115: FILE: tests/tcg/i386/litmus/outs.h:46:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff, int sz) ;
ERROR: space required after that ',' (ctx:VxV)
#1115: FILE: tests/tcg/i386/litmus/outs.h:46:
+void dump_outs (FILE *chan, dump_outcome *dout,outs_t *p, intmax_t *buff, int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#1116: FILE: tests/tcg/i386/litmus/outs.h:47:
+outs_t *merge_outs(outs_t *p,outs_t *q, int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#1117: FILE: tests/tcg/i386/litmus/outs.h:48:
+int same_outs(outs_t *p,outs_t *q) ;
^ERROR: line over 90 characters
#1158: FILE: tests/tcg/i386/litmus/run.sh:34:
+Command line: ../litmus-7.22/litmus -exit true -mach ../alex_litmus/overdrive01 -o run.x86 x86.tests/SAL.litmus
ERROR: line over 90 characters
#1165: FILE: tests/tcg/i386/litmus/run.sh:41:
+/* gcc options: -D_GNU_SOURCE -DFORCE_AFFINITY -Wall -std=gnu99 -fomit-frame-pointer -O2 -pthread */
ERROR: open brace '{' following function declarations go on the next line #1225: FILE: tests/tcg/i386/litmus/utils.c:32:
+static void checkerrlog(void) {
ERROR: trailing statements should be on next line
#1226: FILE: tests/tcg/i386/litmus/utils.c:33:
+ if (!errlog) errlog = stderr ;
ERROR: braces {} are necessary for all arms of this statement #1226: FILE: tests/tcg/i386/litmus/utils.c:33:
+ if (!errlog) errlog = stderr ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1229: FILE: tests/tcg/i386/litmus/utils.c:36:
+void seterrlog(FILE *chan) {
ERROR: open brace '{' following function declarations go on the next line #1233: FILE: tests/tcg/i386/litmus/utils.c:40:
+int log_error(const char *fmt, ...) {
ERROR: open brace '{' following function declarations go on the next line #1244: FILE: tests/tcg/i386/litmus/utils.c:51:
+void fatal(char *msg) {
ERROR: space required after that ',' (ctx:VxV)
#1247: FILE: tests/tcg/i386/litmus/utils.c:54:
+ fprintf(stdout,"Failure: %s\n", msg) ;
^ERROR: open brace '{' following function declarations go on the next line #1251: FILE: tests/tcg/i386/litmus/utils.c:58:
+void errexit(char *msg,int err) {
ERROR: space required after that ',' (ctx:VxV)
#1251: FILE: tests/tcg/i386/litmus/utils.c:58:
+void errexit(char *msg,int err) {
^ERROR: space required after that ',' (ctx:VxV)
#1252: FILE: tests/tcg/i386/litmus/utils.c:59:
+ log_error("%s: %s\n",msg,strerror(err)) ;
^ERROR: space required after that ',' (ctx:VxV)
#1252: FILE: tests/tcg/i386/litmus/utils.c:59:
+ log_error("%s: %s\n",msg,strerror(err)) ;
^ERROR: open brace '{' following function declarations go on the next line #1257: FILE: tests/tcg/i386/litmus/utils.c:64:
+void *malloc_check(size_t sz) {
ERROR: trailing statements should be on next line
#1258: FILE: tests/tcg/i386/litmus/utils.c:65:
+ if (sz == 0) return NULL ;
ERROR: braces {} are necessary for all arms of this statement #1258: FILE: tests/tcg/i386/litmus/utils.c:65:
+ if (sz == 0) return NULL ;
[...]
ERROR: trailing statements should be on next line
#1261: FILE: tests/tcg/i386/litmus/utils.c:68:
+ if (!errno) errno = ENOMEM ;
ERROR: braces {} are necessary for all arms of this statement #1261: FILE: tests/tcg/i386/litmus/utils.c:68:
+ if (!errno) errno = ENOMEM ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1262: FILE: tests/tcg/i386/litmus/utils.c:69:
+ errexit("malloc",errno) ;
^ERROR: open brace '{' following function declarations go on the next line #1269: FILE: tests/tcg/i386/litmus/utils.c:76:
+void pp_ints(FILE *fp,int *p,int n) {
ERROR: space required after that ',' (ctx:VxV)
#1269: FILE: tests/tcg/i386/litmus/utils.c:76:
+void pp_ints(FILE *fp,int *p,int n) {
^ERROR: space required after that ',' (ctx:VxV)
#1269: FILE: tests/tcg/i386/litmus/utils.c:76:
+void pp_ints(FILE *fp,int *p,int n) {
^ERROR: space required after that ',' (ctx:VxV)
#1271: FILE: tests/tcg/i386/litmus/utils.c:78:
+ fprintf(fp,"%i",p[0]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1271: FILE: tests/tcg/i386/litmus/utils.c:78:
+ fprintf(fp,"%i",p[0]) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1272: FILE: tests/tcg/i386/litmus/utils.c:79:
+ for (int k = 1 ; k < n ; k++) {
+ fprintf(fp,",%i",p[k]) ;
ERROR: space required after that ',' (ctx:VxV)
#1273: FILE: tests/tcg/i386/litmus/utils.c:80:
+ fprintf(fp,",%i",p[k]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1273: FILE: tests/tcg/i386/litmus/utils.c:80:
+ fprintf(fp,",%i",p[k]) ;
^ERROR: open brace '{' following function declarations go on the next line #1279: FILE: tests/tcg/i386/litmus/utils.c:86:
+void *do_align(void *p,size_t sz) {
ERROR: space required after that ',' (ctx:VxV)
#1279: FILE: tests/tcg/i386/litmus/utils.c:86:
+void *do_align(void *p,size_t sz) {
^ERROR: spaces required around that '-' (ctx:VxV)
#1281: FILE: tests/tcg/i386/litmus/utils.c:88:
+ x += sz-1 ;
^ERROR: open brace '{' following function declarations go on the next line #1287: FILE: tests/tcg/i386/litmus/utils.c:94:
+void *do_noalign(void *p,size_t sz) {
ERROR: space required after that ',' (ctx:VxV)
#1287: FILE: tests/tcg/i386/litmus/utils.c:94:
+void *do_noalign(void *p,size_t sz) {
^ERROR: space required after that ',' (ctx:VxV)
#1288: FILE: tests/tcg/i386/litmus/utils.c:95:
+ void *q = do_align(p,sz) ;
^ERROR: spaces required around that '/' (ctx:VxV)
#1289: FILE: tests/tcg/i386/litmus/utils.c:96:
+ void *r = q - sz/2 ;
^ERROR: spaces required around that '/' (ctx:VxV)
#1290: FILE: tests/tcg/i386/litmus/utils.c:97:
+ if (r < p) r = q + sz/2 ;
^ERROR: trailing statements should be on next line
#1290: FILE: tests/tcg/i386/litmus/utils.c:97:
+ if (r < p) r = q + sz/2 ;
ERROR: braces {} are necessary for all arms of this statement #1290: FILE: tests/tcg/i386/litmus/utils.c:97:
+ if (r < p) r = q + sz/2 ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1294: FILE: tests/tcg/i386/litmus/utils.c:101:
+void cat_file(char *path, char *msg, FILE *out) {
ERROR: space required after that ',' (ctx:VxV)
#1295: FILE: tests/tcg/i386/litmus/utils.c:102:
+ FILE *fp = fopen(path,"r") ;
^ERROR: trailing statements should be on next line
#1296: FILE: tests/tcg/i386/litmus/utils.c:103:
+ if (fp == NULL) return ;
ERROR: braces {} are necessary for all arms of this statement #1296: FILE: tests/tcg/i386/litmus/utils.c:103:
+ if (fp == NULL) return ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1297: FILE: tests/tcg/i386/litmus/utils.c:104:
+ fprintf(out,"%s\n",msg) ;
^ERROR: space required after that ',' (ctx:VxV)
#1297: FILE: tests/tcg/i386/litmus/utils.c:104:
+ fprintf(out,"%s\n",msg) ;
^ERROR: space required after that ',' (ctx:VxV)
#1298: FILE: tests/tcg/i386/litmus/utils.c:105:
+ int c,nl=1 ;
^ERROR: spaces required around that '=' (ctx:VxV)
#1298: FILE: tests/tcg/i386/litmus/utils.c:105:
+ int c,nl=1 ;
^ERROR: space required after that ',' (ctx:VxV)
#1300: FILE: tests/tcg/i386/litmus/utils.c:107:
+ fputc(c,out) ;
^ERROR: space required after that ',' (ctx:VxV)
#1304: FILE: tests/tcg/i386/litmus/utils.c:111:
+ if (!nl) fputc('\n',out) ;
^ERROR: trailing statements should be on next line
#1304: FILE: tests/tcg/i386/litmus/utils.c:111:
+ if (!nl) fputc('\n',out) ;
ERROR: braces {} are necessary for all arms of this statement #1304: FILE: tests/tcg/i386/litmus/utils.c:111:
+ if (!nl) fputc('\n',out) ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1311: FILE: tests/tcg/i386/litmus/utils.c:118:
+cpus_t *cpus_create(int sz) {
ERROR: spaces required around that '*' (ctx:VxV)
#1314: FILE: tests/tcg/i386/litmus/utils.c:121:
+ r->cpu = malloc_check(sizeof(r->cpu[0])*sz) ;
^ERROR: open brace '{' following function declarations go on the next line #1318: FILE: tests/tcg/i386/litmus/utils.c:125:
+cpus_t *cpus_create_init(int sz, int t[]) {
ERROR: trailing statements should be on next line #1320: FILE: tests/tcg/i386/litmus/utils.c:127:
+ for (int k = 0 ; k < sz ; k++) r->cpu[k] = t[k] ;
ERROR: braces {} are necessary even for single statement blocks #1320: FILE: tests/tcg/i386/litmus/utils.c:127:
+ for (int k = 0 ; k < sz ; k++) r->cpu[k] = t[k] ;
ERROR: open brace '{' following function declarations go on the next line #1324: FILE: tests/tcg/i386/litmus/utils.c:131:
+void cpus_free(cpus_t *p) {
ERROR: open brace '{' following function declarations go on the next line #1329: FILE: tests/tcg/i386/litmus/utils.c:136:
+void cpus_dump(FILE *fp, cpus_t *p) {
ERROR: space required after that ',' (ctx:VxV)
#1330: FILE: tests/tcg/i386/litmus/utils.c:137:
+ pp_ints(fp,p->cpu,p->sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#1330: FILE: tests/tcg/i386/litmus/utils.c:137:
+ pp_ints(fp,p->cpu,p->sz) ;
^ERROR: open brace '{' following function declarations go on the next line #1333: FILE: tests/tcg/i386/litmus/utils.c:140:
+void cpus_dump_test(FILE *fp, int *p, int sz, cpus_t *cm,int nprocs) {
ERROR: space required after that ',' (ctx:VxV)
#1333: FILE: tests/tcg/i386/litmus/utils.c:140:
+void cpus_dump_test(FILE *fp, int *p, int sz, cpus_t *cm,int nprocs) {
^ERROR: space required after that ',' (ctx:VxV)
#1335: FILE: tests/tcg/i386/litmus/utils.c:142:
+ fprintf(fp,"[") ;
^ERROR: space required after that ',' (ctx:VxO)
#1336: FILE: tests/tcg/i386/litmus/utils.c:143:
+ pp_ints(fp,&p[k],nprocs) ;
^ERROR: space required before that '&' (ctx:OxV)
#1336: FILE: tests/tcg/i386/litmus/utils.c:143:
+ pp_ints(fp,&p[k],nprocs) ;
^ERROR: space required after that ',' (ctx:VxV)
#1336: FILE: tests/tcg/i386/litmus/utils.c:143:
+ pp_ints(fp,&p[k],nprocs) ;
^ERROR: space required after that ',' (ctx:VxV)
#1337: FILE: tests/tcg/i386/litmus/utils.c:144:
+ fprintf(fp,"] {") ;
^ERROR: suspect code indent for conditional statements (4, 6) #1338: FILE: tests/tcg/i386/litmus/utils.c:145:
+ if (nprocs > 0) {
+ fprintf(fp,"%i",cm->cpu[p[k]]) ;
ERROR: space required after that ',' (ctx:VxV)
#1339: FILE: tests/tcg/i386/litmus/utils.c:146:
+ fprintf(fp,"%i",cm->cpu[p[k]]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1339: FILE: tests/tcg/i386/litmus/utils.c:146:
+ fprintf(fp,"%i",cm->cpu[p[k]]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1341: FILE: tests/tcg/i386/litmus/utils.c:148:
+ fprintf(fp,",%i",cm->cpu[p[k+i]]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1341: FILE: tests/tcg/i386/litmus/utils.c:148:
+ fprintf(fp,",%i",cm->cpu[p[k+i]]) ;
^ERROR: spaces required around that '+' (ctx:VxV)
#1341: FILE: tests/tcg/i386/litmus/utils.c:148:
+ fprintf(fp,",%i",cm->cpu[p[k+i]]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1344: FILE: tests/tcg/i386/litmus/utils.c:151:
+ fprintf(fp,"}\n") ;
^ERROR: open brace '{' following function declarations go on the next line #1353: FILE: tests/tcg/i386/litmus/utils.c:160:
+void ints_dump(FILE *fp, ints_t *p) {
ERROR: space required after that ',' (ctx:VxV)
#1355: FILE: tests/tcg/i386/litmus/utils.c:162:
+ fprintf(fp,"%i:%i",0,p->t[0]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1355: FILE: tests/tcg/i386/litmus/utils.c:162:
+ fprintf(fp,"%i:%i",0,p->t[0]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1355: FILE: tests/tcg/i386/litmus/utils.c:162:
+ fprintf(fp,"%i:%i",0,p->t[0]) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1356: FILE: tests/tcg/i386/litmus/utils.c:163:
+ for (int k = 1 ; k < p->sz ; k++) {
+ fprintf(fp,",%i:%i",k,p->t[k]) ;
ERROR: space required after that ',' (ctx:VxV)
#1357: FILE: tests/tcg/i386/litmus/utils.c:164:
+ fprintf(fp,",%i:%i",k,p->t[k]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1357: FILE: tests/tcg/i386/litmus/utils.c:164:
+ fprintf(fp,",%i:%i",k,p->t[k]) ;
^ERROR: space required after that ',' (ctx:VxV)
#1357: FILE: tests/tcg/i386/litmus/utils.c:164:
+ fprintf(fp,",%i:%i",k,p->t[k]) ;
^ERROR: open brace '{' following function declarations go on the next line #1365: FILE: tests/tcg/i386/litmus/utils.c:172:
+void prefetch_dump(FILE *fp, prfdirs_t *p) {
ERROR: suspect code indent for conditional statements (4, 6) #1371: FILE: tests/tcg/i386/litmus/utils.c:178:
+ for (int _v = 0 ; _v < nvars ; _v++) {
+ prfdir_t dir = r[_v].dir ;
ERROR: trailing statements should be on next line
#1375: FILE: tests/tcg/i386/litmus/utils.c:182:
+ if (dir == flush) c = 'F' ;
ERROR: braces {} are necessary for all arms of this statement #1375: FILE: tests/tcg/i386/litmus/utils.c:182:
+ if (dir == flush) c = 'F' ;
[...]
+ else if (dir == touch) c = 'T' ;
[...]
+ else if (dir == touch_store) c = 'W' ;
[...]
ERROR: trailing statements should be on next line
#1376: FILE: tests/tcg/i386/litmus/utils.c:183:
+ else if (dir == touch) c = 'T' ;
ERROR: braces {} are necessary for all arms of this statement #1376: FILE: tests/tcg/i386/litmus/utils.c:183:
+ else if (dir == touch) c = 'T' ;
[...]
+ else if (dir == touch_store) c = 'W' ;
[...]
ERROR: trailing statements should be on next line
#1377: FILE: tests/tcg/i386/litmus/utils.c:184:
+ else if (dir == touch_store) c = 'W' ;
ERROR: braces {} are necessary for all arms of this statement #1377: FILE: tests/tcg/i386/litmus/utils.c:184:
+ else if (dir == touch_store) c = 'W' ;
[...]
ERROR: suspect code indent for conditional statements (8, 10) #1378: FILE: tests/tcg/i386/litmus/utils.c:185:
+ if (some) {
+ fprintf(fp,",") ;
ERROR: space required after that ',' (ctx:VxV)
#1379: FILE: tests/tcg/i386/litmus/utils.c:186:
+ fprintf(fp,",") ;
^ERROR: space required after that ',' (ctx:VxV)
#1383: FILE: tests/tcg/i386/litmus/utils.c:190:
+ fprintf(fp,"%i:%s=%c",_p,r[_v].name,c) ;
^ERROR: space required after that ',' (ctx:VxV)
#1383: FILE: tests/tcg/i386/litmus/utils.c:190:
+ fprintf(fp,"%i:%s=%c",_p,r[_v].name,c) ;
^ERROR: space required after that ',' (ctx:VxV)
#1383: FILE: tests/tcg/i386/litmus/utils.c:190:
+ fprintf(fp,"%i:%s=%c",_p,r[_v].name,c) ;
^ERROR: space required after that ',' (ctx:VxV)
#1383: FILE: tests/tcg/i386/litmus/utils.c:190:
+ fprintf(fp,"%i:%s=%c",_p,r[_v].name,c) ;
^ERROR: open brace '{' following function declarations go on the next line #1389: FILE: tests/tcg/i386/litmus/utils.c:196:
+static void set_prefetch(prfdirs_t *p, prfdir_t d) {
ERROR: suspect code indent for conditional statements (4, 6) #1394: FILE: tests/tcg/i386/litmus/utils.c:201:
+ for (int _v = 0 ; _v < nvars ; _v++) {
+ r[_v].dir = d ;
ERROR: open brace '{' following function declarations go on the next line #1402: FILE: tests/tcg/i386/litmus/utils.c:209:
+int gcd(int a, int b) {
ERROR: trailing statements should be on next line
#1404: FILE: tests/tcg/i386/litmus/utils.c:211:
+ if (a == 0) return b ;
ERROR: braces {} are necessary for all arms of this statement #1404: FILE: tests/tcg/i386/litmus/utils.c:211:
+ if (a == 0) return b ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1414: FILE: tests/tcg/i386/litmus/utils.c:221:
+cpus_t *coremap_seq(int navail, int nways) {
ERROR: suspect code indent for conditional statements (4, 6) #1419: FILE: tests/tcg/i386/litmus/utils.c:226:
+ for (int k = 0 ; k < nways ; k++) {
+ r->cpu[i++] = c ;
ERROR: open brace '{' following function declarations go on the next line #1426: FILE: tests/tcg/i386/litmus/utils.c:233:
+cpus_t *coremap_end(int navail, int nways) {
ERROR: suspect code indent for conditional statements (4, 6) #1431: FILE: tests/tcg/i386/litmus/utils.c:238:
+ for (int c = 0 ; c < ncores ; c++) {
+ r->cpu[i++] = c ;
ERROR: open brace '{' following function declarations go on the next line #1444: FILE: tests/tcg/i386/litmus/utils.c:251:
+static void mapcore_free(mapcore_t *p) {
ERROR: trailing statements should be on next line #1445: FILE: tests/tcg/i386/litmus/utils.c:252:
+ for (int c = 0 ; c < p->ncores ; c++) cpus_free(p->core[c]) ;
ERROR: braces {} are necessary even for single statement blocks #1445: FILE: tests/tcg/i386/litmus/utils.c:252:
+ for (int c = 0 ; c < p->ncores ; c++) cpus_free(p->core[c]) ;
ERROR: if this code is redundant consider removing it #1450: FILE: tests/tcg/i386/litmus/utils.c:257:
+#if 0
ERROR: open brace '{' following function declarations go on the next line #1451: FILE: tests/tcg/i386/litmus/utils.c:258:
+static mapcore_t *inverse_coremap(cpus_t *p, int nways) {
ERROR: open brace '{' following function declarations go on the next line #1468: FILE: tests/tcg/i386/litmus/utils.c:275:
+static int get_ncores(cpus_t *cm) {
ERROR: trailing statements should be on next line
#1471: FILE: tests/tcg/i386/litmus/utils.c:278:
+ if (cm->cpu[k] > r) r = cm->cpu[k] ;
ERROR: braces {} are necessary for all arms of this statement #1471: FILE: tests/tcg/i386/litmus/utils.c:278:
+ if (cm->cpu[k] > r) r = cm->cpu[k] ;
[...]
ERROR: spaces required around that '+' (ctx:VxV)
#1473: FILE: tests/tcg/i386/litmus/utils.c:280:
+ return r+1 ;
^ERROR: open brace '{' following function declarations go on the next line #1476: FILE: tests/tcg/i386/litmus/utils.c:283:
+cpus_t *get_core_procs(cpus_t *cm, cpus_t *p,int c) {
ERROR: space required after that ',' (ctx:VxV)
#1476: FILE: tests/tcg/i386/litmus/utils.c:283:
+cpus_t *get_core_procs(cpus_t *cm, cpus_t *p,int c) {
^ERROR: trailing statements should be on next line
#1480: FILE: tests/tcg/i386/litmus/utils.c:287:
+ if (cm->cpu[p->cpu[k]] == c) sz++ ;
ERROR: braces {} are necessary for all arms of this statement #1480: FILE: tests/tcg/i386/litmus/utils.c:287:
+ if (cm->cpu[p->cpu[k]] == c) sz++ ;
[...]
ERROR: trailing statements should be on next line
#1486: FILE: tests/tcg/i386/litmus/utils.c:293:
+ if (cm->cpu[proc] == c) r->cpu[i++] = proc ;
ERROR: braces {} are necessary for all arms of this statement #1486: FILE: tests/tcg/i386/litmus/utils.c:293:
+ if (cm->cpu[proc] == c) r->cpu[i++] = proc ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1491: FILE: tests/tcg/i386/litmus/utils.c:298:
+static mapcore_t *inverse_procs(cpus_t *cm, cpus_t *p) {
ERROR: spaces required around that '*' (ctx:VxV)
#1495: FILE: tests/tcg/i386/litmus/utils.c:302:
+ r->core = malloc_check(sizeof(r->core[0])*ncores) ;
^ERROR: space required after that ',' (ctx:VxV)
#1497: FILE: tests/tcg/i386/litmus/utils.c:304:
+ r->core[c] = get_core_procs(cm,p,c) ;
^ERROR: space required after that ',' (ctx:VxV)
#1497: FILE: tests/tcg/i386/litmus/utils.c:304:
+ r->core[c] = get_core_procs(cm,p,c) ;
^ERROR: open brace '{' following function declarations go on the next line #1502: FILE: tests/tcg/i386/litmus/utils.c:309:
+static int get_node_sz(int *p) {
ERROR: trailing statements should be on next line
#1504: FILE: tests/tcg/i386/litmus/utils.c:311:
+ while (*p++ >= 0) r++ ;
ERROR: braces {} are necessary even for single statement blocks #1504: FILE: tests/tcg/i386/litmus/utils.c:311:
+ while (*p++ >= 0) r++ ;
ERROR: open brace '{' following function declarations go on the next line #1508: FILE: tests/tcg/i386/litmus/utils.c:315:
+static int get_n(int **p) {
ERROR: open brace '{' following function declarations go on the next line #1517: FILE: tests/tcg/i386/litmus/utils.c:324:
+static int ok_one_color(int *cm,int *d,int *a,int n, int p, int c) {
ERROR: space required after that ',' (ctx:VxV)
#1517: FILE: tests/tcg/i386/litmus/utils.c:324:
+static int ok_one_color(int *cm,int *d,int *a,int n, int p, int c) {
^ERROR: space required after that ',' (ctx:VxV)
#1517: FILE: tests/tcg/i386/litmus/utils.c:324:
+static int ok_one_color(int *cm,int *d,int *a,int n, int p, int c) {
^ERROR: space required after that ',' (ctx:VxV)
#1517: FILE: tests/tcg/i386/litmus/utils.c:324:
+static int ok_one_color(int *cm,int *d,int *a,int n, int p, int c) {
^ERROR: suspect code indent for conditional statements (4, 6) #1520: FILE: tests/tcg/i386/litmus/utils.c:327:
+ if (op >= 0) {
+ if (d[n*p+k]) {
ERROR: spaces required around that '*' (ctx:VxV)
#1521: FILE: tests/tcg/i386/litmus/utils.c:328:
+ if (d[n*p+k]) {
^ERROR: spaces required around that '+' (ctx:VxV)
#1521: FILE: tests/tcg/i386/litmus/utils.c:328:
+ if (d[n*p+k]) {
^ERROR: suspect code indent for conditional statements (8, 10) #1523: FILE: tests/tcg/i386/litmus/utils.c:330:
+ if (oc == c) {
+ return 0 ;
ERROR: open brace '{' following function declarations go on the next line #1532: FILE: tests/tcg/i386/litmus/utils.c:339:
+static int ok_color(int *cm,int *d,int *a,int n, int *q, int c) {
ERROR: space required after that ',' (ctx:VxV)
#1532: FILE: tests/tcg/i386/litmus/utils.c:339:
+static int ok_color(int *cm,int *d,int *a,int n, int *q, int c) {
^ERROR: space required after that ',' (ctx:VxV)
#1532: FILE: tests/tcg/i386/litmus/utils.c:339:
+static int ok_color(int *cm,int *d,int *a,int n, int *q, int c) {
^ERROR: space required after that ',' (ctx:VxV)
#1532: FILE: tests/tcg/i386/litmus/utils.c:339:
+static int ok_color(int *cm,int *d,int *a,int n, int *q, int c) {
^ERROR: space required after that ',' (ctx:VxV)
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
^ERROR: space required after that ',' (ctx:VxV)
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
^ERROR: space required after that ',' (ctx:VxV)
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
^ERROR: space required after that ',' (ctx:VxO)
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
^ERROR: space required before that '*' (ctx:OxV)
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
^ERROR: space required after that ',' (ctx:VxV)
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
^ERROR: trailing statements should be on next line
#1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
ERROR: braces {} are necessary for all arms of this statement #1534: FILE: tests/tcg/i386/litmus/utils.c:341:
+ if (!ok_one_color(cm,d,a,n,*q,c)) return 0 ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1540: FILE: tests/tcg/i386/litmus/utils.c:347:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d, int *a,int n, int *q) {
^ERROR: space required after that ',' (ctx:VxV)
#1540: FILE: tests/tcg/i386/litmus/utils.c:347:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d, int *a,int n, int *q) {
^ERROR: space required after that ',' (ctx:VxV)
#1540: FILE: tests/tcg/i386/litmus/utils.c:347:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d, int *a,int n, int *q) {
^ERROR: space required after that ',' (ctx:VxV)
#1540: FILE: tests/tcg/i386/litmus/utils.c:347:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d, int *a,int n, int *q) {
^ERROR: space required after that ',' (ctx:VxV)
#1540: FILE: tests/tcg/i386/litmus/utils.c:347:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d, int *a,int n, int *q) {
^ERROR: space required after that ',' (ctx:VxV)
#1542: FILE: tests/tcg/i386/litmus/utils.c:349:
+ int k0 = prev >= 0 && rand_bit(st) ? prev : rand_k(st,mc->ncores) ;
^ERROR: space required after that ',' (ctx:VxV)
#1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
^ERROR: trailing statements should be on next line
#1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
ERROR: braces {} are necessary for all arms of this statement #1546: FILE: tests/tcg/i386/litmus/utils.c:353:
+ if (p->sz >= sz && ok_color(cm,d,a,n,q,k)) return k ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1554: FILE: tests/tcg/i386/litmus/utils.c:361:
+(int prev,st_t *st,int *cm,mapcore_t *mc,int *d,int *a,int n,int p) {
^ERROR: space required after that ',' (ctx:VxV)
#1556: FILE: tests/tcg/i386/litmus/utils.c:363:
+ int k0 = prev >= 0 && rand_bit(st) ? prev : rand_k(st,mc->ncores) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1560: FILE: tests/tcg/i386/litmus/utils.c:367:
+ if (pk->sz > 0) {
+ if (found < 0) found = k ;
ERROR: trailing statements should be on next line
#1561: FILE: tests/tcg/i386/litmus/utils.c:368:
+ if (found < 0) found = k ;
ERROR: braces {} are necessary for all arms of this statement #1561: FILE: tests/tcg/i386/litmus/utils.c:368:
+ if (found < 0) found = k ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
^ERROR: space required after that ',' (ctx:VxV)
#1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
^ERROR: trailing statements should be on next line
#1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
ERROR: braces {} are necessary for all arms of this statement #1562: FILE: tests/tcg/i386/litmus/utils.c:369:
+ if (ok_one_color(cm,d,a,n,p,k)) return k ;
[...]
ERROR: trailing statements should be on next line #1566: FILE: tests/tcg/i386/litmus/utils.c:373:
+ if (found < 0) fatal("Cannot allocate threads") ;
ERROR: braces {} are necessary for all arms of this statement #1566: FILE: tests/tcg/i386/litmus/utils.c:373:
+ if (found < 0) fatal("Cannot allocate threads") ; [...]
ERROR: line over 90 characters
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
ERROR: space prohibited between function name and open parenthesis '('
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
ERROR: space required after that ',' (ctx:VxV)
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1570: FILE: tests/tcg/i386/litmus/utils.c:377:
+void custom_affinity (st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1571: FILE: tests/tcg/i386/litmus/utils.c:378:
+ mapcore_t *mc = inverse_procs(cm,aff_cpus) ;
^ERROR: spaces required around that '*' (ctx:VxV)
#1574: FILE: tests/tcg/i386/litmus/utils.c:381:
+ int d[n*n] ;
^ERROR: spaces required around that '*' (ctx:VxV)
#1577: FILE: tests/tcg/i386/litmus/utils.c:384:
+ for (int k = 0 ; k < n*n ; k++) d[k] = 0 ;
^ERROR: trailing statements should be on next line
#1577: FILE: tests/tcg/i386/litmus/utils.c:384:
+ for (int k = 0 ; k < n*n ; k++) d[k] = 0 ;
ERROR: braces {} are necessary even for single statement blocks #1577: FILE: tests/tcg/i386/litmus/utils.c:384:
+ for (int k = 0 ; k < n*n ; k++) d[k] = 0 ;
ERROR: suspect code indent for conditional statements (4, 6) #1578: FILE: tests/tcg/i386/litmus/utils.c:385:
+ while (*q >= 0) {
+ int x = *q++, y = *q++ ;
ERROR: spaces required around that '*' (ctx:VxV)
#1580: FILE: tests/tcg/i386/litmus/utils.c:387:
+ d[n*x+y] = d[n*y+x] = 1 ;
^ERROR: spaces required around that '+' (ctx:VxV)
#1580: FILE: tests/tcg/i386/litmus/utils.c:387:
+ d[n*x+y] = d[n*y+x] = 1 ;
^ERROR: spaces required around that '*' (ctx:VxV)
#1580: FILE: tests/tcg/i386/litmus/utils.c:387:
+ d[n*x+y] = d[n*y+x] = 1 ;
^ERROR: spaces required around that '+' (ctx:VxV)
#1580: FILE: tests/tcg/i386/litmus/utils.c:387:
+ d[n*x+y] = d[n*y+x] = 1 ;
^ERROR: spaces required around that '*' (ctx:VxV)
#1584: FILE: tests/tcg/i386/litmus/utils.c:391:
+ int *a = &r[k*n] ;
^ERROR: trailing statements should be on next line
#1586: FILE: tests/tcg/i386/litmus/utils.c:393:
+ for (int i = 0 ; i < n ; i++) a[i] = -1 ;
ERROR: braces {} are necessary even for single statement blocks #1586: FILE: tests/tcg/i386/litmus/utils.c:393:
+ for (int i = 0 ; i < n ; i++) a[i] = -1 ;
ERROR: suspect code indent for conditional statements (4, 6) #1587: FILE: tests/tcg/i386/litmus/utils.c:394:
+ for (int **q = color ; *q ; q++) {
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
ERROR: space required after that ',' (ctx:VxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required after that ',' (ctx:VxO)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: space required before that '*' (ctx:OxV)
#1588: FILE: tests/tcg/i386/litmus/utils.c:395:
+ int c = find_color_diff(prev_core,st,aff_cpus->cpu,mc,d,a,n,*q) ;
^ERROR: suspect code indent for conditional statements (8, 10) #1591: FILE: tests/tcg/i386/litmus/utils.c:398:
+ for (int *qq = *q ; *qq >= 0 ; qq++) {
+ p->sz-- ;
ERROR: suspect code indent for conditional statements (8, 10) #1597: FILE: tests/tcg/i386/litmus/utils.c:404:
+ for (int *qq = *q ; *qq >= 0 ; qq++) {
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
ERROR: space required after that ',' (ctx:VxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required after that ',' (ctx:VxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required after that ',' (ctx:VxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required after that ',' (ctx:VxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required after that ',' (ctx:VxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required after that ',' (ctx:VxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required after that ',' (ctx:VxO)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: space required before that '*' (ctx:OxV)
#1598: FILE: tests/tcg/i386/litmus/utils.c:405:
+ int c = find_one_proc(prev_core,st,aff_cpus->cpu,mc,d,a,n,*qq) ;
^ERROR: open brace '{' following function declarations go on the next line #1616: FILE: tests/tcg/i386/litmus/utils.c:423:
+static void usage(char *prog, cmd_t *d) {
ERROR: space required after that ',' (ctx:VxV)
#1617: FILE: tests/tcg/i386/litmus/utils.c:424:
+ log_error("usage: %s (options)*\n",prog) ;
^ERROR: line over 90 characters
#1620: FILE: tests/tcg/i386/litmus/utils.c:427:
+ log_error(" -a <n> run maximal number of tests for n available processors (default %i)\n",d->avail) ;
ERROR: space required after that ',' (ctx:VxV)
#1620: FILE: tests/tcg/i386/litmus/utils.c:427:
+ log_error(" -a <n> run maximal number of tests for n available processors (default %i)\n",d->avail) ;
^
ERROR: space required after that ',' (ctx:VxV)
#1622: FILE: tests/tcg/i386/litmus/utils.c:429:
+ log_error(" -r <n> perform n runs (default %i)\n",d->max_run) ;
^ERROR: space required after that ',' (ctx:VxV)
#1624: FILE: tests/tcg/i386/litmus/utils.c:431:
+ log_error(" -s <n> outcomes per run (default %i)\n",d->size_of_test) ;
^ERROR: space required after that ',' (ctx:VxV)
#1626: FILE: tests/tcg/i386/litmus/utils.c:433:
+ log_error(" -st <n> stride (default %i)\n",d->stride) ;
^ERROR: line over 90 characters
#1631: FILE: tests/tcg/i386/litmus/utils.c:438:
+ log_error(" -i <n> increment for allocating logical processors, -i 0 disables affinity mode") ;
ERROR: suspect code indent for conditional statements (4, 6) #1632: FILE: tests/tcg/i386/litmus/utils.c:439:
+ if (d->aff_mode == aff_incr) {
+ log_error(" (default %i)\n",d->aff_incr) ;
ERROR: space required after that ',' (ctx:VxV)
#1633: FILE: tests/tcg/i386/litmus/utils.c:440:
+ log_error(" (default %i)\n",d->aff_incr) ;
^ERROR: space required after that ',' (ctx:VxV)
#1638: FILE: tests/tcg/i386/litmus/utils.c:445:
+ cpus_dump(errlog,d->aff_cpus) ;
^ERROR: line over 90 characters
#1640: FILE: tests/tcg/i386/litmus/utils.c:447:
+ log_error(" +ra randomise affinity%s\n",d->aff_mode == aff_random ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxV)
#1640: FILE: tests/tcg/i386/litmus/utils.c:447:
+ log_error(" +ra randomise affinity%s\n",d->aff_mode == aff_random ? " (default)" : "") ;
^ERROR: suspect code indent for conditional statements (4, 6) #1641: FILE: tests/tcg/i386/litmus/utils.c:448:
+ if (d->aff_custom_enabled) {
+ log_error(" +ca enable custom affinity%s\n",d->aff_mode == aff_custom ? " (default)" : "") ;
ERROR: line over 90 characters
#1642: FILE: tests/tcg/i386/litmus/utils.c:449:
+ log_error(" +ca enable custom affinity%s\n",d->aff_mode == aff_custom ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxV)
#1642: FILE: tests/tcg/i386/litmus/utils.c:449:
+ log_error(" +ca enable custom affinity%s\n",d->aff_mode == aff_custom ? " (default)" : "") ;
^ERROR: suspect code indent for conditional statements (4, 6) #1646: FILE: tests/tcg/i386/litmus/utils.c:453:
+ if (d->aff_scan_enabled) {
+ log_error(" +sa enable scanning affinity%s\n",d->aff_mode == aff_scan ? " (default)" : "") ;
ERROR: line over 90 characters
#1647: FILE: tests/tcg/i386/litmus/utils.c:454:
+ log_error(" +sa enable scanning affinity%s\n",d->aff_mode == aff_scan ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxV)
#1647: FILE: tests/tcg/i386/litmus/utils.c:454:
+ log_error(" +sa enable scanning affinity%s\n",d->aff_mode == aff_scan ? " (default)" : "") ;
^WARNING: line over 80 characters
#1654: FILE: tests/tcg/i386/litmus/utils.c:461:
+ log_error(" +rm randomise memory accesses%s\n",d->shuffle ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxV)
#1654: FILE: tests/tcg/i386/litmus/utils.c:461:
+ log_error(" +rm randomise memory accesses%s\n",d->shuffle ? " (default)" : "") ;
^ERROR: line over 90 characters
#1655: FILE: tests/tcg/i386/litmus/utils.c:462:
+ log_error(" -rm do not randomise memory accesses%s\n",!d->shuffle ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxO)
#1655: FILE: tests/tcg/i386/litmus/utils.c:462:
+ log_error(" -rm do not randomise memory accesses%s\n",!d->shuffle ? " (default)" : "") ;
^ERROR: space required before that '!' (ctx:OxV)
#1655: FILE: tests/tcg/i386/litmus/utils.c:462:
+ log_error(" -rm do not randomise memory accesses%s\n",!d->shuffle ? " (default)" : "") ;
^ERROR: line over 90 characters
#1658: FILE: tests/tcg/i386/litmus/utils.c:465:
+ log_error(" +sc stop as soon as possible%s\n",d->speedcheck ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxV)
#1658: FILE: tests/tcg/i386/litmus/utils.c:465:
+ log_error(" +sc stop as soon as possible%s\n",d->speedcheck ? " (default)" : "") ;
^WARNING: line over 80 characters
#1659: FILE: tests/tcg/i386/litmus/utils.c:466:
+ log_error(" -sc run test completly%s\n",!d->speedcheck ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxO)
#1659: FILE: tests/tcg/i386/litmus/utils.c:466:
+ log_error(" -sc run test completly%s\n",!d->speedcheck ? " (default)" : "") ;
^ERROR: space required before that '!' (ctx:OxV)
#1659: FILE: tests/tcg/i386/litmus/utils.c:466:
+ log_error(" -sc run test completly%s\n",!d->speedcheck ? " (default)" : "") ;
^ERROR: space required after that ',' (ctx:VxV)
#1666: FILE: tests/tcg/i386/litmus/utils.c:473:
+ ints_dump(errlog,d->delta_tb) ;
^ERROR: line over 90 characters
#1672: FILE: tests/tcg/i386/litmus/utils.c:479:
+ log_error(" +vb show iteration timings%s\n",d->verbose_barrier ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxV)
#1672: FILE: tests/tcg/i386/litmus/utils.c:479:
+ log_error(" +vb show iteration timings%s\n",d->verbose_barrier ? " (default)" : "") ;
^ERROR: line over 90 characters
#1673: FILE: tests/tcg/i386/litmus/utils.c:480:
+ log_error(" -vb do not show iteration timings%s\n",!d->verbose_barrier ? " (default)" : "") ;
ERROR: space required after that ',' (ctx:VxO)
#1673: FILE: tests/tcg/i386/litmus/utils.c:480:
+ log_error(" -vb do not show iteration timings%s\n",!d->verbose_barrier ? " (default)" : "") ;
^ERROR: space required before that '!' (ctx:OxV)
#1673: FILE: tests/tcg/i386/litmus/utils.c:480:
+ log_error(" -vb do not show iteration timings%s\n",!d->verbose_barrier ? " (default)" : "") ;
^ERROR: space required after that ',' (ctx:VxV)
#1678: FILE: tests/tcg/i386/litmus/utils.c:485:
+ prefetch_dump(errlog,d->prefetch) ;
^ERROR: line over 90 characters
#1683: FILE: tests/tcg/i386/litmus/utils.c:490:
+ log_error(" -prs <n> prefetch probability is 1/n, -prs 0 disables feature, default %i\n",d->static_prefetch) ;
ERROR: space required after that ',' (ctx:VxV)
#1683: FILE: tests/tcg/i386/litmus/utils.c:490:
+ log_error(" -prs <n> prefetch probability is 1/n, -prs 0 disables feature, default %i\n",d->static_prefetch) ;
^ERROR: line over 90 characters
#1686: FILE: tests/tcg/i386/litmus/utils.c:493:
+ log_error(" -l <n> measure time by running assembly in a loop of size <n> (default %i)\n",d->max_loop) ;
ERROR: space required after that ',' (ctx:VxV)
#1686: FILE: tests/tcg/i386/litmus/utils.c:493:
+ log_error(" -l <n> measure time by running assembly in a loop of size <n> (default %i)\n",d->max_loop) ;
^
ERROR: space required after that ',' (ctx:VxV)
#1692: FILE: tests/tcg/i386/litmus/utils.c:499:
+ log_error(" -k <n> undocumented (default %i)\n",d->sync_n) ;
^ERROR: space prohibited between function name and open parenthesis '(' #1697: FILE: tests/tcg/i386/litmus/utils.c:504:
+static long my_add (long x, long y) {
ERROR: spaces required around that '+' (ctx:VxV)
#1698: FILE: tests/tcg/i386/litmus/utils.c:505:
+ long r = x+y ;
^ERROR: trailing statements should be on next line #1699: FILE: tests/tcg/i386/litmus/utils.c:506:
+ if (r < x || r < y) { errno = ERANGE ; fatal("overflow") ; }
ERROR: open brace '{' following function declarations go on the next line #1703: FILE: tests/tcg/i386/litmus/utils.c:510:
+static long my_pow10(int p,long x) {
ERROR: space required after that ',' (ctx:VxV)
#1703: FILE: tests/tcg/i386/litmus/utils.c:510:
+static long my_pow10(int p,long x) {
^ERROR: space required after that ',' (ctx:VxV)
#1706: FILE: tests/tcg/i386/litmus/utils.c:513:
+ long y2 = my_add(r,r) ;
^ERROR: space required after that ',' (ctx:VxV)
#1707: FILE: tests/tcg/i386/litmus/utils.c:514:
+ long y4 = my_add(y2,y2) ;
^ERROR: space required after that ',' (ctx:VxV)
#1708: FILE: tests/tcg/i386/litmus/utils.c:515:
+ long y8 = my_add(y4,y4) ;
^ERROR: space required after that ',' (ctx:VxV)
#1709: FILE: tests/tcg/i386/litmus/utils.c:516:
+ r = my_add(y8,y2) ;
^ERROR: trailing statements should be on next line
#1711: FILE: tests/tcg/i386/litmus/utils.c:518:
+ if (r >= INT_MAX || r <= 0) { errno = ERANGE ; fatal("overflow") ; }
ERROR: open brace '{' following function declarations go on the next line #1715: FILE: tests/tcg/i386/litmus/utils.c:522:
+static int do_argint(char *p, char **q) {
ERROR: space required after that ',' (ctx:VxV)
#1716: FILE: tests/tcg/i386/litmus/utils.c:523:
+ long r = strtol(p,q,10) ;
^ERROR: space required after that ',' (ctx:VxV)
#1716: FILE: tests/tcg/i386/litmus/utils.c:523:
+ long r = strtol(p,q,10) ;
^ERROR: consider using qemu_strtol in preference to strtol #1716: FILE: tests/tcg/i386/litmus/utils.c:523:
+ long r = strtol(p,q,10) ;
ERROR: trailing statements should be on next line
#1717: FILE: tests/tcg/i386/litmus/utils.c:524:
+ if (errno == ERANGE) { fatal("overflow") ; }
ERROR: space required after that ',' (ctx:VxV)
#1718: FILE: tests/tcg/i386/litmus/utils.c:525:
+ if (**q == 'k' || **q == 'K') { r = my_pow10(3,r) ; *q += 1; }
^
ERROR: trailing statements should be on next line #1718: FILE: tests/tcg/i386/litmus/utils.c:525:
+ if (**q == 'k' || **q == 'K') { r = my_pow10(3,r) ; *q += 1; }
ERROR: space required after that ',' (ctx:VxV)
#1719: FILE: tests/tcg/i386/litmus/utils.c:526:
+ else if (**q == 'm' || **q == 'M') { r = my_pow10(6,r) ; *q +=1 ; }
^
ERROR: spaces required around that '+=' (ctx:WxV)
#1719: FILE: tests/tcg/i386/litmus/utils.c:526:
+ else if (**q == 'm' || **q == 'M') { r = my_pow10(6,r) ; *q +=1 ; }
^
ERROR: trailing statements should be on next line
#1719: FILE: tests/tcg/i386/litmus/utils.c:526:
+ else if (**q == 'm' || **q == 'M') { r = my_pow10(6,r) ; *q +=1 ; }
ERROR: else should follow close brace '}'
#1719: FILE: tests/tcg/i386/litmus/utils.c:526:
+ if (**q == 'k' || **q == 'K') { r = my_pow10(3,r) ; *q += 1; }
+ else if (**q == 'm' || **q == 'M') { r = my_pow10(6,r) ; *q +=1 ; }
ERROR: open brace '{' following function declarations go on the next line #1723: FILE: tests/tcg/i386/litmus/utils.c:530:
+static int argint(char *prog,char *p,cmd_t *d) {
ERROR: space required after that ',' (ctx:VxV)
#1723: FILE: tests/tcg/i386/litmus/utils.c:530:
+static int argint(char *prog,char *p,cmd_t *d) {
^ERROR: space required after that ',' (ctx:VxV)
#1723: FILE: tests/tcg/i386/litmus/utils.c:530:
+static int argint(char *prog,char *p,cmd_t *d) {
^ERROR: space required after that ',' (ctx:VxO)
#1725: FILE: tests/tcg/i386/litmus/utils.c:532:
+ long r = do_argint(p,&q) ;
^ERROR: space required before that '&' (ctx:OxV)
#1725: FILE: tests/tcg/i386/litmus/utils.c:532:
+ long r = do_argint(p,&q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1727: FILE: tests/tcg/i386/litmus/utils.c:534:
+ usage(prog,d) ;
^ERROR: open brace '{' following function declarations go on the next line #1732: FILE: tests/tcg/i386/litmus/utils.c:539:
+static cpus_t *argcpus(char *prog,char *p0,cmd_t *d) {
ERROR: space required after that ',' (ctx:VxV)
#1732: FILE: tests/tcg/i386/litmus/utils.c:539:
+static cpus_t *argcpus(char *prog,char *p0,cmd_t *d) {
^ERROR: space required after that ',' (ctx:VxV)
#1732: FILE: tests/tcg/i386/litmus/utils.c:539:
+static cpus_t *argcpus(char *prog,char *p0,cmd_t *d) {
^ERROR: space required after that ',' (ctx:VxO)
#1739: FILE: tests/tcg/i386/litmus/utils.c:546:
+ int x = (int)strtol(p,&q,10) ;
^ERROR: space required before that '&' (ctx:OxV)
#1739: FILE: tests/tcg/i386/litmus/utils.c:546:
+ int x = (int)strtol(p,&q,10) ;
^ERROR: space required after that ',' (ctx:VxV)
#1739: FILE: tests/tcg/i386/litmus/utils.c:546:
+ int x = (int)strtol(p,&q,10) ;
^ERROR: consider using qemu_strtol in preference to strtol #1739: FILE: tests/tcg/i386/litmus/utils.c:546:
+ int x = (int)strtol(p,&q,10) ;
ERROR: space required after that ',' (ctx:VxV)
#1740: FILE: tests/tcg/i386/litmus/utils.c:547:
+ if (x < 0 || *p == '\0' || (*q != '\0' && *q != ',')) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1740: FILE: tests/tcg/i386/litmus/utils.c:547:
+ if (x < 0 || *p == '\0' || (*q != '\0' && *q != ',')) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1740: FILE: tests/tcg/i386/litmus/utils.c:547:
+ if (x < 0 || *p == '\0' || (*q != '\0' && *q != ',')) usage(prog,d) ;
[...]
ERROR: trailing statements should be on next line
#1742: FILE: tests/tcg/i386/litmus/utils.c:549:
+ if (*q == '\0') break ;
ERROR: braces {} are necessary for all arms of this statement #1742: FILE: tests/tcg/i386/litmus/utils.c:549:
+ if (*q == '\0') break ;
[...]
ERROR: spaces required around that '+' (ctx:VxV)
#1743: FILE: tests/tcg/i386/litmus/utils.c:550:
+ p = q+1 ;
^ERROR: space required after that ',' (ctx:VxO)
#1749: FILE: tests/tcg/i386/litmus/utils.c:556:
+ r->cpu[k] = (int)strtol(p,&q,10) ;
^ERROR: space required before that '&' (ctx:OxV)
#1749: FILE: tests/tcg/i386/litmus/utils.c:556:
+ r->cpu[k] = (int)strtol(p,&q,10) ;
^ERROR: space required after that ',' (ctx:VxV)
#1749: FILE: tests/tcg/i386/litmus/utils.c:556:
+ r->cpu[k] = (int)strtol(p,&q,10) ;
^ERROR: consider using qemu_strtol in preference to strtol #1749: FILE: tests/tcg/i386/litmus/utils.c:556:
+ r->cpu[k] = (int)strtol(p,&q,10) ;
ERROR: spaces required around that '+' (ctx:VxV)
#1750: FILE: tests/tcg/i386/litmus/utils.c:557:
+ p = q+1 ;
^ERROR: open brace '{' following function declarations go on the next line #1755: FILE: tests/tcg/i386/litmus/utils.c:562:
+static void argints(char *prog,cmd_t *d, char *p,ints_t *r) {
ERROR: space required after that ',' (ctx:VxV)
#1755: FILE: tests/tcg/i386/litmus/utils.c:562:
+static void argints(char *prog,cmd_t *d, char *p,ints_t *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1755: FILE: tests/tcg/i386/litmus/utils.c:562:
+static void argints(char *prog,cmd_t *d, char *p,ints_t *r) {
^ERROR: space required after that ',' (ctx:VxO)
#1758: FILE: tests/tcg/i386/litmus/utils.c:565:
+ int idx = (int)strtol(p,&q,10) ;
^ERROR: space required before that '&' (ctx:OxV)
#1758: FILE: tests/tcg/i386/litmus/utils.c:565:
+ int idx = (int)strtol(p,&q,10) ;
^ERROR: space required after that ',' (ctx:VxV)
#1758: FILE: tests/tcg/i386/litmus/utils.c:565:
+ int idx = (int)strtol(p,&q,10) ;
^ERROR: consider using qemu_strtol in preference to strtol #1758: FILE: tests/tcg/i386/litmus/utils.c:565:
+ int idx = (int)strtol(p,&q,10) ;
ERROR: space required after that ',' (ctx:VxV)
#1759: FILE: tests/tcg/i386/litmus/utils.c:566:
+ if (idx < 0 || idx >= r->sz || *p == '\0' || *q != ':') usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1759: FILE: tests/tcg/i386/litmus/utils.c:566:
+ if (idx < 0 || idx >= r->sz || *p == '\0' || *q != ':') usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1759: FILE: tests/tcg/i386/litmus/utils.c:566:
+ if (idx < 0 || idx >= r->sz || *p == '\0' || *q != ':') usage(prog,d) ;
[...]
ERROR: spaces required around that '+' (ctx:VxV)
#1760: FILE: tests/tcg/i386/litmus/utils.c:567:
+ p = q+1 ;
^ERROR: space required after that ',' (ctx:VxO)
#1761: FILE: tests/tcg/i386/litmus/utils.c:568:
+ int v = do_argint(p,&q) ;
^ERROR: space required before that '&' (ctx:OxV)
#1761: FILE: tests/tcg/i386/litmus/utils.c:568:
+ int v = do_argint(p,&q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1762: FILE: tests/tcg/i386/litmus/utils.c:569:
+ if (*p == '\0' || (*q != '\0' && *q != ',')) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1762: FILE: tests/tcg/i386/litmus/utils.c:569:
+ if (*p == '\0' || (*q != '\0' && *q != ',')) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1762: FILE: tests/tcg/i386/litmus/utils.c:569:
+ if (*p == '\0' || (*q != '\0' && *q != ',')) usage(prog,d) ;
[...]
ERROR: suspect code indent for conditional statements (4, 6) #1764: FILE: tests/tcg/i386/litmus/utils.c:571:
+ if (*q == '\0') {
+ p = q ;
ERROR: spaces required around that '+' (ctx:VxV)
#1767: FILE: tests/tcg/i386/litmus/utils.c:574:
+ p = q+1 ;
^ERROR: open brace '{' following function declarations go on the next line #1772: FILE: tests/tcg/i386/litmus/utils.c:579:
+static prfone_t *get_name_slot(prfproc_t *p,char *name) {
ERROR: space required after that ',' (ctx:VxV)
#1772: FILE: tests/tcg/i386/litmus/utils.c:579:
+static prfone_t *get_name_slot(prfproc_t *p,char *name) {
^ERROR: space required after that ',' (ctx:VxV)
#1776: FILE: tests/tcg/i386/litmus/utils.c:583:
+ if (strcmp(name,q[_v].name) == 0) return &q[_v] ;
^ERROR: trailing statements should be on next line
#1776: FILE: tests/tcg/i386/litmus/utils.c:583:
+ if (strcmp(name,q[_v].name) == 0) return &q[_v] ;
ERROR: braces {} are necessary for all arms of this statement #1776: FILE: tests/tcg/i386/litmus/utils.c:583:
+ if (strcmp(name,q[_v].name) == 0) return &q[_v] ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1782: FILE: tests/tcg/i386/litmus/utils.c:589:
+static void argoneprefetch(char *prog,cmd_t *d, char *p, prfdirs_t *r) {
ERROR: space required after that ',' (ctx:VxV)
#1782: FILE: tests/tcg/i386/litmus/utils.c:589:
+static void argoneprefetch(char *prog,cmd_t *d, char *p, prfdirs_t *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1795: FILE: tests/tcg/i386/litmus/utils.c:602:
+ set_prefetch(r,dir) ;
^ERROR: open brace '{' following function declarations go on the next line #1798: FILE: tests/tcg/i386/litmus/utils.c:605:
+int parse_prefetch(char *p, prfdirs_t *r) {
ERROR: trailing statements should be on next line
#1799: FILE: tests/tcg/i386/litmus/utils.c:606:
+ if (!*p) return 1 ;
ERROR: braces {} are necessary for all arms of this statement #1799: FILE: tests/tcg/i386/litmus/utils.c:606:
+ if (!*p) return 1 ;
[...]
ERROR: space required after that ',' (ctx:VxO)
#1802: FILE: tests/tcg/i386/litmus/utils.c:609:
+ int proc = (int)strtol(p,&q,10) ;
^ERROR: space required before that '&' (ctx:OxV)
#1802: FILE: tests/tcg/i386/litmus/utils.c:609:
+ int proc = (int)strtol(p,&q,10) ;
^ERROR: space required after that ',' (ctx:VxV)
#1802: FILE: tests/tcg/i386/litmus/utils.c:609:
+ int proc = (int)strtol(p,&q,10) ;
^ERROR: consider using qemu_strtol in preference to strtol #1802: FILE: tests/tcg/i386/litmus/utils.c:609:
+ int proc = (int)strtol(p,&q,10) ;
ERROR: suspect code indent for conditional statements (4, 6) #1803: FILE: tests/tcg/i386/litmus/utils.c:610:
+ if (proc < 0 || proc >= r->nthreads || *p == '\0' || *q != ':')
+ return 0 ;
ERROR: braces {} are necessary for all arms of this statement #1803: FILE: tests/tcg/i386/litmus/utils.c:610:
+ if (proc < 0 || proc >= r->nthreads || *p == '\0' || *q != ':')
[...]
ERROR: spaces required around that '+' (ctx:VxV)
#1805: FILE: tests/tcg/i386/litmus/utils.c:612:
+ p = q+1 ;
^ERROR: suspect code indent for conditional statements (4, 6) #1807: FILE: tests/tcg/i386/litmus/utils.c:614:
+ while (*p != '=') {
+ if (*p == '\0') return 0 ;
ERROR: trailing statements should be on next line
#1808: FILE: tests/tcg/i386/litmus/utils.c:615:
+ if (*p == '\0') return 0 ;
ERROR: braces {} are necessary for all arms of this statement #1808: FILE: tests/tcg/i386/litmus/utils.c:615:
+ if (*p == '\0') return 0 ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1812: FILE: tests/tcg/i386/litmus/utils.c:619:
+ prfone_t *loc_slot = get_name_slot(&r->t[proc],p0) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1813: FILE: tests/tcg/i386/litmus/utils.c:620:
+ if (loc_slot == NULL) {
+ log_error("Proc %i does not access variable %s\n",proc,p0) ;
ERROR: space required after that ',' (ctx:VxV)
#1814: FILE: tests/tcg/i386/litmus/utils.c:621:
+ log_error("Proc %i does not access variable %s\n",proc,p0) ;
^ERROR: space required after that ',' (ctx:VxV)
#1814: FILE: tests/tcg/i386/litmus/utils.c:621:
+ log_error("Proc %i does not access variable %s\n",proc,p0) ;
^ERROR: trailing statements should be on next line
#1834: FILE: tests/tcg/i386/litmus/utils.c:641:
+ if (c == '\0') return 1 ;
ERROR: braces {} are necessary for all arms of this statement #1834: FILE: tests/tcg/i386/litmus/utils.c:641:
+ if (c == '\0') return 1 ;
[...]
+ else if (c == ',') p++ ;
[...]
+ else return 0 ;
[...]
ERROR: trailing statements should be on next line
#1835: FILE: tests/tcg/i386/litmus/utils.c:642:
+ else if (c == ',') p++ ;
ERROR: braces {} are necessary for all arms of this statement #1835: FILE: tests/tcg/i386/litmus/utils.c:642:
+ else if (c == ',') p++ ;
[...]
+ else return 0 ;
[...]
ERROR: trailing statements should be on next line
#1836: FILE: tests/tcg/i386/litmus/utils.c:643:
+ else return 0 ;
ERROR: open brace '{' following function declarations go on the next line #1840: FILE: tests/tcg/i386/litmus/utils.c:647:
+static void argprefetch(char *prog,cmd_t *d, char *p, prfdirs_t *r) {
ERROR: space required after that ',' (ctx:VxV)
#1840: FILE: tests/tcg/i386/litmus/utils.c:647:
+static void argprefetch(char *prog,cmd_t *d, char *p, prfdirs_t *r) {
^ERROR: space required after that ',' (ctx:VxV)
#1841: FILE: tests/tcg/i386/litmus/utils.c:648:
+ if (!parse_prefetch(p,r)) usage(prog,d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1841: FILE: tests/tcg/i386/litmus/utils.c:648:
+ if (!parse_prefetch(p,r)) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1841: FILE: tests/tcg/i386/litmus/utils.c:648:
+ if (!parse_prefetch(p,r)) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1841: FILE: tests/tcg/i386/litmus/utils.c:648:
+ if (!parse_prefetch(p,r)) usage(prog,d) ;
[...]
ERROR: open brace '{' following function declarations go on the next line #1844: FILE: tests/tcg/i386/litmus/utils.c:651:
+static double argdouble(char *prog,char *p,cmd_t *d) {
ERROR: space required after that ',' (ctx:VxV)
#1844: FILE: tests/tcg/i386/litmus/utils.c:651:
+static double argdouble(char *prog,char *p,cmd_t *d) {
^ERROR: space required after that ',' (ctx:VxV)
#1844: FILE: tests/tcg/i386/litmus/utils.c:651:
+static double argdouble(char *prog,char *p,cmd_t *d) {
^ERROR: space required after that ',' (ctx:VxO)
#1846: FILE: tests/tcg/i386/litmus/utils.c:653:
+ double r = strtod(p,&q) ;
^ERROR: space required before that '&' (ctx:OxV)
#1846: FILE: tests/tcg/i386/litmus/utils.c:653:
+ double r = strtod(p,&q) ;
^ERROR: space required after that ',' (ctx:VxV)
#1848: FILE: tests/tcg/i386/litmus/utils.c:655:
+ usage(prog,d) ;
^ERROR: open brace '{' following function declarations go on the next line #1853: FILE: tests/tcg/i386/litmus/utils.c:660:
+void parse_cmd(int argc, char **argv, cmd_t *d, cmd_t *p) {
ERROR: trailing statements should be on next line
#1859: FILE: tests/tcg/i386/litmus/utils.c:666:
+ if (!*argv) break ;
ERROR: braces {} are necessary for all arms of this statement #1859: FILE: tests/tcg/i386/litmus/utils.c:666:
+ if (!*argv) break ;
[...]
ERROR: trailing statements should be on next line
#1861: FILE: tests/tcg/i386/litmus/utils.c:668:
+ if (fst != '-' && fst != '+') break ;
ERROR: braces {} are necessary for all arms of this statement #1861: FILE: tests/tcg/i386/litmus/utils.c:668:
+ if (fst != '-' && fst != '+') break ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1862: FILE: tests/tcg/i386/litmus/utils.c:669:
+ if (strcmp(*argv,"-q") == 0) p->verbose=0 ;
^ERROR: spaces required around that '=' (ctx:VxV)
#1862: FILE: tests/tcg/i386/litmus/utils.c:669:
+ if (strcmp(*argv,"-q") == 0) p->verbose=0 ;
^ERROR: trailing statements should be on next line
#1862: FILE: tests/tcg/i386/litmus/utils.c:669:
+ if (strcmp(*argv,"-q") == 0) p->verbose=0 ;
ERROR: braces {} are necessary for all arms of this statement #1862: FILE: tests/tcg/i386/litmus/utils.c:669:
+ if (strcmp(*argv,"-q") == 0) p->verbose=0 ;
[...]
+ else if (strcmp(*argv,"-v") == 0) p->verbose++ ;
[...]
+ else if (strcmp(*argv,"-r") == 0) {
[...]
+ } else if (strcmp(*argv,"-fr") == 0) {
[...]
+ } else if (strcmp(*argv,"-s") == 0) {
[...]
+ } else if (d->stride > 0 && strcmp(*argv,"-st") == 0) {
[...]
+ } else if (strcmp(*argv,"-fs") == 0) {
[...]
+ } else if (strcmp(*argv,"-f") == 0) {
[...]
+ } else if (strcmp(*argv,"-n") == 0) {
[...]
+ } else if (strcmp(*argv,"-a") == 0) {
[...]
+ } else if (d->sync_n > 0 && strcmp(*argv,"-k") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-i") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-p") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ra") == 0) {
[...]
+ } else if (d->aff_custom_enabled && strcmp(*argv,"+ca") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ca") == 0) {
[...]
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+ta") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->shuffle >= 0 && strcmp(*argv,"+rm") == 0) {
[...]
+ } else if (d->shuffle >= 0 && strcmp(*argv,"-rm") == 0) {
[...]
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"+sc") == 0) {
[...]
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"-sc") == 0) {
[...]
+ } else if (!d->fix && strcmp(*argv,"+fix") == 0) {
[...]
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"+vb") == 0) {
[...]
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"-vb") == 0) {
[...]
+ } else if (d->prelude > 0 && strcmp(*argv,"-vp") == 0) {
[...]
+ } else if (d->delta_tb && strcmp(*argv,"-tb") == 0) {
[...]
+ } else if (d->delta_tb && strcmp(*argv,"-ta") == 0) {
[...]
+ } else if (d->prefetch && strcmp(*argv,"-prf") == 0) {
[...]
+ } else if (d->prefetch && strcmp(*argv,"-pra") == 0) {
[...]
+ } else if (d->static_prefetch >= 0 && strcmp(*argv,"-prs") == 0) {
[...]
+ } else if (d->max_loop > 0 && strcmp(*argv,"-l") == 0) {
[...]
+ } else usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1863: FILE: tests/tcg/i386/litmus/utils.c:670:
+ else if (strcmp(*argv,"-v") == 0) p->verbose++ ;
^ERROR: trailing statements should be on next line
#1863: FILE: tests/tcg/i386/litmus/utils.c:670:
+ else if (strcmp(*argv,"-v") == 0) p->verbose++ ;
ERROR: braces {} are necessary for all arms of this statement #1863: FILE: tests/tcg/i386/litmus/utils.c:670:
+ else if (strcmp(*argv,"-v") == 0) p->verbose++ ;
[...]
+ else if (strcmp(*argv,"-r") == 0) {
[...]
+ } else if (strcmp(*argv,"-fr") == 0) {
[...]
+ } else if (strcmp(*argv,"-s") == 0) {
[...]
+ } else if (d->stride > 0 && strcmp(*argv,"-st") == 0) {
[...]
+ } else if (strcmp(*argv,"-fs") == 0) {
[...]
+ } else if (strcmp(*argv,"-f") == 0) {
[...]
+ } else if (strcmp(*argv,"-n") == 0) {
[...]
+ } else if (strcmp(*argv,"-a") == 0) {
[...]
+ } else if (d->sync_n > 0 && strcmp(*argv,"-k") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-i") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-p") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ra") == 0) {
[...]
+ } else if (d->aff_custom_enabled && strcmp(*argv,"+ca") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ca") == 0) {
[...]
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+ta") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->shuffle >= 0 && strcmp(*argv,"+rm") == 0) {
[...]
+ } else if (d->shuffle >= 0 && strcmp(*argv,"-rm") == 0) {
[...]
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"+sc") == 0) {
[...]
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"-sc") == 0) {
[...]
+ } else if (!d->fix && strcmp(*argv,"+fix") == 0) {
[...]
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"+vb") == 0) {
[...]
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"-vb") == 0) {
[...]
+ } else if (d->prelude > 0 && strcmp(*argv,"-vp") == 0) {
[...]
+ } else if (d->delta_tb && strcmp(*argv,"-tb") == 0) {
[...]
+ } else if (d->delta_tb && strcmp(*argv,"-ta") == 0) {
[...]
+ } else if (d->prefetch && strcmp(*argv,"-prf") == 0) {
[...]
+ } else if (d->prefetch && strcmp(*argv,"-pra") == 0) {
[...]
+ } else if (d->static_prefetch >= 0 && strcmp(*argv,"-prs") == 0) {
[...]
+ } else if (d->max_loop > 0 && strcmp(*argv,"-l") == 0) {
[...]
+ } else usage(prog,d) ;
[...]
ERROR: suspect code indent for conditional statements (4, 6) #1864: FILE: tests/tcg/i386/litmus/utils.c:671:
+ else if (strcmp(*argv,"-r") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1864: FILE: tests/tcg/i386/litmus/utils.c:671:
+ else if (strcmp(*argv,"-r") == 0) {
^ERROR: braces {} are necessary for all arms of this statement #1864: FILE: tests/tcg/i386/litmus/utils.c:671:
+ else if (strcmp(*argv,"-r") == 0) {
[...]
+ } else if (strcmp(*argv,"-fr") == 0) {
[...]
+ } else if (strcmp(*argv,"-s") == 0) {
[...]
+ } else if (d->stride > 0 && strcmp(*argv,"-st") == 0) {
[...]
+ } else if (strcmp(*argv,"-fs") == 0) {
[...]
+ } else if (strcmp(*argv,"-f") == 0) {
[...]
+ } else if (strcmp(*argv,"-n") == 0) {
[...]
+ } else if (strcmp(*argv,"-a") == 0) {
[...]
+ } else if (d->sync_n > 0 && strcmp(*argv,"-k") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-i") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-p") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ra") == 0) {
[...]
+ } else if (d->aff_custom_enabled && strcmp(*argv,"+ca") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ca") == 0) {
[...]
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+ta") == 0) {
[...]
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
[...]
+ } else if (d->shuffle >= 0 && strcmp(*argv,"+rm") == 0) {
[...]
+ } else if (d->shuffle >= 0 && strcmp(*argv,"-rm") == 0) {
[...]
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"+sc") == 0) {
[...]
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"-sc") == 0) {
[...]
+ } else if (!d->fix && strcmp(*argv,"+fix") == 0) {
[...]
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"+vb") == 0) {
[...]
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"-vb") == 0) {
[...]
+ } else if (d->prelude > 0 && strcmp(*argv,"-vp") == 0) {
[...]
+ } else if (d->delta_tb && strcmp(*argv,"-tb") == 0) {
[...]
+ } else if (d->delta_tb && strcmp(*argv,"-ta") == 0) {
[...]
+ } else if (d->prefetch && strcmp(*argv,"-prf") == 0) {
[...]
+ } else if (d->prefetch && strcmp(*argv,"-pra") == 0) {
[...]
+ } else if (d->static_prefetch >= 0 && strcmp(*argv,"-prs") == 0) {
[...]
+ } else if (d->max_loop > 0 && strcmp(*argv,"-l") == 0) {
[...]
+ } else usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1866: FILE: tests/tcg/i386/litmus/utils.c:673:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1866: FILE: tests/tcg/i386/litmus/utils.c:673:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1866: FILE: tests/tcg/i386/litmus/utils.c:673:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1867: FILE: tests/tcg/i386/litmus/utils.c:674:
+ p->max_run = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1867: FILE: tests/tcg/i386/litmus/utils.c:674:
+ p->max_run = argint(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1868: FILE: tests/tcg/i386/litmus/utils.c:675:
+ } else if (strcmp(*argv,"-fr") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1868: FILE: tests/tcg/i386/litmus/utils.c:675:
+ } else if (strcmp(*argv,"-fr") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1870: FILE: tests/tcg/i386/litmus/utils.c:677:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1870: FILE: tests/tcg/i386/litmus/utils.c:677:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1870: FILE: tests/tcg/i386/litmus/utils.c:677:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1871: FILE: tests/tcg/i386/litmus/utils.c:678:
+ p->max_run *= argdouble(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1871: FILE: tests/tcg/i386/litmus/utils.c:678:
+ p->max_run *= argdouble(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1872: FILE: tests/tcg/i386/litmus/utils.c:679:
+ } else if (strcmp(*argv,"-s") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1872: FILE: tests/tcg/i386/litmus/utils.c:679:
+ } else if (strcmp(*argv,"-s") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1874: FILE: tests/tcg/i386/litmus/utils.c:681:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1874: FILE: tests/tcg/i386/litmus/utils.c:681:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1874: FILE: tests/tcg/i386/litmus/utils.c:681:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1875: FILE: tests/tcg/i386/litmus/utils.c:682:
+ p->size_of_test = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1875: FILE: tests/tcg/i386/litmus/utils.c:682:
+ p->size_of_test = argint(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1876: FILE: tests/tcg/i386/litmus/utils.c:683:
+ } else if (d->stride > 0 && strcmp(*argv,"-st") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1876: FILE: tests/tcg/i386/litmus/utils.c:683:
+ } else if (d->stride > 0 && strcmp(*argv,"-st") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1878: FILE: tests/tcg/i386/litmus/utils.c:685:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1878: FILE: tests/tcg/i386/litmus/utils.c:685:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1878: FILE: tests/tcg/i386/litmus/utils.c:685:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1879: FILE: tests/tcg/i386/litmus/utils.c:686:
+ p->stride = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1879: FILE: tests/tcg/i386/litmus/utils.c:686:
+ p->stride = argint(prog,argv[0],d) ;
^ERROR: trailing statements should be on next line
#1880: FILE: tests/tcg/i386/litmus/utils.c:687:
+ if (p->stride <= 0) p->stride = 1 ;
ERROR: braces {} are necessary for all arms of this statement #1880: FILE: tests/tcg/i386/litmus/utils.c:687:
+ if (p->stride <= 0) p->stride = 1 ;
[...]
ERROR: suspect code indent for conditional statements (4, 6) #1881: FILE: tests/tcg/i386/litmus/utils.c:688:
+ } else if (strcmp(*argv,"-fs") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1881: FILE: tests/tcg/i386/litmus/utils.c:688:
+ } else if (strcmp(*argv,"-fs") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1883: FILE: tests/tcg/i386/litmus/utils.c:690:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1883: FILE: tests/tcg/i386/litmus/utils.c:690:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1883: FILE: tests/tcg/i386/litmus/utils.c:690:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1884: FILE: tests/tcg/i386/litmus/utils.c:691:
+ p->size_of_test *= argdouble(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1884: FILE: tests/tcg/i386/litmus/utils.c:691:
+ p->size_of_test *= argdouble(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1885: FILE: tests/tcg/i386/litmus/utils.c:692:
+ } else if (strcmp(*argv,"-f") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1885: FILE: tests/tcg/i386/litmus/utils.c:692:
+ } else if (strcmp(*argv,"-f") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1887: FILE: tests/tcg/i386/litmus/utils.c:694:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1887: FILE: tests/tcg/i386/litmus/utils.c:694:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1887: FILE: tests/tcg/i386/litmus/utils.c:694:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1888: FILE: tests/tcg/i386/litmus/utils.c:695:
+ double f = argdouble(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1888: FILE: tests/tcg/i386/litmus/utils.c:695:
+ double f = argdouble(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1891: FILE: tests/tcg/i386/litmus/utils.c:698:
+ } else if (strcmp(*argv,"-n") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1891: FILE: tests/tcg/i386/litmus/utils.c:698:
+ } else if (strcmp(*argv,"-n") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1893: FILE: tests/tcg/i386/litmus/utils.c:700:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1893: FILE: tests/tcg/i386/litmus/utils.c:700:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1893: FILE: tests/tcg/i386/litmus/utils.c:700:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1894: FILE: tests/tcg/i386/litmus/utils.c:701:
+ p->n_exe = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1894: FILE: tests/tcg/i386/litmus/utils.c:701:
+ p->n_exe = argint(prog,argv[0],d) ;
^ERROR: trailing statements should be on next line
#1895: FILE: tests/tcg/i386/litmus/utils.c:702:
+ if (p->n_exe < 1) p->n_exe = 1 ;
ERROR: braces {} are necessary for all arms of this statement #1895: FILE: tests/tcg/i386/litmus/utils.c:702:
+ if (p->n_exe < 1) p->n_exe = 1 ;
[...]
ERROR: suspect code indent for conditional statements (4, 6) #1896: FILE: tests/tcg/i386/litmus/utils.c:703:
+ } else if (strcmp(*argv,"-a") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1896: FILE: tests/tcg/i386/litmus/utils.c:703:
+ } else if (strcmp(*argv,"-a") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1898: FILE: tests/tcg/i386/litmus/utils.c:705:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1898: FILE: tests/tcg/i386/litmus/utils.c:705:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1898: FILE: tests/tcg/i386/litmus/utils.c:705:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1899: FILE: tests/tcg/i386/litmus/utils.c:706:
+ int a = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1899: FILE: tests/tcg/i386/litmus/utils.c:706:
+ int a = argint(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1901: FILE: tests/tcg/i386/litmus/utils.c:708:
+ } else if (d->sync_n > 0 && strcmp(*argv,"-k") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1901: FILE: tests/tcg/i386/litmus/utils.c:708:
+ } else if (d->sync_n > 0 && strcmp(*argv,"-k") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1903: FILE: tests/tcg/i386/litmus/utils.c:710:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1903: FILE: tests/tcg/i386/litmus/utils.c:710:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1903: FILE: tests/tcg/i386/litmus/utils.c:710:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1904: FILE: tests/tcg/i386/litmus/utils.c:711:
+ int a = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1904: FILE: tests/tcg/i386/litmus/utils.c:711:
+ int a = argint(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1906: FILE: tests/tcg/i386/litmus/utils.c:713:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-i") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1906: FILE: tests/tcg/i386/litmus/utils.c:713:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-i") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1908: FILE: tests/tcg/i386/litmus/utils.c:715:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1908: FILE: tests/tcg/i386/litmus/utils.c:715:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1908: FILE: tests/tcg/i386/litmus/utils.c:715:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1909: FILE: tests/tcg/i386/litmus/utils.c:716:
+ int i = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1909: FILE: tests/tcg/i386/litmus/utils.c:716:
+ int i = argint(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1912: FILE: tests/tcg/i386/litmus/utils.c:719:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-p") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1912: FILE: tests/tcg/i386/litmus/utils.c:719:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"-p") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1914: FILE: tests/tcg/i386/litmus/utils.c:721:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1914: FILE: tests/tcg/i386/litmus/utils.c:721:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1914: FILE: tests/tcg/i386/litmus/utils.c:721:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1915: FILE: tests/tcg/i386/litmus/utils.c:722:
+ cpus_t *cpus = argcpus(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1915: FILE: tests/tcg/i386/litmus/utils.c:722:
+ cpus_t *cpus = argcpus(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1917: FILE: tests/tcg/i386/litmus/utils.c:724:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ra") == 0) {
+ p->aff_mode = aff_random ;
ERROR: space required after that ',' (ctx:VxV)
#1917: FILE: tests/tcg/i386/litmus/utils.c:724:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ra") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1919: FILE: tests/tcg/i386/litmus/utils.c:726:
+ } else if (d->aff_custom_enabled && strcmp(*argv,"+ca") == 0) {
+ p->aff_mode = aff_custom ;
ERROR: space required after that ',' (ctx:VxV)
#1919: FILE: tests/tcg/i386/litmus/utils.c:726:
+ } else if (d->aff_custom_enabled && strcmp(*argv,"+ca") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1921: FILE: tests/tcg/i386/litmus/utils.c:728:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ca") == 0) {
+ p->aff_mode = aff_random ;
ERROR: space required after that ',' (ctx:VxV)
#1921: FILE: tests/tcg/i386/litmus/utils.c:728:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+ca") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1923: FILE: tests/tcg/i386/litmus/utils.c:730:
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+sa") == 0) {
+ p->aff_mode = aff_scan ;
ERROR: space required after that ',' (ctx:VxV)
#1923: FILE: tests/tcg/i386/litmus/utils.c:730:
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+sa") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1925: FILE: tests/tcg/i386/litmus/utils.c:732:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
+ p->aff_mode = aff_random ;
ERROR: space required after that ',' (ctx:VxV)
#1925: FILE: tests/tcg/i386/litmus/utils.c:732:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1927: FILE: tests/tcg/i386/litmus/utils.c:734:
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+ta") == 0) {
+ p->aff_mode = aff_topo ;
ERROR: space required after that ',' (ctx:VxV)
#1927: FILE: tests/tcg/i386/litmus/utils.c:734:
+ } else if (d->aff_scan_enabled && strcmp(*argv,"+ta") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1930: FILE: tests/tcg/i386/litmus/utils.c:737:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1930: FILE: tests/tcg/i386/litmus/utils.c:737:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1930: FILE: tests/tcg/i386/litmus/utils.c:737:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: suspect code indent for conditional statements (4, 6) #1932: FILE: tests/tcg/i386/litmus/utils.c:739:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
+ p->aff_mode = aff_random ;
ERROR: space required after that ',' (ctx:VxV)
#1932: FILE: tests/tcg/i386/litmus/utils.c:739:
+ } else if (d->aff_mode != aff_none && strcmp(*argv,"+sa") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1934: FILE: tests/tcg/i386/litmus/utils.c:741:
+ } else if (d->shuffle >= 0 && strcmp(*argv,"+rm") == 0) {
+ p->shuffle = 1 ;
ERROR: space required after that ',' (ctx:VxV)
#1934: FILE: tests/tcg/i386/litmus/utils.c:741:
+ } else if (d->shuffle >= 0 && strcmp(*argv,"+rm") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1936: FILE: tests/tcg/i386/litmus/utils.c:743:
+ } else if (d->shuffle >= 0 && strcmp(*argv,"-rm") == 0) {
+ p->shuffle = 0 ;
ERROR: space required after that ',' (ctx:VxV)
#1936: FILE: tests/tcg/i386/litmus/utils.c:743:
+ } else if (d->shuffle >= 0 && strcmp(*argv,"-rm") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1938: FILE: tests/tcg/i386/litmus/utils.c:745:
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"+sc") == 0) {
+ p->speedcheck = 1 ;
ERROR: space required after that ',' (ctx:VxV)
#1938: FILE: tests/tcg/i386/litmus/utils.c:745:
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"+sc") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1940: FILE: tests/tcg/i386/litmus/utils.c:747:
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"-sc") == 0) {
+ p->speedcheck = 0 ;
ERROR: space required after that ',' (ctx:VxV)
#1940: FILE: tests/tcg/i386/litmus/utils.c:747:
+ } else if (d->speedcheck >= 0 && strcmp(*argv,"-sc") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1942: FILE: tests/tcg/i386/litmus/utils.c:749:
+ } else if (!d->fix && strcmp(*argv,"+fix") == 0) {
+ p->fix = 1 ;
ERROR: space required after that ',' (ctx:VxV)
#1942: FILE: tests/tcg/i386/litmus/utils.c:749:
+ } else if (!d->fix && strcmp(*argv,"+fix") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1944: FILE: tests/tcg/i386/litmus/utils.c:751:
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"+vb") == 0) {
+ p->verbose_barrier++ ;
ERROR: space required after that ',' (ctx:VxV)
#1944: FILE: tests/tcg/i386/litmus/utils.c:751:
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"+vb") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1946: FILE: tests/tcg/i386/litmus/utils.c:753:
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"-vb") == 0) {
+ p->verbose_barrier = 0 ;
ERROR: space required after that ',' (ctx:VxV)
#1946: FILE: tests/tcg/i386/litmus/utils.c:753:
+ } else if (d->verbose_barrier >= 0 && strcmp(*argv,"-vb") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1948: FILE: tests/tcg/i386/litmus/utils.c:755:
+ } else if (d->prelude > 0 && strcmp(*argv,"-vp") == 0) {
+ p->prelude = 0 ;
ERROR: space required after that ',' (ctx:VxV)
#1948: FILE: tests/tcg/i386/litmus/utils.c:755:
+ } else if (d->prelude > 0 && strcmp(*argv,"-vp") == 0) {
^ERROR: suspect code indent for conditional statements (4, 6) #1950: FILE: tests/tcg/i386/litmus/utils.c:757:
+ } else if (d->delta_tb && strcmp(*argv,"-tb") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1950: FILE: tests/tcg/i386/litmus/utils.c:757:
+ } else if (d->delta_tb && strcmp(*argv,"-tb") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1952: FILE: tests/tcg/i386/litmus/utils.c:759:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1952: FILE: tests/tcg/i386/litmus/utils.c:759:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1952: FILE: tests/tcg/i386/litmus/utils.c:759:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1953: FILE: tests/tcg/i386/litmus/utils.c:760:
+ argints(prog,d,argv[0],p->delta_tb) ;
^ERROR: space required after that ',' (ctx:VxV)
#1953: FILE: tests/tcg/i386/litmus/utils.c:760:
+ argints(prog,d,argv[0],p->delta_tb) ;
^ERROR: space required after that ',' (ctx:VxV)
#1953: FILE: tests/tcg/i386/litmus/utils.c:760:
+ argints(prog,d,argv[0],p->delta_tb) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1954: FILE: tests/tcg/i386/litmus/utils.c:761:
+ } else if (d->delta_tb && strcmp(*argv,"-ta") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1954: FILE: tests/tcg/i386/litmus/utils.c:761:
+ } else if (d->delta_tb && strcmp(*argv,"-ta") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1956: FILE: tests/tcg/i386/litmus/utils.c:763:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1956: FILE: tests/tcg/i386/litmus/utils.c:763:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1956: FILE: tests/tcg/i386/litmus/utils.c:763:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1957: FILE: tests/tcg/i386/litmus/utils.c:764:
+ int da = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1957: FILE: tests/tcg/i386/litmus/utils.c:764:
+ int da = argint(prog,argv[0],d) ;
^ERROR: trailing statements should be on next line
#1958: FILE: tests/tcg/i386/litmus/utils.c:765:
+ for (int k = 0 ; k < p->delta_tb->sz ; k++) p->delta_tb->t[k] = da ;
ERROR: braces {} are necessary even for single statement blocks #1958: FILE: tests/tcg/i386/litmus/utils.c:765:
+ for (int k = 0 ; k < p->delta_tb->sz ; k++) p->delta_tb->t[k] = da ;
ERROR: suspect code indent for conditional statements (4, 6) #1959: FILE: tests/tcg/i386/litmus/utils.c:766:
+ } else if (d->prefetch && strcmp(*argv,"-prf") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1959: FILE: tests/tcg/i386/litmus/utils.c:766:
+ } else if (d->prefetch && strcmp(*argv,"-prf") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1961: FILE: tests/tcg/i386/litmus/utils.c:768:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1961: FILE: tests/tcg/i386/litmus/utils.c:768:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1961: FILE: tests/tcg/i386/litmus/utils.c:768:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1962: FILE: tests/tcg/i386/litmus/utils.c:769:
+ argprefetch(prog,d,argv[0],p->prefetch) ;
^ERROR: space required after that ',' (ctx:VxV)
#1962: FILE: tests/tcg/i386/litmus/utils.c:769:
+ argprefetch(prog,d,argv[0],p->prefetch) ;
^ERROR: space required after that ',' (ctx:VxV)
#1962: FILE: tests/tcg/i386/litmus/utils.c:769:
+ argprefetch(prog,d,argv[0],p->prefetch) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1963: FILE: tests/tcg/i386/litmus/utils.c:770:
+ } else if (d->prefetch && strcmp(*argv,"-pra") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1963: FILE: tests/tcg/i386/litmus/utils.c:770:
+ } else if (d->prefetch && strcmp(*argv,"-pra") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1965: FILE: tests/tcg/i386/litmus/utils.c:772:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1965: FILE: tests/tcg/i386/litmus/utils.c:772:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1965: FILE: tests/tcg/i386/litmus/utils.c:772:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1966: FILE: tests/tcg/i386/litmus/utils.c:773:
+ argoneprefetch(prog,d,argv[0],p->prefetch) ;
^ERROR: space required after that ',' (ctx:VxV)
#1966: FILE: tests/tcg/i386/litmus/utils.c:773:
+ argoneprefetch(prog,d,argv[0],p->prefetch) ;
^ERROR: space required after that ',' (ctx:VxV)
#1966: FILE: tests/tcg/i386/litmus/utils.c:773:
+ argoneprefetch(prog,d,argv[0],p->prefetch) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1967: FILE: tests/tcg/i386/litmus/utils.c:774:
+ } else if (d->static_prefetch >= 0 && strcmp(*argv,"-prs") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1967: FILE: tests/tcg/i386/litmus/utils.c:774:
+ } else if (d->static_prefetch >= 0 && strcmp(*argv,"-prs") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1969: FILE: tests/tcg/i386/litmus/utils.c:776:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1969: FILE: tests/tcg/i386/litmus/utils.c:776:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1969: FILE: tests/tcg/i386/litmus/utils.c:776:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1970: FILE: tests/tcg/i386/litmus/utils.c:777:
+ int prs = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1970: FILE: tests/tcg/i386/litmus/utils.c:777:
+ int prs = argint(prog,argv[0],d) ;
^ERROR: suspect code indent for conditional statements (4, 6) #1972: FILE: tests/tcg/i386/litmus/utils.c:779:
+ } else if (d->max_loop > 0 && strcmp(*argv,"-l") == 0) {
+ --argc ; ++argv ;
ERROR: space required after that ',' (ctx:VxV)
#1972: FILE: tests/tcg/i386/litmus/utils.c:779:
+ } else if (d->max_loop > 0 && strcmp(*argv,"-l") == 0) {
^ERROR: space required after that ',' (ctx:VxV)
#1974: FILE: tests/tcg/i386/litmus/utils.c:781:
+ if (!*argv) usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1974: FILE: tests/tcg/i386/litmus/utils.c:781:
+ if (!*argv) usage(prog,d) ;
ERROR: braces {} are necessary for all arms of this statement #1974: FILE: tests/tcg/i386/litmus/utils.c:781:
+ if (!*argv) usage(prog,d) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1975: FILE: tests/tcg/i386/litmus/utils.c:782:
+ int i = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1975: FILE: tests/tcg/i386/litmus/utils.c:782:
+ int i = argint(prog,argv[0],d) ;
^ERROR: space required after that ',' (ctx:VxV)
#1977: FILE: tests/tcg/i386/litmus/utils.c:784:
+ } else usage(prog,d) ;
^ERROR: trailing statements should be on next line
#1977: FILE: tests/tcg/i386/litmus/utils.c:784:
+ } else usage(prog,d) ;
ERROR: trailing statements should be on next line
#1981: FILE: tests/tcg/i386/litmus/utils.c:788:
+ if (argc == 0) return ;
ERROR: braces {} are necessary for all arms of this statement #1981: FILE: tests/tcg/i386/litmus/utils.c:788:
+ if (argc == 0) return ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#1982: FILE: tests/tcg/i386/litmus/utils.c:789:
+ usage(prog,d) ;
^ERROR: open brace '{' following function declarations go on the next line #1991: FILE: tests/tcg/i386/litmus/utils.c:798:
+pm_t *pm_create(void) {
ERROR: space required after that ',' (ctx:VxV)
#1993: FILE: tests/tcg/i386/litmus/utils.c:800:
+ int ret = pthread_mutex_init(p,NULL) ;
^ERROR: space required after that ',' (ctx:VxV)
#1994: FILE: tests/tcg/i386/litmus/utils.c:801:
+ if (ret) { errexit("mutex_init",ret) ; }
^
ERROR: trailing statements should be on next line
#1994: FILE: tests/tcg/i386/litmus/utils.c:801:
+ if (ret) { errexit("mutex_init",ret) ; }
ERROR: open brace '{' following function declarations go on the next line #1998: FILE: tests/tcg/i386/litmus/utils.c:805:
+void pm_free(pm_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2002: FILE: tests/tcg/i386/litmus/utils.c:809:
+void pm_lock(pm_t *m) {
ERROR: space required after that ',' (ctx:VxV)
#2004: FILE: tests/tcg/i386/litmus/utils.c:811:
+ if (ret) { errexit("mutex_lock",ret) ; }
^
ERROR: trailing statements should be on next line
#2004: FILE: tests/tcg/i386/litmus/utils.c:811:
+ if (ret) { errexit("mutex_lock",ret) ; }
ERROR: open brace '{' following function declarations go on the next line #2007: FILE: tests/tcg/i386/litmus/utils.c:814:
+void pm_unlock(pm_t *m) {
ERROR: space required after that ',' (ctx:VxV)
#2009: FILE: tests/tcg/i386/litmus/utils.c:816:
+ if (ret) { errexit("mutex_unlock",ret) ; }
^
ERROR: trailing statements should be on next line
#2009: FILE: tests/tcg/i386/litmus/utils.c:816:
+ if (ret) { errexit("mutex_unlock",ret) ; }
ERROR: open brace '{' following function declarations go on the next line #2014: FILE: tests/tcg/i386/litmus/utils.c:821:
+pc_t *pc_create(void) {
ERROR: space required after that ',' (ctx:VxV)
#2018: FILE: tests/tcg/i386/litmus/utils.c:825:
+ int e = pthread_cond_init(p->c_cond,NULL) ;
^ERROR: space required after that ',' (ctx:VxV)
#2019: FILE: tests/tcg/i386/litmus/utils.c:826:
+ if (e) { errexit("cond_init",e); }
^
ERROR: trailing statements should be on next line
#2019: FILE: tests/tcg/i386/litmus/utils.c:826:
+ if (e) { errexit("cond_init",e); }
ERROR: open brace '{' following function declarations go on the next line #2023: FILE: tests/tcg/i386/litmus/utils.c:830:
+void pc_free(pc_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2029: FILE: tests/tcg/i386/litmus/utils.c:836:
+static void pc_lock(pc_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2033: FILE: tests/tcg/i386/litmus/utils.c:840:
+static void pc_unlock(pc_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2037: FILE: tests/tcg/i386/litmus/utils.c:844:
+void pc_wait(pc_t *p) {
ERROR: space required after that ',' (ctx:VxV)
#2039: FILE: tests/tcg/i386/litmus/utils.c:846:
+ if (e) { errexit("cond_wait",e) ; }
^
ERROR: trailing statements should be on next line
#2039: FILE: tests/tcg/i386/litmus/utils.c:846:
+ if (e) { errexit("cond_wait",e) ; }
ERROR: space prohibited between function name and open parenthesis '(' #2042: FILE: tests/tcg/i386/litmus/utils.c:849:
+void pc_broadcast (pc_t *p) {
ERROR: space required after that ',' (ctx:VxV)
#2044: FILE: tests/tcg/i386/litmus/utils.c:851:
+ if (e) { errexit("cond_broadcast",e) ; }
^
ERROR: trailing statements should be on next line
#2044: FILE: tests/tcg/i386/litmus/utils.c:851:
+ if (e) { errexit("cond_broadcast",e) ; }
ERROR: open brace '{' following function declarations go on the next line #2047: FILE: tests/tcg/i386/litmus/utils.c:854:
+static void pc_signal(pc_t *p) {
ERROR: space required after that ',' (ctx:VxV)
#2049: FILE: tests/tcg/i386/litmus/utils.c:856:
+ if (e) errexit("cond_signal",e) ;
^ERROR: trailing statements should be on next line
#2049: FILE: tests/tcg/i386/litmus/utils.c:856:
+ if (e) errexit("cond_signal",e) ;
ERROR: braces {} are necessary for all arms of this statement #2049: FILE: tests/tcg/i386/litmus/utils.c:856:
+ if (e) errexit("cond_signal",e) ;
[...]
ERROR: open brace '{' following function declarations go on the next line #2056: FILE: tests/tcg/i386/litmus/utils.c:863:
+pb_t *pb_create(int nprocs) {
ERROR: open brace '{' following function declarations go on the next line #2064: FILE: tests/tcg/i386/litmus/utils.c:871:
+void pb_free(pb_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2070: FILE: tests/tcg/i386/litmus/utils.c:877:
+void pb_wait(pb_t *p) {
ERROR: suspect code indent for conditional statements (4, 6) #2079: FILE: tests/tcg/i386/litmus/utils.c:886:
+ do {
+ pc_wait(p->cond) ;
ERROR: open brace '{' following function declarations go on the next line #2089: FILE: tests/tcg/i386/litmus/utils.c:896:
+po_t *po_create(int nprocs) {
ERROR: open brace '{' following function declarations go on the next line #2098: FILE: tests/tcg/i386/litmus/utils.c:905:
+void po_free(po_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2103: FILE: tests/tcg/i386/litmus/utils.c:910:
+void po_reinit(po_t *p) {
ERROR: suspect code indent for conditional statements (4, 6) #2113: FILE: tests/tcg/i386/litmus/utils.c:920:
+ do {
+ pc_wait(p->cond) ;
ERROR: open brace '{' following function declarations go on the next line #2120: FILE: tests/tcg/i386/litmus/utils.c:927:
+int po_wait(po_t *p, int v) {
ERROR: suspect code indent for conditional statements (4, 6) #2130: FILE: tests/tcg/i386/litmus/utils.c:937:
+ do {
+ pc_wait(p->cond) ;
ERROR: open brace '{' following function declarations go on the next line #2142: FILE: tests/tcg/i386/litmus/utils.c:949:
+op_t *op_create(void) {
ERROR: open brace '{' following function declarations go on the next line #2150: FILE: tests/tcg/i386/litmus/utils.c:957:
+void op_free(op_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2155: FILE: tests/tcg/i386/litmus/utils.c:962:
+void op_set(op_t *p, void *v) {
ERROR: trailing statements should be on next line
#2157: FILE: tests/tcg/i386/litmus/utils.c:964:
+ if (p->some) { fatal("op_set") ; }
ERROR: open brace '{' following function declarations go on the next line #2164: FILE: tests/tcg/i386/litmus/utils.c:971:
+void *op_get(op_t *p) {
ERROR: open brace '{' following function declarations go on the next line #2179: FILE: tests/tcg/i386/litmus/utils.c:986:
+void launch(pthread_t *th, f_t *f, void *a) {
ERROR: space required after that ',' (ctx:VxV)
#2180: FILE: tests/tcg/i386/litmus/utils.c:987:
+ int e = pthread_create(th,NULL,f,a);
^ERROR: space required after that ',' (ctx:VxV)
#2180: FILE: tests/tcg/i386/litmus/utils.c:987:
+ int e = pthread_create(th,NULL,f,a);
^ERROR: space required after that ',' (ctx:VxV)
#2180: FILE: tests/tcg/i386/litmus/utils.c:987:
+ int e = pthread_create(th,NULL,f,a);
^ERROR: space required after that ',' (ctx:VxV)
#2181: FILE: tests/tcg/i386/litmus/utils.c:988:
+ if (e) errexit("phread_create",e);
^ERROR: trailing statements should be on next line
#2181: FILE: tests/tcg/i386/litmus/utils.c:988:
+ if (e) errexit("phread_create",e);
ERROR: braces {} are necessary for all arms of this statement #2181: FILE: tests/tcg/i386/litmus/utils.c:988:
+ if (e) errexit("phread_create",e);
[...]
ERROR: open brace '{' following function declarations go on the next line #2184: FILE: tests/tcg/i386/litmus/utils.c:991:
+void *join(pthread_t *th) {
ERROR: space required after that ',' (ctx:VxO)
#2186: FILE: tests/tcg/i386/litmus/utils.c:993:
+ int e = pthread_join(*th,&r) ;
^ERROR: space required before that '&' (ctx:OxV)
#2186: FILE: tests/tcg/i386/litmus/utils.c:993:
+ int e = pthread_join(*th,&r) ;
^ERROR: space required after that ',' (ctx:VxV)
#2187: FILE: tests/tcg/i386/litmus/utils.c:994:
+ if (e) errexit("pthread_join",e);
^ERROR: trailing statements should be on next line
#2187: FILE: tests/tcg/i386/litmus/utils.c:994:
+ if (e) errexit("pthread_join",e);
ERROR: braces {} are necessary for all arms of this statement #2187: FILE: tests/tcg/i386/litmus/utils.c:994:
+ if (e) errexit("pthread_join",e);
[...]
ERROR: open brace '{' following function declarations go on the next line #2199: FILE: tests/tcg/i386/litmus/utils.c:1006:
+static void *zyva_det(void *_b) {
ERROR: space required after that ',' (ctx:VxV)
#2206: FILE: tests/tcg/i386/litmus/utils.c:1013:
+ if (e) errexit("pthread_detach",e) ;
^ERROR: trailing statements should be on next line
#2206: FILE: tests/tcg/i386/litmus/utils.c:1013:
+ if (e) errexit("pthread_detach",e) ;
ERROR: braces {} are necessary for all arms of this statement #2206: FILE: tests/tcg/i386/litmus/utils.c:1013:
+ if (e) errexit("pthread_detach",e) ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#2208: FILE: tests/tcg/i386/litmus/utils.c:1015:
+ op_set(op,r) ;
^ERROR: open brace '{' following function declarations go on the next line #2212: FILE: tests/tcg/i386/litmus/utils.c:1019:
+op_t *launch_detached(f_t *f,void *a) {
ERROR: space required after that ',' (ctx:VxV)
#2212: FILE: tests/tcg/i386/litmus/utils.c:1019:
+op_t *launch_detached(f_t *f,void *a) {
^ERROR: space required after that ',' (ctx:VxV)
#2217: FILE: tests/tcg/i386/litmus/utils.c:1024:
+ launch(&th,zyva_det,b) ;
^ERROR: space required after that ',' (ctx:VxV)
#2217: FILE: tests/tcg/i386/litmus/utils.c:1024:
+ launch(&th,zyva_det,b) ;
^ERROR: open brace '{' following function declarations go on the next line #2221: FILE: tests/tcg/i386/litmus/utils.c:1028:
+void *join_detached(op_t *op) {
ERROR: open brace '{' following function declarations go on the next line #2229: FILE: tests/tcg/i386/litmus/utils.c:1036:
+void *start_thread(void *_a) {
ERROR: trailing statements should be on next line
#2234: FILE: tests/tcg/i386/litmus/utils.c:1041:
+ if (f == NULL) break ;
ERROR: braces {} are necessary for all arms of this statement #2234: FILE: tests/tcg/i386/litmus/utils.c:1041:
+ if (f == NULL) break ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#2236: FILE: tests/tcg/i386/litmus/utils.c:1043:
+ op_set(_b->op_ret,ret) ;
^ERROR: open brace '{' following function declarations go on the next line #2245: FILE: tests/tcg/i386/litmus/utils.c:1052:
+void perm_prefix_ints(unsigned *st,int *_t, int m, int n) {
ERROR: space required after that ',' (ctx:VxV)
#2245: FILE: tests/tcg/i386/litmus/utils.c:1052:
+void perm_prefix_ints(unsigned *st,int *_t, int m, int n) {
^ERROR: spaces required around that '+' (ctx:VxV)
#2248: FILE: tests/tcg/i386/litmus/utils.c:1055:
+ int j = k+rand_k(st,n-k);
^ERROR: space required after that ',' (ctx:VxV)
#2248: FILE: tests/tcg/i386/litmus/utils.c:1055:
+ int j = k+rand_k(st,n-k);
^ERROR: spaces required around that '-' (ctx:VxV)
#2248: FILE: tests/tcg/i386/litmus/utils.c:1055:
+ int j = k+rand_k(st,n-k);
^ERROR: open brace '{' following function declarations go on the next line #2253: FILE: tests/tcg/i386/litmus/utils.c:1060:
+void perm_ints(unsigned *st,int *_t, int n) {
ERROR: space required after that ',' (ctx:VxV)
#2253: FILE: tests/tcg/i386/litmus/utils.c:1060:
+void perm_ints(unsigned *st,int *_t, int n) {
^ERROR: space required after that ',' (ctx:VxV)
#2254: FILE: tests/tcg/i386/litmus/utils.c:1061:
+ perm_prefix_ints(st, _t,n-1,n) ;
^ERROR: spaces required around that '-' (ctx:VxV)
#2254: FILE: tests/tcg/i386/litmus/utils.c:1061:
+ perm_prefix_ints(st, _t,n-1,n) ;
^ERROR: space required after that ',' (ctx:VxV)
#2254: FILE: tests/tcg/i386/litmus/utils.c:1061:
+ perm_prefix_ints(st, _t,n-1,n) ;
^ERROR: open brace '{' following function declarations go on the next line #2257: FILE: tests/tcg/i386/litmus/utils.c:1064:
+void perm_funs(unsigned *st,f_t *fun[], int n) {
ERROR: space required after that ',' (ctx:VxV)
#2257: FILE: tests/tcg/i386/litmus/utils.c:1064:
+void perm_funs(unsigned *st,f_t *fun[], int n) {
^ERROR: spaces required around that '-' (ctx:VxV)
#2259: FILE: tests/tcg/i386/litmus/utils.c:1066:
+ for (k = 0 ; k < n-1 ; k++) {
^ERROR: spaces required around that '+' (ctx:VxV)
#2260: FILE: tests/tcg/i386/litmus/utils.c:1067:
+ int j = k+rand_k(st,n-k);
^ERROR: space required after that ',' (ctx:VxV)
#2260: FILE: tests/tcg/i386/litmus/utils.c:1067:
+ int j = k+rand_k(st,n-k);
^ERROR: spaces required around that '-' (ctx:VxV)
#2260: FILE: tests/tcg/i386/litmus/utils.c:1067:
+ int j = k+rand_k(st,n-k);
^ERROR: open brace '{' following function declarations go on the next line #2266: FILE: tests/tcg/i386/litmus/utils.c:1073:
+void perm_ops(unsigned *st,op_t *op[], int n) {
ERROR: space required after that ',' (ctx:VxV)
#2266: FILE: tests/tcg/i386/litmus/utils.c:1073:
+void perm_ops(unsigned *st,op_t *op[], int n) {
^ERROR: spaces required around that '-' (ctx:VxV)
#2268: FILE: tests/tcg/i386/litmus/utils.c:1075:
+ for (k = 0 ; k < n-1 ; k++) {
^ERROR: spaces required around that '+' (ctx:VxV)
#2269: FILE: tests/tcg/i386/litmus/utils.c:1076:
+ int j = k+rand_k(st,n-k);
^ERROR: space required after that ',' (ctx:VxV)
#2269: FILE: tests/tcg/i386/litmus/utils.c:1076:
+ int j = k+rand_k(st,n-k);
^ERROR: spaces required around that '-' (ctx:VxV)
#2269: FILE: tests/tcg/i386/litmus/utils.c:1076:
+ int j = k+rand_k(st,n-k);
^ERROR: open brace '{' following function declarations go on the next line #2275: FILE: tests/tcg/i386/litmus/utils.c:1082:
+void perm_threads(unsigned *st,pthread_t thread[], int n) {
ERROR: space required after that ',' (ctx:VxV)
#2275: FILE: tests/tcg/i386/litmus/utils.c:1082:
+void perm_threads(unsigned *st,pthread_t thread[], int n) {
^ERROR: spaces required around that '-' (ctx:VxV)
#2277: FILE: tests/tcg/i386/litmus/utils.c:1084:
+ for (k = 0 ; k < n-1 ; k++) {
^ERROR: spaces required around that '+' (ctx:VxV)
#2278: FILE: tests/tcg/i386/litmus/utils.c:1085:
+ int j = k+rand_k(st,n-k);
^ERROR: space required after that ',' (ctx:VxV)
#2278: FILE: tests/tcg/i386/litmus/utils.c:1085:
+ int j = k+rand_k(st,n-k);
^ERROR: spaces required around that '-' (ctx:VxV)
#2278: FILE: tests/tcg/i386/litmus/utils.c:1085:
+ int j = k+rand_k(st,n-k);
^ERROR: open brace '{' following function declarations go on the next line #2284: FILE: tests/tcg/i386/litmus/utils.c:1091:
+static int int_cmp(const void *_p, const void *_q) {
ERROR: trailing statements should be on next line
#2287: FILE: tests/tcg/i386/litmus/utils.c:1094:
+ if (x < y) return -1 ;
ERROR: braces {} are necessary for all arms of this statement #2287: FILE: tests/tcg/i386/litmus/utils.c:1094:
+ if (x < y) return -1 ;
[...]
+ else if (x > y) return 1 ;
[...]
+ else return 0 ;
[...]
ERROR: trailing statements should be on next line
#2288: FILE: tests/tcg/i386/litmus/utils.c:1095:
+ else if (x > y) return 1 ;
ERROR: braces {} are necessary for all arms of this statement #2288: FILE: tests/tcg/i386/litmus/utils.c:1095:
+ else if (x > y) return 1 ;
[...]
+ else return 0 ;
[...]
ERROR: trailing statements should be on next line
#2289: FILE: tests/tcg/i386/litmus/utils.c:1096:
+ else return 0 ;
ERROR: open brace '{' following function declarations go on the next line #2292: FILE: tests/tcg/i386/litmus/utils.c:1099:
+int check_shuffle(int **t, int *min, int sz) {
ERROR: spaces required around that '*' (ctx:VxV)
#2293: FILE: tests/tcg/i386/litmus/utils.c:1100:
+ int *idx = malloc_check(sizeof(*idx)*sz) ;
^ERROR: spaces required around that '=' (ctx:VxV)
#2294: FILE: tests/tcg/i386/litmus/utils.c:1101:
+ for (int k=0 ; k < sz ; k++) {
^ERROR: do not use C99 // comments
#2296: FILE: tests/tcg/i386/litmus/utils.c:1103:
+ // fprintf(stderr," %i",idx[k]) ;
ERROR: do not use C99 // comments
#2298: FILE: tests/tcg/i386/litmus/utils.c:1105:
+ // fprintf(stderr,"\n") ;
ERROR: space required after that ',' (ctx:VxV)
#2299: FILE: tests/tcg/i386/litmus/utils.c:1106:
+ qsort(&idx[0],sz, sizeof(idx[0]), int_cmp) ;
^ERROR: spaces required around that '=' (ctx:VxV)
#2300: FILE: tests/tcg/i386/litmus/utils.c:1107:
+ for (int k=0 ; k < sz ; k++) {
^ERROR: suspect code indent for conditional statements (4, 6) #2301: FILE: tests/tcg/i386/litmus/utils.c:1108:
+ if (idx[k] != k) {
+ free(idx) ;
ERROR: open brace '{' following function declarations go on the next line #2317: FILE: tests/tcg/i386/litmus/utils.c:1124:
+tsc_t timeofday(void) {
ERROR: space required after that ',' (ctx:VxV)
#2319: FILE: tests/tcg/i386/litmus/utils.c:1126:
+ if (gettimeofday(&tv,NULL)) errexit("gettimeoday",errno) ;
^ERROR: space required after that ',' (ctx:VxV)
#2319: FILE: tests/tcg/i386/litmus/utils.c:1126:
+ if (gettimeofday(&tv,NULL)) errexit("gettimeoday",errno) ;
^ERROR: trailing statements should be on next line #2319: FILE: tests/tcg/i386/litmus/utils.c:1126:
+ if (gettimeofday(&tv,NULL)) errexit("gettimeoday",errno) ;
ERROR: braces {} are necessary for all arms of this statement #2319: FILE: tests/tcg/i386/litmus/utils.c:1126:
+ if (gettimeofday(&tv,NULL)) errexit("gettimeoday",errno) ; [...]
ERROR: open brace '{' following function declarations go on the next line #2323: FILE: tests/tcg/i386/litmus/utils.c:1130:
+double tsc_ratio(tsc_t t1, tsc_t t2) {
ERROR: open brace '{' following function declarations go on the next line #2328: FILE: tests/tcg/i386/litmus/utils.c:1135:
+double tsc_millions(tsc_t t) {
ERROR: open brace '{' following function declarations go on the next line #2336: FILE: tests/tcg/i386/litmus/utils.c:1143:
+int find_string(char *t[], int sz, char *s) {
ERROR: space required after that ',' (ctx:VxV)
#2338: FILE: tests/tcg/i386/litmus/utils.c:1145:
+ if (strcmp(t[k],s) == 0) return k ;
^ERROR: trailing statements should be on next line
#2338: FILE: tests/tcg/i386/litmus/utils.c:1145:
+ if (strcmp(t[k],s) == 0) return k ;
ERROR: braces {} are necessary for all arms of this statement #2338: FILE: tests/tcg/i386/litmus/utils.c:1145:
+ if (strcmp(t[k],s) == 0) return k ;
[...]
ERROR: space required after that ',' (ctx:VxV)
#2378: FILE: tests/tcg/i386/litmus/utils.h:31:
+int log_error(const char *fmt,...) ;
^ERROR: space required after that ',' (ctx:VxV)
#2382: FILE: tests/tcg/i386/litmus/utils.h:35:
+void errexit(char *msg,int e) ;
^ERROR: space required after that ',' (ctx:VxV)
#2386: FILE: tests/tcg/i386/litmus/utils.h:39:
+int max(int n,int m) ;
^ERROR: space prohibited between function name and open parenthesis '(' #2388: FILE: tests/tcg/i386/litmus/utils.h:41:
+void pp_ints (FILE *fp,int *p,int n) ;
ERROR: space required after that ',' (ctx:VxV)
#2388: FILE: tests/tcg/i386/litmus/utils.h:41:
+void pp_ints (FILE *fp,int *p,int n) ;
^ERROR: space required after that ',' (ctx:VxV)
#2388: FILE: tests/tcg/i386/litmus/utils.h:41:
+void pp_ints (FILE *fp,int *p,int n) ;
^ERROR: space required after that ',' (ctx:VxV)
#2394: FILE: tests/tcg/i386/litmus/utils.h:47:
+void cat_file(char *path,char *msg,FILE *out) ;
^ERROR: space required after that ',' (ctx:VxV)
#2394: FILE: tests/tcg/i386/litmus/utils.h:47:
+void cat_file(char *path,char *msg,FILE *out) ;
^ERROR: space required after that ',' (ctx:VxV)
#2410: FILE: tests/tcg/i386/litmus/utils.h:63:
+void cpus_dump_test(FILE *fp, int *p, int sz, cpus_t *cm,int nprocs) ;
^ERROR: space required after that ',' (ctx:VxV)
#2418: FILE: tests/tcg/i386/litmus/utils.h:71:
+(st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) ;
^ERROR: space required after that ',' (ctx:VxV)
#2418: FILE: tests/tcg/i386/litmus/utils.h:71:
+(st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) ;
^ERROR: space required after that ',' (ctx:VxV)
#2418: FILE: tests/tcg/i386/litmus/utils.h:71:
+(st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) ;
^ERROR: space required after that ',' (ctx:VxV)
#2418: FILE: tests/tcg/i386/litmus/utils.h:71:
+(st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) ;
^ERROR: space required after that ',' (ctx:VxV)
#2418: FILE: tests/tcg/i386/litmus/utils.h:71:
+(st_t *st,cpus_t *cm,int **color,int *diff,cpus_t *aff_cpus,int n_exe, int *r) ;
^ERROR: open brace '{' following enum go on the same line #2456: FILE: tests/tcg/i386/litmus/utils.h:109:
+typedef enum
+ { aff_none, aff_incr, aff_random, aff_custom,
ERROR: "foo * bar" should be "foo *bar"
#2480: FILE: tests/tcg/i386/litmus/utils.h:133:
+ ints_t * delta_tb ;
ERROR: space prohibited between function name and open parenthesis '(' #2520: FILE: tests/tcg/i386/litmus/utils.h:173:
+void pc_broadcast (pc_t *p) ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #2527: FILE: tests/tcg/i386/litmus/utils.h:180:
+ volatile unsigned int count ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #2528: FILE: tests/tcg/i386/litmus/utils.h:181:
+ volatile int turn ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #2545: FILE: tests/tcg/i386/litmus/utils.h:198:
+ volatile int val ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #2546: FILE: tests/tcg/i386/litmus/utils.h:199:
+ volatile int turn ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #2560: FILE: tests/tcg/i386/litmus/utils.h:213:
+ int volatile some ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #2561: FILE: tests/tcg/i386/litmus/utils.h:214:
+ void * volatile val ;
ERROR: space required after that ',' (ctx:VxV)
#2579: FILE: tests/tcg/i386/litmus/utils.h:232:
+op_t *launch_detached(f_t *f,void *a) ;
^ERROR: space required after that ',' (ctx:VxO)
#2586: FILE: tests/tcg/i386/litmus/utils.h:239:
+ op_t *op_arg,*op_ret ;
^ERROR: space required before that '*' (ctx:OxV)
#2586: FILE: tests/tcg/i386/litmus/utils.h:239:
+ op_t *op_arg,*op_ret ;
^ERROR: space required after that ',' (ctx:VxV)
#2598: FILE: tests/tcg/i386/litmus/utils.h:251:
+void perm_prefix_ints(st_t *st,int t[], int used, int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#2599: FILE: tests/tcg/i386/litmus/utils.h:252:
+void perm_ints(st_t *st,int t[], int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#2600: FILE: tests/tcg/i386/litmus/utils.h:253:
+void perm_funs(st_t *st,f_t *t[], int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#2601: FILE: tests/tcg/i386/litmus/utils.h:254:
+void perm_threads(st_t *st,pthread_t t[], int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#2602: FILE: tests/tcg/i386/litmus/utils.h:255:
+void perm_ops(st_t *st,op_t *t[], int sz) ;
^ERROR: space required after that ',' (ctx:VxV)
#2620: FILE: tests/tcg/i386/litmus/utils.h:273:
+int find_string(char *t[],int sz,char *s) ;
^ERROR: space required after that ',' (ctx:VxV)
#2620: FILE: tests/tcg/i386/litmus/utils.h:273:
+int find_string(char *t[],int sz,char *s) ;
^total: 1074 errors, 8 warnings, 2528 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 2/3: tests/tcg: Add aarch64 litmus tests...
ERROR: space required after that ',' (ctx:VxV) #49: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:33:
+ int size_of_test,max_run;
^ERROR: open brace '{' following function declarations go on the next line #58: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:42:
+inline static void mbar(void) {
ERROR: storage class should be at the beginning of the declaration #58: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:42:
+inline static void mbar(void) {
ERROR: inline keyword should sit between storage class and type #58: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:42:
+inline static void mbar(void) {
ERROR: spaces required around that '::' (ctx:WxO) #59: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:43:
+ asm __volatile__ ("dsb sy" ::: "memory");
^ERROR: spaces required around that ':' (ctx:OxW) #59: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:43:
+ asm __volatile__ ("dsb sy" ::: "memory");
^WARNING: line over 80 characters
#63: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: open brace '{' following function declarations go on the next line #63: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #63: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: storage class should be at the beginning of the declaration #63: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: inline keyword should sit between storage class and type
#63: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: trailing statements should be on next line #67: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:51:
+ while (*b == 0) ;
ERROR: braces {} are necessary even for single statement blocks #67: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:51:
+ while (*b == 0) ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #86: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:70:
+ int volatile *barrier;
ERROR: open brace '{' following function declarations go on the next line #93: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x2) {
ERROR: space required after that ',' (ctx:VxV) #93: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x2) {
^ERROR: storage class should be at the beginning of the declaration #93: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x2) {
ERROR: inline keyword should sit between storage class and type #93: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x2) {
ERROR: open brace '{' following function declarations go on the next line #107: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:91:
+inline static int final_ok(int cond) {
ERROR: storage class should be at the beginning of the declaration #107: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:91:
+inline static int final_ok(int cond) {
ERROR: inline keyword should sit between storage class and type #107: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:91:
+inline static int final_ok(int cond) {
ERROR: do not initialise statics to 0 or NULL #117: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:101:
+static const int out_1_x0_f = 0 ;
ERROR: space required after that ',' (ctx:VxV) #123: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:107:
+ count_t n_pos,n_neg ;
^ERROR: open brace '{' following function declarations go on the next line #126: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:110:
+static hist_t *alloc_hist(void) {
ERROR: open brace '{' following function declarations go on the next line #133: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:117:
+static void free_hist(hist_t *h) {
ERROR: open brace '{' following function declarations go on the next line #138: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:122:
+static void add_outcome(hist_t *h, count_t v, outcome_t o, int show) {
ERROR: space required after that ',' (ctx:VxV) #139: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV) #139: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV) #139: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV) #139: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: open brace '{' following function declarations go on the next line #142: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:126:
+static void merge_hists(hist_t *h0, hist_t *h1) {
ERROR: space required after that ',' (ctx:VxV) #145: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:129:
+ h0->outcomes = merge_outs(h0->outcomes,h1->outcomes,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #145: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:129:
+ h0->outcomes = merge_outs(h0->outcomes,h1->outcomes,NOUTS) ;
^ERROR: open brace '{' following function declarations go on the next line #148: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:132:
+static count_t sum_hist(hist_t *h) {
ERROR: open brace '{' following function declarations go on the next line #153: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:137:
+static void do_dump_outcome(FILE *fhist, intmax_t *o, count_t c, int show) {
ERROR: line over 90 characters
#154: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X2=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x2_f]);
ERROR: space required after that ',' (ctx:VxV) #154: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X2=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x2_f]);
^ERROR: space required after that ',' (ctx:VxV) #154: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X2=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x2_f]);
^ERROR: space required after that ',' (ctx:VxV) #154: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X2=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x2_f]);
^ERROR: space required after that ',' (ctx:VxV) #154: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X2=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x2_f]);
^ERROR: space required after that ',' (ctx:VxV) #154: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X2=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x2_f]);
^ERROR: open brace '{' following function declarations go on the next line #157: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:141:
+static void just_dump_outcomes(FILE *fhist, hist_t *h) {
ERROR: space required after that ',' (ctx:VxV) #159: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #159: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #159: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #159: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: open brace '{' following function declarations go on the next line #166: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:150:
+static void init(ctx_t *_a) {
ERROR: spaces required around that '*' (ctx:VxV) #170: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:154:
+ _a->out_1_x0 = malloc_check(size_of_test*sizeof(*(_a->out_1_x0)));
^ERROR: spaces required around that '*' (ctx:VxV) #171: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:155:
+ _a->out_1_x2 = malloc_check(size_of_test*sizeof(*(_a->out_1_x2)));
^ERROR: spaces required around that '*' (ctx:VxV) #172: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:156:
+ _a->y = malloc_check(size_of_test*sizeof(*(_a->y)));
^ERROR: spaces required around that '*' (ctx:VxV) #173: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:157:
+ _a->x = malloc_check(size_of_test*sizeof(*(_a->x)));
^ERROR: spaces required around that '*' (ctx:VxV) #175: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:159:
+ _a->barrier = malloc_check(size_of_test*sizeof(*(_a->barrier)));
^ERROR: open brace '{' following function declarations go on the next line #178: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:162:
+static void finalize(ctx_t *_a) {
ERROR: open brace '{' following function declarations go on the next line #187: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:171:
+static void reinit(ctx_t *_a) {
ERROR: spaces required around that '-' (ctx:VxV) #188: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:172:
+ for (int _i = _a->_p->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: open brace '{' following function declarations go on the next line #201: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:185:
+static void check_globals(ctx_t *_a) {
ERROR: spaces required around that '-' (ctx:VxV) #204: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:188:
+ for (int _i = _a->_p->size_of_test-1 ; _i >= 0 ; _i--) {
^WARNING: line over 80 characters
#205: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("ARMARM00, check_globals failed");
ERROR: trailing statements should be on next line #205: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("ARMARM00, check_globals failed");
ERROR: braces {} are necessary for all arms of this statement #205: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("ARMARM00, check_globals failed");
[...]
WARNING: line over 80 characters
#206: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("ARMARM00, check_globals failed");
ERROR: trailing statements should be on next line #206: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("ARMARM00, check_globals failed");
ERROR: braces {} are necessary for all arms of this statement #206: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("ARMARM00, check_globals failed");
[...]
ERROR: open brace '{' following function declarations go on the next line #225: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:209:
+static void *P0(void *_vb) {
ERROR: space required after that ',' (ctx:VxV) #230: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM00");
^ERROR: space required after that ',' (ctx:VxV) #230: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM00");
^ERROR: space required after that ',' (ctx:VxV) #230: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM00");
^ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #233: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:217:
+ int volatile *barrier = _a->barrier;
ERROR: suspect code indent for conditional statements (4, 6) #237: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:221:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
+ barrier_wait(_th_id,_i,&barrier[_i]);
ERROR: spaces required around that '-' (ctx:VxV) #237: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:221:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
^ERROR: space required after that ',' (ctx:VxV) #238: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:222:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required after that ',' (ctx:VxO) #238: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:222:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required before that '&' (ctx:OxV) #238: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:222:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: spaces required around that ':' (ctx:ExV) #253: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:237:
+:[x2] "=&r" (trashed_x2),[x0] "=&r" (trashed_x0)
^
ERROR: space required after that ',' (ctx:VxV) #253: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:237:
+:[x2] "=&r" (trashed_x2),[x0] "=&r" (trashed_x0)
^
ERROR: spaces required around that ':' (ctx:ExV) #254: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:238:
+:[x1] "r" (&_a->x[_i]),[x3] "r" (&_a->y[_i])
^
ERROR: space required after that ',' (ctx:VxV) #254: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:238:
+:[x1] "r" (&_a->x[_i]),[x3] "r" (&_a->y[_i])
^
ERROR: spaces required around that ':' (ctx:ExV) #255: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:239:
+:"cc","memory"
^
ERROR: space required after that ',' (ctx:VxV) #255: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:239:
+:"cc","memory"
^
ERROR: open brace '{' following function declarations go on the next line #263: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:247:
+static void *P1(void *_vb) {
ERROR: space required after that ',' (ctx:VxV) #268: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:252:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM00");
^ERROR: space required after that ',' (ctx:VxV) #268: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:252:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM00");
^ERROR: space required after that ',' (ctx:VxV) #268: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:252:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM00");
^ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #271: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:255:
+ int volatile *barrier = _a->barrier;
ERROR: suspect code indent for conditional statements (4, 6) #277: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:261:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
+ barrier_wait(_th_id,_i,&barrier[_i]);
ERROR: spaces required around that '-' (ctx:VxV) #277: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:261:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
^ERROR: space required after that ',' (ctx:VxV) #278: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:262:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required after that ',' (ctx:VxO) #278: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:262:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required before that '&' (ctx:OxV) #278: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:262:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: spaces required around that ':' (ctx:ExV) #293: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:277:
+:[x2] "=&r" (out_1_x2[_i]),[x0] "=&r" (out_1_x0[_i])
^
ERROR: space required after that ',' (ctx:VxV) #293: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:277:
+:[x2] "=&r" (out_1_x2[_i]),[x0] "=&r" (out_1_x0[_i])
^
ERROR: spaces required around that ':' (ctx:ExV) #294: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:278:
+:[x1] "r" (&_a->y[_i]),"[x2]" (-1),[x3] "r" (&_a->x[_i])
^
ERROR: space required after that ',' (ctx:VxV) #294: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:278:
+:[x1] "r" (&_a->y[_i]),"[x2]" (-1),[x3] "r" (&_a->x[_i])
^
ERROR: space required after that ',' (ctx:VxV) #294: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:278:
+:[x1] "r" (&_a->y[_i]),"[x2]" (-1),[x3] "r" (&_a->x[_i])
^
ERROR: spaces required around that ':' (ctx:ExV) #295: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:279:
+:"cc","memory"
^
ERROR: space required after that ',' (ctx:VxV) #295: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:279:
+:"cc","memory"
^
ERROR: open brace '{' following function declarations go on the next line #313: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:297:
+static void *zyva(void *_va) {
ERROR: space required after that ',' (ctx:VxO) #319: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:303:
+ f_t *fun[] = {&P0,&P1};
^ERROR: space required before that '&' (ctx:OxV) #319: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:303:
+ f_t *fun[] = {&P0,&P1};
^ERROR: spaces required around that '-' (ctx:VxV) #325: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:309:
+ for (int _p = N-1 ; _p >= 0 ; _p--) {
^ERROR: suspect code indent for conditional statements (4, 6) #331: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:315:
+ if (_b->aff_mode == aff_random) {
+ pb_wait(_a->p_barrier);
WARNING: line over 80 characters
#333: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:317:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
ERROR: space required after that ',' (ctx:VxV) #333: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:317:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: space required after that ',' (ctx:VxV) #333: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:317:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: space required after that ',' (ctx:VxV) #333: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:317:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: trailing statements should be on next line #333: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:317:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
ERROR: braces {} are necessary for all arms of this statement #333: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:317:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
[...]
ERROR: spaces required around that '>' (ctx:VxV) #337: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:321:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
^ERROR: space required after that ',' (ctx:VxV) #337: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:321:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
^ERROR: trailing statements should be on next line #337: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:321:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
ERROR: braces {} are necessary for all arms of this statement #337: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:321:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
[...]
ERROR: space required after that ',' (ctx:VxV) #339: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:323:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
^ERROR: space required after that ',' (ctx:VxV) #339: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:323:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
^ERROR: trailing statements should be on next line #339: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:323:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
ERROR: braces {} are necessary for all arms of this statement #339: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:323:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
[...]
ERROR: suspect code indent for conditional statements (4, 6) #340: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:324:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
+ launch(&thread[_p],fun[_p],&parg[_p]);
ERROR: spaces required around that '-' (ctx:VxV) #340: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:324:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
^ERROR: space required after that ',' (ctx:VxV) #341: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:325:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required after that ',' (ctx:VxO) #341: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:325:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required before that '&' (ctx:OxV) #341: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:325:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required after that ',' (ctx:VxV) #343: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:327:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
^ERROR: space required after that ',' (ctx:VxV) #343: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:327:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
^ERROR: trailing statements should be on next line #343: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:327:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
ERROR: braces {} are necessary for all arms of this statement #343: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:327:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
[...]
ERROR: suspect code indent for conditional statements (4, 6) #344: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:328:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
+ join(&thread[_p]);
ERROR: spaces required around that '-' (ctx:VxV) #344: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:328:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
^ERROR: suspect code indent for conditional statements (4, 6) #348: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:332:
+ for (int _i = _b->size_of_test-1 ; _i >= 0 ; _i--) {
+ int _out_1_x0_i = ctx.out_1_x0[_i];
ERROR: spaces required around that '-' (ctx:VxV) #348: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:332:
+ for (int _i = _b->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: space required after that ',' (ctx:VxV) #354: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:338:
+ cond = final_ok(final_cond(_out_1_x0_i,_out_1_x2_i));
^ERROR: space required after that ',' (ctx:VxV) #357: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:341:
+ add_outcome(hist,1,o,cond);
^ERROR: space required after that ',' (ctx:VxV) #357: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:341:
+ add_outcome(hist,1,o,cond);
^ERROR: space required after that ',' (ctx:VxV) #357: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:341:
+ add_outcome(hist,1,o,cond);
^ERROR: trailing statements should be on next line #358: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:342:
+ if (cond) { hist->n_pos++; } else { hist->n_neg++; }
ERROR: line over 90 characters
#368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
ERROR: open brace '{' following function declarations go on the next line
#368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
ERROR: space required after that ',' (ctx:VxV) #368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #368: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:352:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #369: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:353:
+ fprintf(out,"Test ARMARM00 Forbidden\n");
^ERROR: space required after that ',' (ctx:VxV) #370: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:354:
+ fprintf(out,"Histogram (%i states)\n",finals_outs(hist->outcomes));
^ERROR: space required after that ',' (ctx:VxV) #370: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:354:
+ fprintf(out,"Histogram (%i states)\n",finals_outs(hist->outcomes));
^ERROR: space required after that ',' (ctx:VxV) #371: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:355:
+ just_dump_outcomes(out,hist);
^ERROR: space required after that ',' (ctx:VxV) #373: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:357:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: space required after that ',' (ctx:VxV) #373: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:357:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: spaces required around that '?' (ctx:VxV) #373: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:357:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: spaces required around that ':' (ctx:VxV) #373: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:357:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: space required after that ',' (ctx:VxV) #374: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:358:
+ fprintf(out,"\nWitnesses\n");
^ERROR: space required after that ',' (ctx:VxV) #375: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:359:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: space required after that ',' (ctx:VxV) #375: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:359:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: space required after that ',' (ctx:VxV) #375: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:359:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: line over 90 characters
#376: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:360:
+ fprintf(out,"Condition ~exists (1:X0=1 /\\ 1:X2=0) is %svalidated\n",cond ? "" : "NOT ");
ERROR: space required after that ',' (ctx:VxV) #376: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:360:
+ fprintf(out,"Condition ~exists (1:X0=1 /\\ 1:X2=0) is %svalidated\n",cond ? "" : "NOT ");
^ERROR: space required after that ',' (ctx:VxV) #376: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:360:
+ fprintf(out,"Condition ~exists (1:X0=1 /\\ 1:X2=0) is %svalidated\n",cond ? "" : "NOT ");
^ERROR: space required after that ',' (ctx:VxV) #377: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:361:
+ fprintf(out,"Hash=8b05db686103708c048891dddc96e8bd\n");
^ERROR: space required after that ',' (ctx:VxV) #378: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:362:
+ fprintf(out,"Com=Rf Fr\n");
^ERROR: space required after that ',' (ctx:VxV) #379: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:363:
+ fprintf(out,"Orig=PodWWPL RfeLA PodRRAP Fre\n");
^ERROR: line over 90 characters
#382: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:366:
+ fprintf(out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
ERROR: space required after that ',' (ctx:VxV) #382: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:366:
+ fprintf(out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxO) #382: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:366:
+ fprintf(out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required before that '!' (ctx:OxV) #382: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:366:
+ fprintf(out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxV) #382: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:366:
+ fprintf(out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxV) #382: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:366:
+ fprintf(out,"Observation ARMARM00 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: suspect code indent for conditional statements (2, 2) #383: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:367:
+ if (p_true > 0) {
+ }
ERROR: space required after that ',' (ctx:VxV) #385: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:369:
+ fprintf(out,"Time ARMARM00 %.2f\n",total / 1000000.0);
^ERROR: space required after that ',' (ctx:VxV) #385: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:369:
+ fprintf(out,"Time ARMARM00 %.2f\n",total / 1000000.0);
^ERROR: open brace '{' following function declarations go on the next line #390: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:374:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
ERROR: space required after that ',' (ctx:VxV) #390: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:374:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
^ERROR: space required after that ',' (ctx:VxV) #390: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:374:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
^ERROR: trailing statements should be on next line #399: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:383:
+ if (cmd->fix) prm.do_change = 0;
ERROR: braces {} are necessary for all arms of this statement #399: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:383:
+ if (cmd->fix) prm.do_change = 0;
[...]
ERROR: line over 90 characters
#402: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:386:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
ERROR: space required after that ',' (ctx:VxV) #402: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:386:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
^ERROR: trailing statements should be on next line
#402: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:386:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
ERROR: braces {} are necessary for all arms of this statement
#402: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:386:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz); [...]
WARNING: line over 80 characters
#411: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:395:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
ERROR: space required after that ',' (ctx:VxV) #411: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:395:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV) #411: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:395:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV) #411: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:395:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV) #415: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:399:
+ prm.ncpus_used = N*n_exe;
^ERROR: space required after that ',' (ctx:VxV) #418: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:402:
+ log_error( "ARMARM00: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space required after that ',' (ctx:VxV) #418: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:402:
+ log_error( "ARMARM00: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space required after that ',' (ctx:VxV) #418: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:402:
+ log_error( "ARMARM00: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space prohibited after that open parenthesis '(' #418: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:402:
+ log_error( "ARMARM00: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
ERROR: space required after that ',' (ctx:VxV) #419: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:403:
+ log_error(", st=%i",prm.stride);
^ERROR: suspect code indent for conditional statements (4, 6) #420: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:404:
+ if (cmd->aff_mode == aff_incr) {
+ log_error( ", i=%i",cmd->aff_incr);
ERROR: space required after that ',' (ctx:VxV) #421: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:405:
+ log_error( ", i=%i",cmd->aff_incr);
^ERROR: space prohibited after that open parenthesis '(' #421: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:405:
+ log_error( ", i=%i",cmd->aff_incr);
ERROR: suspect code indent for conditional statements (4, 6) #422: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:406:
+ } else if (cmd->aff_mode == aff_random) {
+ log_error(", +ra");
ERROR: suspect code indent for conditional statements (4, 6) #424: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:408:
+ } else if (cmd->aff_mode == aff_custom) {
+ log_error(", +ca");
ERROR: suspect code indent for conditional statements (4, 6) #426: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:410:
+ } else if (cmd->aff_mode == aff_scan) {
+ log_error(", +sa");
ERROR: space required after that ',' (ctx:VxV) #430: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:414:
+ cpus_dump(stderr,cmd->aff_cpus);
^ERROR: suspect code indent for conditional statements (4, 6) #435: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:419:
+ for (int k = 0 ; k < aff_cpus_sz ; k++) {
+ aff_cpus[k] = all_cpus->cpu[k % all_cpus->sz];
ERROR: spaces required around that '-' (ctx:VxV) #440: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:424:
+ int n_th = n_exe-1;
^ERROR: spaces required around that '=' (ctx:VxV) #448: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:432:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
^ERROR: trailing statements should be on next line #448: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:432:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
ERROR: braces {} are necessary even for single statement blocks #448: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:432:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
ERROR: spaces required around that '=' (ctx:VxV) #453: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:437:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: spaces required around that '=' (ctx:VxV) #453: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:437:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: space required after that ',' (ctx:VxV) #453: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:437:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: spaces required around that '=' (ctx:VxV) #455: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:439:
+ for (int k=0 ; k < n_exe ; k++) {
^ERROR: trailing whitespace
#458: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:442:
+ p->p_mutex = p_mutex; p->p_barrier = p_barrier; $
ERROR: suspect code indent for conditional statements (4, 6) #461: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:445:
+ if (cmd->aff_mode != aff_incr) {
+ aff_p += N;
ERROR: spaces required around that '=' (ctx:VxV) #464: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:448:
+ for (int i=0 ; i < N ; i++) {
^ERROR: suspect code indent for conditional statements (8, 10) #467: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:451:
+ if (next_cpu == start_scan) {
+ start_scan++ ; start_scan %= max_start;
ERROR: suspect code indent for conditional statements (4, 6) #473: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:457:
+ if (k < n_th) {
+ launch(&th[k],zyva,p);
ERROR: space required after that ',' (ctx:VxV) #474: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:458:
+ launch(&th[k],zyva,p);
^ERROR: space required after that ',' (ctx:VxV) #474: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:458:
+ launch(&th[k],zyva,p);
^ERROR: spaces required around that '=' (ctx:VxV) #481: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:465:
+ for (int k=0 ; k < n_th ; k++) {
^ERROR: suspect code indent for conditional statements (4, 6) #483: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:467:
+ if (sum_hist(hk) != n_outs || hk->n_pos + hk->n_neg != n_outs) {
+ fatal("ARMARM00, sum_hist");
ERROR: space required after that ',' (ctx:VxV) #486: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:470:
+ merge_hists(hist,hk);
^ERROR: space required after that ',' (ctx:VxV) #499: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:483:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #499: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:483:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #499: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:483:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #499: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:483:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #499: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:483:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: open brace '{' following function declarations go on the next line #505: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:489:
+int main(int argc, char **argv) {
ERROR: space required after that ',' (ctx:VxV) #506: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:490:
+ cpus_t *def_all_cpus = read_force_affinity(AVAIL,0);
^ERROR: line over 90 characters
#511: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:495:
+ cmd_t def = { 0, NUMBER_OF_RUN, SIZE_OF_TEST, STRIDE, AVAIL, 0, 0, aff_incr, 0, 0, AFF_INCR, def_all_cpus, NULL, -1, MAX_LOOP, NULL, NULL, -1, -1, -1, 0, 0};
ERROR: space required after that ',' (ctx:VxV) #513: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:497:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxO) #513: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:497:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required before that '&' (ctx:OxV) #513: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:497:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxO) #513: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:497:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required before that '&' (ctx:OxV) #513: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:497:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxV) #514: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:498:
+ int cond = run(&cmd,def_all_cpus,stdout);
^ERROR: space required after that ',' (ctx:VxV) #514: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:498:
+ int cond = run(&cmd,def_all_cpus,stdout);
^ERROR: trailing statements should be on next line #515: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:499:
+ if (def_all_cpus != cmd.aff_cpus) cpus_free(def_all_cpus);
ERROR: braces {} are necessary for all arms of this statement #515: FILE: tests/tcg/aarch64/litmus/ARMARM00.c:499:
+ if (def_all_cpus != cmd.aff_cpus) cpus_free(def_all_cpus); [...]
ERROR: space required after that ',' (ctx:VxV) #556: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:33:
+ int size_of_test,max_run;
^ERROR: open brace '{' following function declarations go on the next line #565: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:42:
+inline static void mbar(void) {
ERROR: storage class should be at the beginning of the declaration #565: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:42:
+inline static void mbar(void) {
ERROR: inline keyword should sit between storage class and type #565: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:42:
+inline static void mbar(void) {
ERROR: spaces required around that '::' (ctx:WxO) #566: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:43:
+ asm __volatile__ ("dsb sy" ::: "memory");
^ERROR: spaces required around that ':' (ctx:OxW) #566: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:43:
+ asm __volatile__ ("dsb sy" ::: "memory");
^WARNING: line over 80 characters
#570: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: open brace '{' following function declarations go on the next line #570: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #570: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: storage class should be at the beginning of the declaration #570: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: inline keyword should sit between storage class and type
#570: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
ERROR: trailing statements should be on next line #574: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:51:
+ while (*b == 0) ;
ERROR: braces {} are necessary even for single statement blocks #574: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:51:
+ while (*b == 0) ;
ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #593: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:70:
+ int volatile *barrier;
ERROR: open brace '{' following function declarations go on the next line #600: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x3) {
ERROR: space required after that ',' (ctx:VxV) #600: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x3) {
^ERROR: storage class should be at the beginning of the declaration #600: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x3) {
ERROR: inline keyword should sit between storage class and type #600: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:77:
+inline static int final_cond(int _out_1_x0,int _out_1_x3) {
ERROR: open brace '{' following function declarations go on the next line #614: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:91:
+inline static int final_ok(int cond) {
ERROR: storage class should be at the beginning of the declaration #614: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:91:
+inline static int final_ok(int cond) {
ERROR: inline keyword should sit between storage class and type #614: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:91:
+inline static int final_ok(int cond) {
ERROR: do not initialise statics to 0 or NULL #624: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:101:
+static const int out_1_x0_f = 0 ;
ERROR: space required after that ',' (ctx:VxV) #630: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:107:
+ count_t n_pos,n_neg ;
^ERROR: open brace '{' following function declarations go on the next line #633: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:110:
+static hist_t *alloc_hist(void) {
ERROR: open brace '{' following function declarations go on the next line #640: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:117:
+static void free_hist(hist_t *h) {
ERROR: open brace '{' following function declarations go on the next line #645: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:122:
+static void add_outcome(hist_t *h, count_t v, outcome_t o, int show) {
ERROR: space required after that ',' (ctx:VxV) #646: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV) #646: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV) #646: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: space required after that ',' (ctx:VxV) #646: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:123:
+ h->outcomes = add_outcome_outs(h->outcomes,o,NOUTS,v,show) ;
^ERROR: open brace '{' following function declarations go on the next line #649: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:126:
+static void merge_hists(hist_t *h0, hist_t *h1) {
ERROR: space required after that ',' (ctx:VxV) #652: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:129:
+ h0->outcomes = merge_outs(h0->outcomes,h1->outcomes,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #652: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:129:
+ h0->outcomes = merge_outs(h0->outcomes,h1->outcomes,NOUTS) ;
^ERROR: open brace '{' following function declarations go on the next line #655: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:132:
+static count_t sum_hist(hist_t *h) {
ERROR: open brace '{' following function declarations go on the next line #660: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:137:
+static void do_dump_outcome(FILE *fhist, intmax_t *o, count_t c, int show) {
ERROR: line over 90 characters
#661: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X3=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x3_f]);
ERROR: space required after that ',' (ctx:VxV) #661: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X3=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x3_f]);
^ERROR: space required after that ',' (ctx:VxV) #661: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X3=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x3_f]);
^ERROR: space required after that ',' (ctx:VxV) #661: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X3=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x3_f]);
^ERROR: space required after that ',' (ctx:VxV) #661: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X3=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x3_f]);
^ERROR: space required after that ',' (ctx:VxV) #661: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:138:
+ fprintf(fhist,"%-6"PCTR"%c>1:X0=%i; 1:X3=%i;\n",c,show ? '*' : ':',(int)o[out_1_x0_f],(int)o[out_1_x3_f]);
^ERROR: open brace '{' following function declarations go on the next line #664: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:141:
+static void just_dump_outcomes(FILE *fhist, hist_t *h) {
ERROR: space required after that ',' (ctx:VxV) #666: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #666: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #666: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: space required after that ',' (ctx:VxV) #666: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:143:
+ dump_outs(fhist,do_dump_outcome,h->outcomes,buff,NOUTS) ;
^ERROR: open brace '{' following function declarations go on the next line #673: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:150:
+static void init(ctx_t *_a) {
ERROR: spaces required around that '*' (ctx:VxV) #677: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:154:
+ _a->out_1_x0 = malloc_check(size_of_test*sizeof(*(_a->out_1_x0)));
^ERROR: spaces required around that '*' (ctx:VxV) #678: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:155:
+ _a->out_1_x3 = malloc_check(size_of_test*sizeof(*(_a->out_1_x3)));
^ERROR: spaces required around that '*' (ctx:VxV) #679: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:156:
+ _a->y = malloc_check(size_of_test*sizeof(*(_a->y)));
^ERROR: spaces required around that '*' (ctx:VxV) #680: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:157:
+ _a->x = malloc_check(size_of_test*sizeof(*(_a->x)));
^ERROR: spaces required around that '*' (ctx:VxV) #682: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:159:
+ _a->barrier = malloc_check(size_of_test*sizeof(*(_a->barrier)));
^ERROR: open brace '{' following function declarations go on the next line #685: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:162:
+static void finalize(ctx_t *_a) {
ERROR: open brace '{' following function declarations go on the next line #694: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:171:
+static void reinit(ctx_t *_a) {
ERROR: spaces required around that '-' (ctx:VxV) #695: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:172:
+ for (int _i = _a->_p->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: open brace '{' following function declarations go on the next line #708: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:185:
+static void check_globals(ctx_t *_a) {
ERROR: spaces required around that '-' (ctx:VxV) #711: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:188:
+ for (int _i = _a->_p->size_of_test-1 ; _i >= 0 ; _i--) {
^WARNING: line over 80 characters
#712: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("ARMARM01, check_globals failed");
ERROR: trailing statements should be on next line #712: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("ARMARM01, check_globals failed");
ERROR: braces {} are necessary for all arms of this statement #712: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:189:
+ if (rand_bit(&(_a->seed)) && y[_i] != 0) fatal("ARMARM01, check_globals failed");
[...]
WARNING: line over 80 characters
#713: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("ARMARM01, check_globals failed");
ERROR: trailing statements should be on next line #713: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("ARMARM01, check_globals failed");
ERROR: braces {} are necessary for all arms of this statement #713: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:190:
+ if (rand_bit(&(_a->seed)) && x[_i] != 0) fatal("ARMARM01, check_globals failed");
[...]
ERROR: open brace '{' following function declarations go on the next line #732: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:209:
+static void *P0(void *_vb) {
ERROR: space required after that ',' (ctx:VxV) #737: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM01");
^ERROR: space required after that ',' (ctx:VxV) #737: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM01");
^ERROR: space required after that ',' (ctx:VxV) #737: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:214:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM01");
^ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #740: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:217:
+ int volatile *barrier = _a->barrier;
ERROR: suspect code indent for conditional statements (4, 6) #744: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:221:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
+ barrier_wait(_th_id,_i,&barrier[_i]);
ERROR: spaces required around that '-' (ctx:VxV) #744: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:221:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
^ERROR: space required after that ',' (ctx:VxV) #745: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:222:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required after that ',' (ctx:VxO) #745: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:222:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required before that '&' (ctx:OxV) #745: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:222:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: spaces required around that ':' (ctx:ExV) #760: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:237:
+:[x2] "=&r" (trashed_x2),[x0] "=&r" (trashed_x0)
^
ERROR: space required after that ',' (ctx:VxV) #760: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:237:
+:[x2] "=&r" (trashed_x2),[x0] "=&r" (trashed_x0)
^
ERROR: spaces required around that ':' (ctx:ExV) #761: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:238:
+:[x1] "r" (&_a->x[_i]),[x3] "r" (&_a->y[_i])
^
ERROR: space required after that ',' (ctx:VxV) #761: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:238:
+:[x1] "r" (&_a->x[_i]),[x3] "r" (&_a->y[_i])
^
ERROR: spaces required around that ':' (ctx:ExV) #762: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:239:
+:"cc","memory"
^
ERROR: space required after that ',' (ctx:VxV) #762: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:239:
+:"cc","memory"
^
ERROR: open brace '{' following function declarations go on the next line #770: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:247:
+static void *P1(void *_vb) {
ERROR: space required after that ',' (ctx:VxV) #775: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:252:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM01");
^ERROR: space required after that ',' (ctx:VxV) #775: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:252:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM01");
^ERROR: space required after that ',' (ctx:VxV) #775: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:252:
+ force_one_affinity(_ecpu,AVAIL,_a->_p->verbose,"ARMARM01");
^ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt #778: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:255:
+ int volatile *barrier = _a->barrier;
ERROR: suspect code indent for conditional statements (4, 6) #784: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:261:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
+ barrier_wait(_th_id,_i,&barrier[_i]);
ERROR: spaces required around that '-' (ctx:VxV) #784: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:261:
+ for (int _i = _size_of_test-_j ; _i >= 0 ; _i -= _stride) {
^ERROR: space required after that ',' (ctx:VxV) #785: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:262:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required after that ',' (ctx:VxO) #785: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:262:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: space required before that '&' (ctx:OxV) #785: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:262:
+ barrier_wait(_th_id,_i,&barrier[_i]);
^ERROR: spaces required around that ':' (ctx:ExV)
#803: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:280:
+:[x3] "=&r" (out_1_x3[_i]),[x0] "=&r" (out_1_x0[_i]),[x2] "=&r" (trashed_x2)
^
ERROR: space required after that ',' (ctx:VxV)
#803: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:280:
+:[x3] "=&r" (out_1_x3[_i]),[x0] "=&r" (out_1_x0[_i]),[x2] "=&r" (trashed_x2)
^
ERROR: space required after that ',' (ctx:VxV)
#803: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:280:
+:[x3] "=&r" (out_1_x3[_i]),[x0] "=&r" (out_1_x0[_i]),[x2] "=&r" (trashed_x2)
^
ERROR: spaces required around that ':' (ctx:ExV) #804: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:281:
+:[x1] "r" (&_a->y[_i]),"[x3]" (-1),[x4] "r" (&_a->x[_i])
^
ERROR: space required after that ',' (ctx:VxV) #804: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:281:
+:[x1] "r" (&_a->y[_i]),"[x3]" (-1),[x4] "r" (&_a->x[_i])
^
ERROR: space required after that ',' (ctx:VxV) #804: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:281:
+:[x1] "r" (&_a->y[_i]),"[x3]" (-1),[x4] "r" (&_a->x[_i])
^
ERROR: spaces required around that ':' (ctx:ExV) #805: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:282:
+:"cc","memory"
^
ERROR: space required after that ',' (ctx:VxV) #805: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:282:
+:"cc","memory"
^
ERROR: open brace '{' following function declarations go on the next line #823: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:300:
+static void *zyva(void *_va) {
ERROR: space required after that ',' (ctx:VxO) #829: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:306:
+ f_t *fun[] = {&P0,&P1};
^ERROR: space required before that '&' (ctx:OxV) #829: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:306:
+ f_t *fun[] = {&P0,&P1};
^ERROR: spaces required around that '-' (ctx:VxV) #835: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:312:
+ for (int _p = N-1 ; _p >= 0 ; _p--) {
^ERROR: suspect code indent for conditional statements (4, 6) #841: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:318:
+ if (_b->aff_mode == aff_random) {
+ pb_wait(_a->p_barrier);
WARNING: line over 80 characters
#843: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:320:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
ERROR: space required after that ',' (ctx:VxV) #843: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:320:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: space required after that ',' (ctx:VxV) #843: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:320:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: space required after that ',' (ctx:VxV) #843: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:320:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
^ERROR: trailing statements should be on next line #843: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:320:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
ERROR: braces {} are necessary for all arms of this statement #843: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:320:
+ if (_a->z_id == 0) perm_prefix_ints(&ctx.seed,_a->cpus,_b->ncpus_used,_b->ncpus);
[...]
ERROR: spaces required around that '>' (ctx:VxV) #847: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:324:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
^ERROR: space required after that ',' (ctx:VxV) #847: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:324:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
^ERROR: trailing statements should be on next line #847: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:324:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
ERROR: braces {} are necessary for all arms of this statement #847: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:324:
+ if (_b->verbose>1) fprintf(stderr,"Run %i of %i\r", n_run, _b->max_run);
[...]
ERROR: space required after that ',' (ctx:VxV) #849: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:326:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
^ERROR: space required after that ',' (ctx:VxV) #849: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:326:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
^ERROR: trailing statements should be on next line #849: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:326:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
ERROR: braces {} are necessary for all arms of this statement #849: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:326:
+ if (_b->do_change) perm_funs(&ctx.seed,fun,N);
[...]
ERROR: suspect code indent for conditional statements (4, 6) #850: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:327:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
+ launch(&thread[_p],fun[_p],&parg[_p]);
ERROR: spaces required around that '-' (ctx:VxV) #850: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:327:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
^ERROR: space required after that ',' (ctx:VxV) #851: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:328:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required after that ',' (ctx:VxO) #851: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:328:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required before that '&' (ctx:OxV) #851: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:328:
+ launch(&thread[_p],fun[_p],&parg[_p]);
^ERROR: space required after that ',' (ctx:VxV) #853: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:330:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
^ERROR: space required after that ',' (ctx:VxV) #853: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:330:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
^ERROR: trailing statements should be on next line #853: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:330:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
ERROR: braces {} are necessary for all arms of this statement #853: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:330:
+ if (_b->do_change) perm_threads(&ctx.seed,thread,NT);
[...]
ERROR: suspect code indent for conditional statements (4, 6) #854: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:331:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
+ join(&thread[_p]);
ERROR: spaces required around that '-' (ctx:VxV) #854: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:331:
+ for (int _p = NT-1 ; _p >= 0 ; _p--) {
^ERROR: suspect code indent for conditional statements (4, 6) #858: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:335:
+ for (int _i = _b->size_of_test-1 ; _i >= 0 ; _i--) {
+ int _out_1_x0_i = ctx.out_1_x0[_i];
ERROR: spaces required around that '-' (ctx:VxV) #858: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:335:
+ for (int _i = _b->size_of_test-1 ; _i >= 0 ; _i--) {
^ERROR: space required after that ',' (ctx:VxV) #864: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:341:
+ cond = final_ok(final_cond(_out_1_x0_i,_out_1_x3_i));
^ERROR: space required after that ',' (ctx:VxV) #867: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:344:
+ add_outcome(hist,1,o,cond);
^ERROR: space required after that ',' (ctx:VxV) #867: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:344:
+ add_outcome(hist,1,o,cond);
^ERROR: space required after that ',' (ctx:VxV) #867: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:344:
+ add_outcome(hist,1,o,cond);
^ERROR: trailing statements should be on next line #868: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:345:
+ if (cond) { hist->n_pos++; } else { hist->n_neg++; }
ERROR: line over 90 characters
#878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
ERROR: open brace '{' following function declarations go on the next line
#878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
ERROR: space required after that ',' (ctx:VxV) #878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #878: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:355:
+static int postlude(FILE *out,cmd_t *cmd,hist_t *hist,count_t p_true,count_t p_false,tsc_t total) {
^ERROR: space required after that ',' (ctx:VxV) #879: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:356:
+ fprintf(out,"Test ARMARM01 Forbidden\n");
^ERROR: space required after that ',' (ctx:VxV) #880: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:357:
+ fprintf(out,"Histogram (%i states)\n",finals_outs(hist->outcomes));
^ERROR: space required after that ',' (ctx:VxV) #880: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:357:
+ fprintf(out,"Histogram (%i states)\n",finals_outs(hist->outcomes));
^ERROR: space required after that ',' (ctx:VxV) #881: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:358:
+ just_dump_outcomes(out,hist);
^ERROR: space required after that ',' (ctx:VxV) #883: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:360:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: space required after that ',' (ctx:VxV) #883: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:360:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: spaces required around that '?' (ctx:VxV) #883: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:360:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: spaces required around that ':' (ctx:VxV) #883: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:360:
+ fprintf(out,"%s\n",cond?"Ok":"No");
^ERROR: space required after that ',' (ctx:VxV) #884: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:361:
+ fprintf(out,"\nWitnesses\n");
^ERROR: space required after that ',' (ctx:VxV) #885: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:362:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: space required after that ',' (ctx:VxV) #885: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:362:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: space required after that ',' (ctx:VxV) #885: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:362:
+ fprintf(out,"Positive: %" PCTR ", Negative: %" PCTR "\n",p_false,p_true);
^ERROR: line over 90 characters
#886: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:363:
+ fprintf(out,"Condition ~exists (1:X0=1 /\\ 1:X3=0) is %svalidated\n",cond ? "" : "NOT ");
ERROR: space required after that ',' (ctx:VxV) #886: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:363:
+ fprintf(out,"Condition ~exists (1:X0=1 /\\ 1:X3=0) is %svalidated\n",cond ? "" : "NOT ");
^ERROR: space required after that ',' (ctx:VxV) #886: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:363:
+ fprintf(out,"Condition ~exists (1:X0=1 /\\ 1:X3=0) is %svalidated\n",cond ? "" : "NOT ");
^ERROR: space required after that ',' (ctx:VxV) #887: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:364:
+ fprintf(out,"Hash=e5d401d98b0063559060cb31236f54de\n");
^ERROR: space required after that ',' (ctx:VxV) #888: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:365:
+ fprintf(out,"Com=Rf Fr\n");
^ERROR: space required after that ',' (ctx:VxV) #889: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:366:
+ fprintf(out,"Orig=PodWWPL RfeLP DpAddrdR Fre\n");
^ERROR: line over 90 characters
#892: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:369:
+ fprintf(out,"Observation ARMARM01 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
ERROR: space required after that ',' (ctx:VxV) #892: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:369:
+ fprintf(out,"Observation ARMARM01 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxO) #892: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:369:
+ fprintf(out,"Observation ARMARM01 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required before that '!' (ctx:OxV) #892: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:369:
+ fprintf(out,"Observation ARMARM01 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxV) #892: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:369:
+ fprintf(out,"Observation ARMARM01 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: space required after that ',' (ctx:VxV) #892: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:369:
+ fprintf(out,"Observation ARMARM01 %s %" PCTR " %" PCTR "\n",!cond_true ? "Never" : !cond_false ? "Always" : "Sometimes",cond_true,cond_false);
^ERROR: suspect code indent for conditional statements (2, 2) #893: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:370:
+ if (p_true > 0) {
+ }
ERROR: space required after that ',' (ctx:VxV) #895: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:372:
+ fprintf(out,"Time ARMARM01 %.2f\n",total / 1000000.0);
^ERROR: space required after that ',' (ctx:VxV) #895: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:372:
+ fprintf(out,"Time ARMARM01 %.2f\n",total / 1000000.0);
^ERROR: open brace '{' following function declarations go on the next line #900: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:377:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
ERROR: space required after that ',' (ctx:VxV) #900: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:377:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
^ERROR: space required after that ',' (ctx:VxV) #900: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:377:
+static int run(cmd_t *cmd,cpus_t *def_all_cpus,FILE *out) {
^ERROR: trailing statements should be on next line #909: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:386:
+ if (cmd->fix) prm.do_change = 0;
ERROR: braces {} are necessary for all arms of this statement #909: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:386:
+ if (cmd->fix) prm.do_change = 0;
[...]
ERROR: line over 90 characters
#912: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:389:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
ERROR: space required after that ',' (ctx:VxV) #912: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:389:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
^ERROR: trailing statements should be on next line
#912: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:389:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz);
ERROR: braces {} are necessary for all arms of this statement
#912: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:389:
+ if (n_avail > cmd->aff_cpus->sz) log_error("Warning: avail=%i, available=%i\n",n_avail, cmd->aff_cpus->sz); [...]
WARNING: line over 80 characters
#921: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:398:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
ERROR: space required after that ',' (ctx:VxV) #921: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:398:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV) #921: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:398:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV) #921: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:398:
+ int aff_cpus_sz = cmd->aff_mode == aff_random ? max(all_cpus->sz,N*n_exe) : N*n_exe;
^ERROR: spaces required around that '*' (ctx:VxV) #925: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:402:
+ prm.ncpus_used = N*n_exe;
^ERROR: space required after that ',' (ctx:VxV) #928: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:405:
+ log_error( "ARMARM01: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space required after that ',' (ctx:VxV) #928: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:405:
+ log_error( "ARMARM01: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space required after that ',' (ctx:VxV) #928: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:405:
+ log_error( "ARMARM01: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
^ERROR: space prohibited after that open parenthesis '(' #928: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:405:
+ log_error( "ARMARM01: n=%i, r=%i, s=%i",n_exe,prm.max_run,prm.size_of_test);
ERROR: space required after that ',' (ctx:VxV) #929: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:406:
+ log_error(", st=%i",prm.stride);
^ERROR: suspect code indent for conditional statements (4, 6) #930: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:407:
+ if (cmd->aff_mode == aff_incr) {
+ log_error( ", i=%i",cmd->aff_incr);
ERROR: space required after that ',' (ctx:VxV) #931: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:408:
+ log_error( ", i=%i",cmd->aff_incr);
^ERROR: space prohibited after that open parenthesis '(' #931: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:408:
+ log_error( ", i=%i",cmd->aff_incr);
ERROR: suspect code indent for conditional statements (4, 6) #932: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:409:
+ } else if (cmd->aff_mode == aff_random) {
+ log_error(", +ra");
ERROR: suspect code indent for conditional statements (4, 6) #934: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:411:
+ } else if (cmd->aff_mode == aff_custom) {
+ log_error(", +ca");
ERROR: suspect code indent for conditional statements (4, 6) #936: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:413:
+ } else if (cmd->aff_mode == aff_scan) {
+ log_error(", +sa");
ERROR: space required after that ',' (ctx:VxV) #940: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:417:
+ cpus_dump(stderr,cmd->aff_cpus);
^ERROR: suspect code indent for conditional statements (4, 6) #945: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:422:
+ for (int k = 0 ; k < aff_cpus_sz ; k++) {
+ aff_cpus[k] = all_cpus->cpu[k % all_cpus->sz];
ERROR: spaces required around that '-' (ctx:VxV) #950: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:427:
+ int n_th = n_exe-1;
^ERROR: spaces required around that '=' (ctx:VxV) #958: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:435:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
^ERROR: trailing statements should be on next line #958: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:435:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
ERROR: braces {} are necessary even for single statement blocks #958: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:435:
+ for (int k=0 ; k < all_cpus->sz ; k++) all_cpus->cpu[k] = -1;
ERROR: spaces required around that '=' (ctx:VxV) #963: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:440:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: spaces required around that '=' (ctx:VxV) #963: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:440:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: space required after that ',' (ctx:VxV) #963: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:440:
+ int start_scan=0, max_start=gcd(delta,all_cpus->sz);
^ERROR: spaces required around that '=' (ctx:VxV) #965: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:442:
+ for (int k=0 ; k < n_exe ; k++) {
^ERROR: trailing whitespace
#968: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:445:
+ p->p_mutex = p_mutex; p->p_barrier = p_barrier; $
ERROR: suspect code indent for conditional statements (4, 6) #971: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:448:
+ if (cmd->aff_mode != aff_incr) {
+ aff_p += N;
ERROR: spaces required around that '=' (ctx:VxV) #974: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:451:
+ for (int i=0 ; i < N ; i++) {
^ERROR: suspect code indent for conditional statements (8, 10) #977: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:454:
+ if (next_cpu == start_scan) {
+ start_scan++ ; start_scan %= max_start;
ERROR: suspect code indent for conditional statements (4, 6) #983: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:460:
+ if (k < n_th) {
+ launch(&th[k],zyva,p);
ERROR: space required after that ',' (ctx:VxV) #984: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:461:
+ launch(&th[k],zyva,p);
^ERROR: space required after that ',' (ctx:VxV) #984: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:461:
+ launch(&th[k],zyva,p);
^ERROR: spaces required around that '=' (ctx:VxV) #991: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:468:
+ for (int k=0 ; k < n_th ; k++) {
^ERROR: suspect code indent for conditional statements (4, 6) #993: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:470:
+ if (sum_hist(hk) != n_outs || hk->n_pos + hk->n_neg != n_outs) {
+ fatal("ARMARM01, sum_hist");
ERROR: space required after that ',' (ctx:VxV) #996: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:473:
+ merge_hists(hist,hk);
^ERROR: space required after that ',' (ctx:VxV) #1009: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:486:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #1009: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:486:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #1009: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:486:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #1009: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:486:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: space required after that ',' (ctx:VxV) #1009: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:486:
+ int cond = postlude(out,cmd,hist,p_true,p_false,total);
^ERROR: open brace '{' following function declarations go on the next line #1015: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:492:
+int main(int argc, char **argv) {
ERROR: space required after that ',' (ctx:VxV) #1016: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:493:
+ cpus_t *def_all_cpus = read_force_affinity(AVAIL,0);
^ERROR: line over 90 characters
#1021: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:498:
+ cmd_t def = { 0, NUMBER_OF_RUN, SIZE_OF_TEST, STRIDE, AVAIL, 0, 0, aff_incr, 0, 0, AFF_INCR, def_all_cpus, NULL, -1, MAX_LOOP, NULL, NULL, -1, -1, -1, 0, 0};
ERROR: space required after that ',' (ctx:VxV) #1023: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:500:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxO) #1023: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:500:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required before that '&' (ctx:OxV) #1023: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:500:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxO) #1023: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:500:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required before that '&' (ctx:OxV) #1023: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:500:
+ parse_cmd(argc,argv,&def,&cmd);
^ERROR: space required after that ',' (ctx:VxV) #1024: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:501:
+ int cond = run(&cmd,def_all_cpus,stdout);
^ERROR: space required after that ',' (ctx:VxV) #1024: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:501:
+ int cond = run(&cmd,def_all_cpus,stdout);
^ERROR: trailing statements should be on next line #1025: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:502:
+ if (def_all_cpus != cmd.aff_cpus) cpus_free(def_all_cpus);
ERROR: braces {} are necessary for all arms of this statement #1025: FILE: tests/tcg/aarch64/litmus/ARMARM01.c:502:
+ if (def_all_cpus != cmd.aff_cpus) cpus_free(def_all_cpus); [...]
ERROR: space required after that ',' (ctx:VxV) #1066: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:33:
+ int size_of_test,max_run;
^ERROR: open brace '{' following function declarations go on the next line #1075: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:42:
+inline static void mbar(void) {
ERROR: storage class should be at the beginning of the declaration #1075: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:42:
+inline static void mbar(void) {
ERROR: inline keyword should sit between storage class and type #1075: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:42:
+inline static void mbar(void) {
ERROR: spaces required around that '::' (ctx:WxO) #1076: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:43:
+ asm __volatile__ ("dsb sy" ::: "memory");
^ERROR: spaces required around that ':' (ctx:OxW) #1076: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:43:
+ asm __volatile__ ("dsb sy" ::: "memory");
^WARNING: line over 80 characters
#1080: FILE: tests/tcg/aarch64/litmus/ARMARM02.c:47:
+inline static void barrier_wait(unsigned int id, unsigned int k, int volatile *b) {
13,029 lines not shown · raw message
Part of this message is not shown here. View the raw message.