1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00
FFmpeg/tests/checkasm
Clément Bœsch e0d56f097f checkasm: use perf API on Linux ARM*
On ARM platforms, accessing the PMU registers requires special user
access permissions. Since there is no other way to get accurate timers,
the current implementation of timers in FFmpeg rely on these registers.
Unfortunately, enabling user access to these registers on Linux is not
trivial, and generally involve compiling a random and unreliable github
kernel module, or patching somehow your kernel.

Such module is very unlikely to reach the upstream anytime soon. Quoting
Robin Murphin from ARM:

> Say you do give userspace direct access to the PMU; now run two or more
> programs at once that believe they can use the counters for their own
> "minimal-overhead" profiling. Have fun interpreting those results...
>
> And that's not even getting into the implications of scheduling across
> different CPUs, CPUidle, etc. where the PMU state is completely beyond
> userspace's control. In general, the plan to provide userspace with
> something which might happen to just about work in a few corner cases,
> but is meaningless, misleading or downright broken in all others, is to
> never do so.

As a result, the alternative is to use the Performance Monitoring Linux
API which makes use of these registers internally (assuming the PMU of
your ARM board is supported in the kernel, which is definitely not a
given...).

While the Linux API is obviously cross platform, it does have a
significant overhead which needs to be taken into account. As a result,
that mode is only weakly enabled on ARM platforms exclusively.

Note on the non flexibility of the implementation: the timers (native
FFmpeg vs Linux API) are selected at compilation time to prevent the
need of function calls, which would result in a negative impact on the
cycle counters.
2017-09-08 18:51:05 +02:00
..
aarch64 checkasm/aarch64: fix tests returning a float 2017-06-22 09:18:10 +02:00
arm Merge commit '2816f8a8bb33bd67fec5e94f5d357918caf4e055' 2017-03-23 18:01:47 -03:00
x86 checkasm: add a checkasm_checked_call function that doesn't issue emms 2017-06-14 19:18:56 -03:00
.gitignore Split global .gitignore file into per-directory files 2016-05-13 14:55:56 +02:00
aacpsdsp.c checkasm: add hybrid_analysis_ileave and hybrid_synthesis_deint tests to aacpsdsp 2017-07-13 17:03:28 -03:00
alacdsp.c
audiodsp.c Merge commit '12004a9a7f20e44f4da2ee6c372d5e1794c8d6c5' 2017-03-20 22:35:07 +01:00
blockdsp.c Merge commit '2eb97af66af90ca3978229da151f0b8b3a5d9370' 2017-03-20 19:05:05 +01:00
bswapdsp.c
checkasm.c checkasm: use perf API on Linux ARM* 2017-09-08 18:51:05 +02:00
checkasm.h checkasm: use perf API on Linux ARM* 2017-09-08 18:51:05 +02:00
fixed_dsp.c checkasm: add _fixed suffix to fixed_dsp tests 2017-06-01 13:12:20 -03:00
flacdsp.c
float_dsp.c checkasm: add missing checks to float_dsp's butterflies_float test 2017-06-23 23:38:07 -03:00
fmtconvert.c
g722dsp.c checkasm: add a g722dsp test 2017-07-13 17:00:19 -03:00
h264dsp.c Merge commit 'e48746deec48e9ff195841bc3266b4e153a878cd' 2016-11-13 23:02:39 +01:00
h264pred.c Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb' 2016-06-21 21:55:34 +02:00
h264qpel.c
hevc_add_res.c fate/checkasm: fix use of uninitialized memory on hevc_add_res tests 2017-03-24 22:11:34 -03:00
hevc_idct.c Merge commit 'e3f941cb03b139b866a0ad6dc95fbe1b247d54af' 2017-03-23 12:17:39 +01:00
jpeg2000dsp.c
llviddsp.c avcodec/lossless_videodsp: use ptrdiff_t for length parameters 2017-03-22 18:38:35 -03:00
Makefile checkasm: add a g722dsp test 2017-07-13 17:00:19 -03:00
pixblockdsp.c Merge commit 'de452e503734ebb0fdbce86e9d16693b3530fad3' 2017-03-20 15:58:32 +01:00
sbrdsp.c checkasm: use declare_func_float() in sbrdsp sum_square test 2017-07-04 23:02:57 -03:00
synth_filter.c
v210enc.c
vf_blend.c checkasm/vf_blend: rename addition128 and difference128 to grainmerge and grainextract 2017-08-24 23:39:09 -03:00
vf_colorspace.c tests/checkasm/vf_colorspace: Make bpp_mask const 2016-04-13 22:39:41 +02:00
videodsp.c
vp8dsp.c Merge commit '87c6c78604e4dd16f1f45862b27ca006da010527' 2017-03-19 15:11:44 -03:00
vp9dsp.c Merge commit 'effc1430b2fe5997d9d55bf28dc507c27125eb27' 2017-04-04 15:26:18 -03:00