[FFmpeg-devel] [PATCH 3/3] lavu/timer.h: add Linux Perf API support

Michael Niedermayer michael at niedermayer.cc
Sun Sep 3 21:30:24 EEST 2017


On Sat, Sep 02, 2017 at 08:17:40PM +0200, Clément Bœsch wrote:
> From: Clément Bœsch <cboesch at gopro.com>
> 
> Refer to "checkasm: use perf API on Linux ARM*" commit for the
> rationale.
> 
> The implementation is somehow duplicated with checkasm, but so is the
> current usage of AV_READ_TIME(). Until these implementations and
> heuristics are made consistent, I don't see a way of sharing that code.
> 
> Note: when using libavutil/timer.h, it is now important to include
> before any other include due to the _GNU_SOURCE requirement.
> ---
>  libavutil/timer.h | 46 +++++++++++++++++++++++++++++++++++++++++++---
>  1 file changed, 43 insertions(+), 3 deletions(-)

this breaks building   testprogs on qemu arm:

src/libavutil/tests/base64.c: In function ‘main’:
src/libavutil/tests/base64.c:105:159: error: implicit declaration of function ‘syscall’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [libavutil/tests/base64.o] Error 1
make: *** Waiting for unfinished jobs....
src/libavutil/tests/adler32.c: In function ‘main’:
src/libavutil/tests/adler32.c:42:159: error: implicit declaration of function ‘syscall’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [libavutil/tests/adler32.o] Error 1
src/libavutil/tests/aes.c: In function ‘main’:
src/libavutil/tests/aes.c:94:163: error: implicit declaration of function ‘syscall’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [libavutil/tests/aes.o] Error 1
src/libavformat/utils.c: In function ‘avformat_transfer_internal_stream_timing_info’:
src/libavformat/utils.c:5537:5: warning: ‘codec’ is deprecated (declared at src/libavformat/avformat.h:893) [-Wdeprecated-declarations]
src/libavformat/utils.c:5538:5: warning: ‘codec’ is deprecated (declared at src/libavformat/avformat.h:893) [-Wdeprecated-declarations]


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170903/c13dff96/attachment.sig>


More information about the ffmpeg-devel mailing list