From: Wim Taymans Date: Mon, 22 Jun 2015 13:59:42 +0000 (+0200) Subject: tests: add PPC64 abi struct sizes X-Git-Tag: 1.19.3~511^2~3510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d811c73e28a4ddd8efe5d26f5fe6370b3826206;p=platform%2Fupstream%2Fgstreamer.git tests: add PPC64 abi struct sizes --- diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index b6f0c86..e47a2ad 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -254,6 +254,7 @@ noinst_HEADERS = \ libs/struct_i386.h \ libs/struct_i386_osx.h \ libs/struct_ppc32.h \ + libs/struct_ppc64.h \ libs/struct_x86_64.h AM_CFLAGS = -I$(top_srcdir)/gst-libs -I$(top_builddir)/gst-libs \ diff --git a/tests/check/libs/libsabi.c b/tests/check/libs/libsabi.c index 330554f..76a384e 100644 --- a/tests/check/libs/libsabi.c +++ b/tests/check/libs/libsabi.c @@ -82,24 +82,21 @@ # include "struct_i386.h" # define HAVE_ABI_SIZES TRUE # endif -#else -#ifdef HAVE_CPU_X86_64 -#include "struct_x86_64.h" -#define HAVE_ABI_SIZES TRUE -#else -#ifdef HAVE_CPU_ARM -#include "struct_arm.h" -#define HAVE_ABI_SIZES FALSE -#else -#ifdef __powerpc__ -#include "struct_ppc32.h" -#define HAVE_ABI_SIZES TRUE +#elif HAVE_CPU_X86_64 +# include "struct_x86_64.h" +# define HAVE_ABI_SIZES TRUE +#elif HAVE_CPU_ARM +# include "struct_arm.h" +# define HAVE_ABI_SIZES FALSE +#elif HAVE_CPU_PPC +# include "struct_ppc32.h" +# define HAVE_ABI_SIZES TRUE +#elif HAVE_CPU_PPC64 +# include "struct_ppc64.h" +# define HAVE_ABI_SIZES TRUE #else /* in case someone wants to generate a new arch */ -#include "struct_i386.h" -#define HAVE_ABI_SIZES FALSE -#endif -#endif -#endif +# include "struct_i386.h" +# define HAVE_ABI_SIZES FALSE #endif GST_START_TEST (test_ABI) diff --git a/tests/check/libs/struct_ppc64.h b/tests/check/libs/struct_ppc64.h new file mode 100644 index 0000000..e60f624 --- /dev/null +++ b/tests/check/libs/struct_ppc64.h @@ -0,0 +1,80 @@ + +GstCheckABIStruct list[] = { + {"GstAppSinkCallbacks", sizeof (GstAppSinkCallbacks), 56}, + {"GstAppSinkClass", sizeof (GstAppSinkClass), 864}, + {"GstAppSink", sizeof (GstAppSink), 704}, + {"GstAppSrcCallbacks", sizeof (GstAppSrcCallbacks), 56}, + {"GstAppSrcClass", sizeof (GstAppSrcClass), 872}, + {"GstAppSrc", sizeof (GstAppSrc), 688}, + {"GstAudioCdSrcClass", sizeof (GstAudioCdSrcClass), 1040}, + {"GstAudioCdSrc", sizeof (GstAudioCdSrc), 720}, + {"GstAudioCdSrcTrack", sizeof (GstAudioCdSrcTrack), 48}, + {"GstAudioClockClass", sizeof (GstAudioClockClass), 328}, + {"GstAudioClock", sizeof (GstAudioClock), 240}, + {"GstAudioFilterClass", sizeof (GstAudioFilterClass), 856}, + {"GstAudioFilter", sizeof (GstAudioFilter), 928}, + {"GstAudioSinkClass", sizeof (GstAudioSinkClass), 928}, + {"GstAudioSink", sizeof (GstAudioSink), 792}, + {"GstAudioSrcClass", sizeof (GstAudioSrcClass), 984}, + {"GstAudioSrc", sizeof (GstAudioSrc), 800}, + {"GstAudioBaseSinkClass", sizeof (GstAudioBaseSinkClass), 840}, + {"GstAudioBaseSink", sizeof (GstAudioBaseSink), 752}, + {"GstAudioBaseSrcClass", sizeof (GstAudioBaseSrcClass), 896}, + {"GstAudioBaseSrc", sizeof (GstAudioBaseSrc), 760}, + {"GstRTPBaseAudioPayloadClass", sizeof (GstRTPBaseAudioPayloadClass), 600}, + {"GstRTPBaseAudioPayload", sizeof (GstRTPBaseAudioPayload), 600}, + {"GstRTPBaseDepayloadClass", sizeof (GstRTPBaseDepayloadClass), 552}, + {"GstRTPBaseDepayload", sizeof (GstRTPBaseDepayload), 456}, + {"GstRTPBasePayloadClass", sizeof (GstRTPBasePayloadClass), 568}, + {"GstRTPBasePayload", sizeof (GstRTPBasePayload), 536}, + {"GstColorBalanceChannelClass", sizeof (GstColorBalanceChannelClass), 176}, + {"GstColorBalanceChannel", sizeof (GstColorBalanceChannel), 72}, + {"GstColorBalanceInterface", sizeof (GstColorBalanceInterface), 88}, + {"GstDiscovererClass", sizeof (GstDiscovererClass), 200}, + {"GstDiscoverer", sizeof (GstDiscoverer), 64}, + {"GstFFTF32Complex", sizeof (GstFFTF32Complex), 8}, + {"GstFFTF64Complex", sizeof (GstFFTF64Complex), 16}, + {"GstFFTS16Complex", sizeof (GstFFTS16Complex), 4}, + {"GstFFTS32Complex", sizeof (GstFFTS32Complex), 8}, + {"GstNavigationInterface", sizeof (GstNavigationInterface), 24}, + {"gst_riff_acid", sizeof (gst_riff_acid), 24}, + {"gst_riff_dmlh", sizeof (gst_riff_dmlh), 4}, + {"gst_riff_index_entry", sizeof (gst_riff_index_entry), 16}, + {"gst_riff_strf_auds", sizeof (gst_riff_strf_auds), 16}, + {"gst_riff_strf_iavs", sizeof (gst_riff_strf_iavs), 32}, + {"gst_riff_strf_vids", sizeof (gst_riff_strf_vids), 40}, + {"gst_riff_strh", sizeof (gst_riff_strh), 48}, + {"GstAudioRingBufferClass", sizeof (GstAudioRingBufferClass), 312}, + {"GstAudioRingBuffer", sizeof (GstAudioRingBuffer), 888}, + {"GstAudioRingBufferSpec", sizeof (GstAudioRingBufferSpec), 400}, + {"GstRTCPPacket", sizeof (GstRTCPPacket), 40}, + {"GstRTPPayloadInfo", sizeof (GstRTPPayloadInfo), 80}, + {"GstRTSPExtensionInterface", sizeof (GstRTSPExtensionInterface), 128}, + {"GstRTSPMessage", sizeof (GstRTSPMessage), 88}, + {"GstRTSPRange", sizeof (GstRTSPRange), 8}, + {"GstRTSPTime", sizeof (GstRTSPTime), 16}, + {"GstRTSPTimeRange", sizeof (GstRTSPTimeRange), 88}, + {"GstRTSPTransport", sizeof (GstRTSPTransport), 120}, + {"GstRTSPUrl", sizeof (GstRTSPUrl), 56}, + {"GstRTSPWatchFuncs", sizeof (GstRTSPWatchFuncs), 96}, + {"GstSDPAttribute", sizeof (GstSDPAttribute), 16}, + {"GstSDPBandwidth", sizeof (GstSDPBandwidth), 16}, + {"GstSDPConnection", sizeof (GstSDPConnection), 32}, + {"GstSDPKey", sizeof (GstSDPKey), 16}, + {"GstSDPMedia", sizeof (GstSDPMedia), 80}, + {"GstSDPMessage", sizeof (GstSDPMessage), 184}, + {"GstSDPOrigin", sizeof (GstSDPOrigin), 48}, + {"GstSDPTime", sizeof (GstSDPTime), 24}, + {"GstSDPZone", sizeof (GstSDPZone), 16}, + {"GstStreamVolumeInterface", sizeof (GstStreamVolumeInterface), 16}, + {"GstTagDemuxClass", sizeof (GstTagDemuxClass), 552}, + {"GstTagDemux", sizeof (GstTagDemux), 304}, + {"GstVideoFilterClass", sizeof (GstVideoFilterClass), 872}, + {"GstVideoFilter", sizeof (GstVideoFilter), 920}, + {"GstVideoOrientationInterface", sizeof (GstVideoOrientationInterface), 80}, + {"GstVideoRectangle", sizeof (GstVideoRectangle), 16}, + {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 832}, + {"GstVideoSink", sizeof (GstVideoSink), 712}, + {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 48}, + {NULL, 0, 0} +};