FFmpeg/tests
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
..
api tests: do not use AVFrame accessor 2017-04-23 14:47:54 +07:00
checkasm checkasm: use perf API on Linux ARM* 2017-09-08 18:51:05 +02:00
fate fate: add test for asetnsamples filter with padding disabled 2017-09-08 08:54:20 +02:00
filtergraphs FATE: Add test for libavfilter/scale2ref 2017-06-05 01:50:25 +02:00
ref fate: add test for asetnsamples filter with padding disabled 2017-09-08 08:54:20 +02:00
.gitignore Merge commit '257f00ec1ab06a2a161f535036c6512f3fc8e801' 2016-06-22 11:28:51 +02:00
audiogen.c
audiomatch.c tests/audiomatch: Fix compile warning 2016-08-25 18:37:29 +02:00
base64.c
copycooker.sh
extended.ffconcat fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
fate-run.sh fate: use do_md5sum instead of the md5 protocol for most md5 fate tests 2017-06-18 23:19:48 +02:00
fate-valgrind.supp
fate.sh Merge commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a' 2017-05-05 09:27:18 +02:00
ffserver-regression.sh tests: drop -d option from ffserver invocation 2016-11-30 22:38:10 +01:00
ffserver.conf tests/ffserver.conf: Force bitexactness in the ffmpeg command 2016-11-27 23:28:23 +01:00
ffserver.regression.ref tests/ffserver.regression.ref: Update ffserver checksums 2016-12-01 23:43:31 +01:00
lavf-regression.sh FATE: Add FITS tests 2017-08-30 12:13:02 +02:00
Makefile fate/pixlet : add test for rgb 2017-08-31 02:53:11 +02:00
md5.sh
reference.pnm
regression-funcs.sh tests: add -nostdin flag when calling ffmpeg 2016-10-06 18:31:07 -05:00
rotozoom.c
simple1.ffconcat fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
simple2.ffconcat fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
test.ffmeta
tiny_psnr.c Drop pointless assert.h #includes 2016-05-03 15:45:10 +02:00
tiny_ssim.c tests/tiny_ssim: replace #define by typedef 2015-11-20 08:25:23 -05:00
utils.c
videogen.c