• James Clark's avatar
    perf test: Add mechanism for skipping attr tests on kernel versions · ee26adf6
    James Clark authored
    The first two version numbers are used since that is where the ABI
    changes happen, so seems to be the most useful for now.
    
    'Until' is exclusive and 'since' is inclusive so that the same version
    number can be used to mark a point where the change comes into effect.
    
    This allows keeping the tests in a state where new tests will also pass
    on older kernels if the existence of a new feature isn't explicitly
    broadcast by the kernel. For example extended user regs are currently
    discovered by trial and error calls to perf_event_open.
    Signed-off-by: default avatarJames Clark <james.clark@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: bpf@vger.kernel.org
    Link: https://lore.kernel.org/r/20221213114739.2312862-4-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    ee26adf6
attr.py 13.9 KB