tests/check/: add ppc64 structure sizes

Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/gst/gstabi.c:
* tests/check/gst/struct_ppc64.h:
* tests/check/libs/libsabi.c:
* tests/check/libs/struct_ppc64.h:
add ppc64 structure sizes
This commit is contained in:
Thomas Vander Stichele 2006-06-06 14:10:09 +00:00
parent f6284c80cb
commit b6d24c014d
7 changed files with 119 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2006-06-06 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/check/Makefile.am:
* tests/check/gst/gstabi.c:
* tests/check/gst/struct_ppc64.h:
* tests/check/libs/libsabi.c:
* tests/check/libs/struct_ppc64.h:
add ppc64 structure sizes
2006-06-06 Thomas Vander Stichele <thomas at apestaart dot org> 2006-06-06 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/check/Makefile.am: * tests/check/Makefile.am:

2
common

@ -1 +1 @@
Subproject commit 4282dfa89d50e80f59d4e1837af95fbf74e75d18 Subproject commit 5d58e7652bf38a637dceca167d6e47e7794b2b52

View file

@ -93,8 +93,10 @@ TESTS = $(check_PROGRAMS)
noinst_HEADERS = \ noinst_HEADERS = \
gst/capslist.h \ gst/capslist.h \
gst/struct_i386.h \ gst/struct_i386.h \
gst/struct_ppc64.h \
gst/struct_x86_64.h \ gst/struct_x86_64.h \
libs/struct_i386.h \ libs/struct_i386.h \
libs/struct_ppc64.h \
libs/struct_x86_64.h libs/struct_x86_64.h
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)

View file

@ -26,6 +26,10 @@
#include "struct_i386.h" #include "struct_i386.h"
#define HAVE_ABI_SIZES TRUE #define HAVE_ABI_SIZES TRUE
#else #else
#ifdef HAVE_CPU_PPC64
#include "struct_ppc64.h"
#define HAVE_ABI_SIZES TRUE
#else
#ifdef HAVE_CPU_X86_64 #ifdef HAVE_CPU_X86_64
#include "struct_x86_64.h" #include "struct_x86_64.h"
#define HAVE_ABI_SIZES TRUE #define HAVE_ABI_SIZES TRUE
@ -35,6 +39,7 @@
#define HAVE_ABI_SIZES FALSE #define HAVE_ABI_SIZES FALSE
#endif #endif
#endif #endif
#endif
GST_START_TEST (test_ABI) GST_START_TEST (test_ABI)
{ {

View file

@ -0,0 +1,73 @@
GstCheckABIStruct list[] = {
{"GstBin", sizeof (GstBin), 192},
{"GstBinClass", sizeof (GstBinClass), 288},
{"GstBuffer", sizeof (GstBuffer), 88},
{"GstBufferClass", sizeof (GstBufferClass), 16},
{"GstBus", sizeof (GstBus), 80},
{"GstBusClass", sizeof (GstBusClass), 144},
{"GstCaps", sizeof (GstCaps), 32},
{"GstStaticCaps", sizeof (GstStaticCaps), 52},
{"GstChildProxyInterface", sizeof (GstChildProxyInterface), 40},
{"GstClockEntry", sizeof (GstClockEntry), 48},
{"GstClock", sizeof (GstClock), 176},
{"GstClockClass", sizeof (GstClockClass), 160},
{"GstElement", sizeof (GstElement), 136},
{"GstElementClass", sizeof (GstElementClass), 248},
{"GstElementFactory", sizeof (GstElementFactory), 144},
{"GstElementFactoryClass", sizeof (GstElementFactoryClass), 152},
{"GstElementDetails", sizeof (GstElementDetails), 32},
{"GstEvent", sizeof (GstEvent), 48},
{"GstEventClass", sizeof (GstEventClass), 32},
{"GstFormatDefinition", sizeof (GstFormatDefinition), 16},
{"GstIndexEntry", sizeof (GstIndexEntry), 20},
{"GstIndexGroup", sizeof (GstIndexGroup), 16},
{"GstIndex", sizeof (GstIndex), 100},
{"GstIndexClass", sizeof (GstIndexClass), 156},
{"GstIndexAssociation", sizeof (GstIndexAssociation), 16},
{"GstIndexFactory", sizeof (GstIndexFactory), 96},
{"GstIndexFactoryClass", sizeof (GstIndexFactoryClass), 152},
{"GstDebugCategory", sizeof (GstDebugCategory), 16},
{"GstImplementsInterfaceClass", sizeof (GstImplementsInterfaceClass), 28},
{"GstIterator", sizeof (GstIterator), 52},
{"GstMessage", sizeof (GstMessage), 64},
{"GstMessageClass", sizeof (GstMessageClass), 32},
{"GstMiniObject", sizeof (GstMiniObject), 16},
{"GstMiniObjectClass", sizeof (GstMiniObjectClass), 16},
{"GstObject", sizeof (GstObject), 40},
{"GstObjectClass", sizeof (GstObjectClass), 120},
{"GstPad", sizeof (GstPad), 188},
{"GstPadClass", sizeof (GstPadClass), 152},
{"GstPadTemplate", sizeof (GstPadTemplate), 72},
{"GstPadTemplateClass", sizeof (GstPadTemplateClass), 140},
{"GstStaticPadTemplate", sizeof (GstStaticPadTemplate), 64},
{"GstPipeline", sizeof (GstPipeline), 232},
{"GstPipelineClass", sizeof (GstPipelineClass), 304},
{"GstPlugin", sizeof (GstPlugin), 152},
{"GstPluginClass", sizeof (GstPluginClass), 136},
{"GstPluginDesc", sizeof (GstPluginDesc), 56},
{"GstPluginFeature", sizeof (GstPluginFeature), 72},
{"GstPluginFeatureClass", sizeof (GstPluginFeatureClass), 136},
{"GstQueryTypeDefinition", sizeof (GstQueryTypeDefinition), 16},
{"GstQuery", sizeof (GstQuery), 28},
{"GstQueryClass", sizeof (GstQueryClass), 32},
{"GstRegistry", sizeof (GstRegistry), 72},
{"GstRegistryClass", sizeof (GstRegistryClass), 144},
{"GstSegment", sizeof (GstSegment), 88},
{"GstStructure", sizeof (GstStructure), 20},
{"GstSystemClock", sizeof (GstSystemClock), 200},
{"GstSystemClockClass", sizeof (GstSystemClockClass), 176},
{"GstTagSetterIFace", sizeof (GstTagSetterIFace), 8},
{"GstTask", sizeof (GstTask), 80},
{"GstTaskClass", sizeof (GstTaskClass), 140},
{"GstTrace", sizeof (GstTrace), 20},
{"GstTraceEntry", sizeof (GstTraceEntry), 128},
{"GstAllocTrace", sizeof (GstAllocTrace), 16},
{"GstTypeFind", sizeof (GstTypeFind), 32},
{"GstTypeFindFactory", sizeof (GstTypeFindFactory), 108},
{"GstTypeFindFactoryClass", sizeof (GstTypeFindFactoryClass), 152},
{"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 44},
{"GstValueTable", sizeof (GstValueTable), 32},
{"GstXML", sizeof (GstXML), 64},
{"GstXMLClass", sizeof (GstXMLClass), 144},
{NULL, 0, 0}
};

View file

@ -39,6 +39,10 @@
#include "struct_i386.h" #include "struct_i386.h"
#define HAVE_ABI_SIZES TRUE #define HAVE_ABI_SIZES TRUE
#else #else
#ifdef HAVE_CPU_PPC64
#include "struct_ppc64.h"
#define HAVE_ABI_SIZES TRUE
#else
#ifdef HAVE_CPU_X86_64 #ifdef HAVE_CPU_X86_64
#include "struct_x86_64.h" #include "struct_x86_64.h"
#define HAVE_ABI_SIZES TRUE #define HAVE_ABI_SIZES TRUE

View file

@ -0,0 +1,25 @@
GstCheckABIStruct list[] = {
{"GstAdapter", sizeof (GstAdapter), 52},
{"GstAdapterClass", sizeof (GstAdapterClass), 84},
{"GstBaseSink", sizeof (GstBaseSink), 408},
{"GstBaseSinkClass", sizeof (GstBaseSinkClass), 368},
{"GstBaseSrc", sizeof (GstBaseSrc), 392},
{"GstBaseSrcClass", sizeof (GstBaseSrcClass), 376},
{"GstBaseTransform", sizeof (GstBaseTransform), 368},
{"GstBaseTransformClass", sizeof (GstBaseTransformClass), 376},
{"GstCollectData", sizeof (GstCollectData), 120},
{"GstCollectPads", sizeof (GstCollectPads), 92},
{"GstCollectPadsClass", sizeof (GstCollectPadsClass), 136},
{"GstPushSrc", sizeof (GstPushSrc), 408},
{"GstPushSrcClass", sizeof (GstPushSrcClass), 396},
{"GstTimedValue", sizeof (GstTimedValue), 32},
{"GstValueArray", sizeof (GstValueArray), 24},
{"GstController", sizeof (GstController), 40},
{"GstControllerClass", sizeof (GstControllerClass), 84},
{"GstNetClientClock", sizeof (GstNetClientClock), 256},
{"GstNetClientClockClass", sizeof (GstNetClientClockClass), 192},
{"GstNetTimePacket", sizeof (GstNetTimePacket), 16},
{"GstNetTimeProvider", sizeof (GstNetTimeProvider), 84},
{"GstNetTimeProviderClass", sizeof (GstNetTimeProviderClass), 120},
{NULL, 0, 0}
};