From f6284c80cb9792311972c9032e372f4c2ca283c3 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 6 Jun 2006 13:59:10 +0000 Subject: [PATCH] tests/check/: generate and add structure size lists for x86_64 Original commit message from CVS: * tests/check/Makefile.am: * tests/check/gst/gstabi.c: * tests/check/gst/struct_x86_64.h: * tests/check/libs/libsabi.c: * tests/check/libs/struct_x86_64.h: generate and add structure size lists for x86_64 --- ChangeLog | 9 ++ tests/check/Makefile.am | 7 +- tests/check/gst/gstabi.c | 1 + tests/check/gst/struct_x86_64.h | 143 +++++++++++++++++++++++++++++++ tests/check/libs/libsabi.c | 6 +- tests/check/libs/struct_x86_64.h | 47 ++++++++++ 6 files changed, 211 insertions(+), 2 deletions(-) create mode 100644 tests/check/gst/struct_x86_64.h create mode 100644 tests/check/libs/struct_x86_64.h diff --git a/ChangeLog b/ChangeLog index 6d522d0f44..01bdbdca24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-06-06 Thomas Vander Stichele + + * tests/check/Makefile.am: + * tests/check/gst/gstabi.c: + * tests/check/gst/struct_x86_64.h: + * tests/check/libs/libsabi.c: + * tests/check/libs/struct_x86_64.h: + generate and add structure size lists for x86_64 + 2006-06-06 Thomas Vander Stichele * libs/gst/check/gstcheck.c: (gst_check_abi_list): diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index c3711eb1e9..d95007c5a2 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -90,7 +90,12 @@ noinst_PROGRAMS = \ TESTS = $(check_PROGRAMS) -noinst_HEADERS = gst/capslist.h gst/struct_i386.h libs/struct_i386.h +noinst_HEADERS = \ + gst/capslist.h \ + gst/struct_i386.h \ + gst/struct_x86_64.h \ + libs/struct_i386.h \ + libs/struct_x86_64.h AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) LDADD = $(top_builddir)/libs/gst/check/libgstcheck-@GST_MAJORMINOR@.la \ diff --git a/tests/check/gst/gstabi.c b/tests/check/gst/gstabi.c index 14232ee604..c1f3ff98b7 100644 --- a/tests/check/gst/gstabi.c +++ b/tests/check/gst/gstabi.c @@ -28,6 +28,7 @@ #else #ifdef HAVE_CPU_X86_64 #include "struct_x86_64.h" +#define HAVE_ABI_SIZES TRUE #else /* in case someone wants to generate a new arch */ #include "struct_i386.h" diff --git a/tests/check/gst/struct_x86_64.h b/tests/check/gst/struct_x86_64.h new file mode 100644 index 0000000000..1fdc4bd587 --- /dev/null +++ b/tests/check/gst/struct_x86_64.h @@ -0,0 +1,143 @@ +GstCheckABIStruct list[] = { + {"GstBin", sizeof (GstBin), 336} + , + {"GstBinClass", sizeof (GstBinClass), 568} + , + {"GstBuffer", sizeof (GstBuffer), 120} + , + {"GstBufferClass", sizeof (GstBufferClass), 32} + , + {"GstBus", sizeof (GstBus), 152} + , + {"GstBusClass", sizeof (GstBusClass), 288} + , + {"GstCaps", sizeof (GstCaps), 56} + , + {"GstStaticCaps", sizeof (GstStaticCaps), 96} + , + {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 80} + , + {"GstClockEntry", sizeof (GstClockEntry), 64} + , + {"GstClock", sizeof (GstClock), 240} + , + {"GstClockClass", sizeof (GstClockClass), 320} + , + {"GstElement", sizeof (GstElement), 232} + , + {"GstElementClass", sizeof (GstElementClass), 488} + , + {"GstElementFactory", sizeof (GstElementFactory), 280} + , + {"GstElementFactoryClass", sizeof (GstElementFactoryClass), 304} + , + {"GstElementDetails", sizeof (GstElementDetails), 64} + , + {"GstEvent", sizeof (GstEvent), 64} + , + {"GstEventClass", sizeof (GstEventClass), 64} + , + {"GstFormatDefinition", sizeof (GstFormatDefinition), 32} + , + {"GstIndexEntry", sizeof (GstIndexEntry), 32} + , + {"GstIndexGroup", sizeof (GstIndexGroup), 24} + , + {"GstIndex", sizeof (GstIndex), 192} + , + {"GstIndexClass", sizeof (GstIndexClass), 312} + , + {"GstIndexAssociation", sizeof (GstIndexAssociation), 16} + , + {"GstIndexFactory", sizeof (GstIndexFactory), 192} + , + {"GstIndexFactoryClass", sizeof (GstIndexFactoryClass), 304} + , + {"GstDebugCategory", sizeof (GstDebugCategory), 24} + , + {"GstImplementsInterfaceClass", sizeof (GstImplementsInterfaceClass), 56} + , + {"GstIterator", sizeof (GstIterator), 104} + , + {"GstMessage", sizeof (GstMessage), 104} + , + {"GstMessageClass", sizeof (GstMessageClass), 64} + , + {"GstMiniObject", sizeof (GstMiniObject), 24} + , + {"GstMiniObjectClass", sizeof (GstMiniObjectClass), 32} + , + {"GstObject", sizeof (GstObject), 80} + , + {"GstObjectClass", sizeof (GstObjectClass), 240} + , + {"GstPad", sizeof (GstPad), 368} + , + {"GstPadClass", sizeof (GstPadClass), 304} + , + {"GstPadTemplate", sizeof (GstPadTemplate), 136} + , + {"GstPadTemplateClass", sizeof (GstPadTemplateClass), 280} + , + {"GstStaticPadTemplate", sizeof (GstStaticPadTemplate), 112} + , + {"GstPipeline", sizeof (GstPipeline), 392} + , + {"GstPipelineClass", sizeof (GstPipelineClass), 600} + , + {"GstPlugin", sizeof (GstPlugin), 280} + , + {"GstPluginClass", sizeof (GstPluginClass), 272} + , + {"GstPluginDesc", sizeof (GstPluginDesc), 104} + , + {"GstPluginFeature", sizeof (GstPluginFeature), 144} + , + {"GstPluginFeatureClass", sizeof (GstPluginFeatureClass), 272} + , + {"GstQueryTypeDefinition", sizeof (GstQueryTypeDefinition), 32} + , + {"GstQuery", sizeof (GstQuery), 48} + , + {"GstQueryClass", sizeof (GstQueryClass), 64} + , + {"GstRegistry", sizeof (GstRegistry), 144} + , + {"GstRegistryClass", sizeof (GstRegistryClass), 288} + , + {"GstSegment", sizeof (GstSegment), 104} + , + {"GstStructure", sizeof (GstStructure), 40} + , + {"GstSystemClock", sizeof (GstSystemClock), 288} + , + {"GstSystemClockClass", sizeof (GstSystemClockClass), 352} + , + {"GstTagSetterIFace", sizeof (GstTagSetterIFace), 16} + , + {"GstTask", sizeof (GstTask), 160} + , + {"GstTaskClass", sizeof (GstTaskClass), 280} + , + {"GstTrace", sizeof (GstTrace), 32} + , + {"GstTraceEntry", sizeof (GstTraceEntry), 128} + , + {"GstAllocTrace", sizeof (GstAllocTrace), 24} + , + {"GstTypeFind", sizeof (GstTypeFind), 64} + , + {"GstTypeFindFactory", sizeof (GstTypeFindFactory), 216} + , + {"GstTypeFindFactoryClass", sizeof (GstTypeFindFactoryClass), 304} + , + {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 88} + , + {"GstValueTable", sizeof (GstValueTable), 64} + , + {"GstXML", sizeof (GstXML), 128} + , + {"GstXMLClass", sizeof (GstXMLClass), 288} + , + {NULL, 0, 0} +}; diff --git a/tests/check/libs/libsabi.c b/tests/check/libs/libsabi.c index b090ee9d6c..0f192db53d 100644 --- a/tests/check/libs/libsabi.c +++ b/tests/check/libs/libsabi.c @@ -39,11 +39,15 @@ #include "struct_i386.h" #define HAVE_ABI_SIZES TRUE #else +#ifdef HAVE_CPU_X86_64 +#include "struct_x86_64.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 GST_START_TEST (test_ABI) { diff --git a/tests/check/libs/struct_x86_64.h b/tests/check/libs/struct_x86_64.h new file mode 100644 index 0000000000..353ceaadc5 --- /dev/null +++ b/tests/check/libs/struct_x86_64.h @@ -0,0 +1,47 @@ +GstCheckABIStruct list[] = { + {"GstAdapter", sizeof (GstAdapter), 88} + , + {"GstAdapterClass", sizeof (GstAdapterClass), 168} + , + {"GstBaseSink", sizeof (GstBaseSink), 600} + , + {"GstBaseSinkClass", sizeof (GstBaseSinkClass), 728} + , + {"GstBaseSrc", sizeof (GstBaseSrc), 600} + , + {"GstBaseSrcClass", sizeof (GstBaseSrcClass), 744} + , + {"GstBaseTransform", sizeof (GstBaseTransform), 576} + , + {"GstBaseTransformClass", sizeof (GstBaseTransformClass), 744} + , + {"GstCollectData", sizeof (GstCollectData), 168} + , + {"GstCollectPads", sizeof (GstCollectPads), 168} + , + {"GstCollectPadsClass", sizeof (GstCollectPadsClass), 272} + , + {"GstPushSrc", sizeof (GstPushSrc), 632} + , + {"GstPushSrcClass", sizeof (GstPushSrcClass), 784} + , + {"GstTimedValue", sizeof (GstTimedValue), 32} + , + {"GstValueArray", sizeof (GstValueArray), 32} + , + {"GstController", sizeof (GstController), 80} + , + {"GstControllerClass", sizeof (GstControllerClass), 168} + , + {"GstNetClientClock", sizeof (GstNetClientClock), 368} + , + {"GstNetClientClockClass", sizeof (GstNetClientClockClass), 384} + , + {"GstNetTimePacket", sizeof (GstNetTimePacket), 16} + , + {"GstNetTimeProvider", sizeof (GstNetTimeProvider), 152} + , + {"GstNetTimeProviderClass", sizeof (GstNetTimeProviderClass), 240} + , + {NULL, 0, 0} +};