Fix i-g-t on old systems
Subsystems (2)
v2 cover Fix i-g-t on old systems
IGT now requires memfd_create() which is not available on old versions of glibc (or some alternative libcs). This provides a minimal intrusive way to keep building on those old systems without polluting the code with a compatibility layer.
The approach is similar to what I've been using in other projects like systemd, kmod, ardupilot, etc. The syscall numbers came from systemd.
v2: add support to autotools
Lucas De Marchi (2):
build: provide include for missing syscalls
build: provide stub implementation for memfd_create
benchmarks/Makefile.am | 3 ++- configure.ac | 3 +++ debugger/Makefile.am | 3 ++- lib/Makefile.am | 3 ++- lib/stubs/syscalls/README | 6 ++++++ lib/stubs/syscalls/sys/mman.h | 37 ++++++++++++++++++++++++++++++++ lib/tests/Makefile.am | 1 + meson.build | 5 ++++- overlay/Makefile.am | 3 ++- tests/Makefile.am | 1 + tools/Makefile.am | 3 ++- tools/null_state_gen/Makefile.am | 3 ++- 12 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 lib/stubs/syscalls/README create mode 100644 lib/stubs/syscalls/sys/mman.h
Signature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v2 1/2 build: provide include for missing syscalls
Add directory with README file to allow missing syscalls to be defined. The syscalls themselves will be provided in follow up patches.
v2: add support to autotools
--- benchmarks/Makefile.am | 3 ++- debugger/Makefile.am | 3 ++- lib/Makefile.am | 3 ++- lib/stubs/syscalls/README | 6 ++++++ lib/tests/Makefile.am | 1 + meson.build | 2 +- overlay/Makefile.am | 3 ++- tests/Makefile.am | 1 + tools/Makefile.am | 3 ++- tools/null_state_gen/Makefile.am | 3 ++- 10 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 lib/stubs/syscalls/README
benchmarks/Makefile.am +2 -1
@@ -11,7 +11,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir)/lib + -I$(top_srcdir)/lib \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = -I$(top_srcdir)/include/drm-uapi \ $(DRM_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) \
debugger/Makefile.am +2 -1
@@ -7,7 +7,8 @@ noinst_PROGRAMS = debug_rdata AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/lib \ - -I$(top_srcdir)/include/drm-uapi + -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(DRM_CFLAGS) \
lib/Makefile.am +2 -1
@@ -52,7 +52,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir) + -I$(top_srcdir) \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(CWARNFLAGS) \
lib/stubs/syscalls/README new file +6 -0
@@ -0,0 +1,6 @@ +This directory contains stub implementations for syscalls missing from libc. +This provides a way to build IGT on an old system, but it will not run +correctly if the kernel is missing the functionality provided. In order to +add a new definition, follow the same directory hierarchy as the standard +location in which the header is defined so we don't have to clutter the +codebase to support old systems.
lib/tests/Makefile.am +1 -0
@@ -11,6 +11,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/../.. \ -I$(srcdir)/.. \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../../lib/check-ndebug.h" \ -DIGT_DATADIR=\""$(abs_srcdir)"\" \ -D_GNU_SOURCE
meson.build +1 -1
@@ -64,7 +64,7 @@ _tests_required = build_tests == 'true' build_info = [] -inc = include_directories('include/drm-uapi', 'lib', '.') +inc = include_directories('include/drm-uapi', 'lib', 'lib/stubs/syscalls', '.') inc_for_gtkdoc = include_directories('lib')
overlay/Makefile.am +2 -1
@@ -7,7 +7,8 @@ endif tracepoint_format.h: tracepoint_format.leg $(LEG) -o $@ $< -AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi +AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.la
tests/Makefile.am +1 -0
@@ -88,6 +88,7 @@ AM_CFLAGS = $(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS)\ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/.. \ -I$(srcdir)/../lib \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../lib/check-ndebug.h" \ -DIGT_SRCDIR=\""$(abs_srcdir)"\" \ -DIGT_DATADIR=\""$(pkgdatadir)"\" \
tools/Makefile.am +2 -1
@@ -13,7 +13,8 @@ intel_dp_compliance_LDADD = $(top_builddir)/lib/libintel_tools.la SUBDIRS = null_state_gen registers -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DEBUG_CFLAGS) $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) -DIGT_DATADIR=\"$(pkgdatadir)\" \ $(WERROR_CFLAGS) -D_GNU_SOURCE
tools/null_state_gen/Makefile.am +2 -1
@@ -1,5 +1,6 @@ GPU_TOOLS_PATH := $(top_srcdir) -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DEBUG_CFLAGS) $(CWARNFLAGS) noinst_PROGRAMS = intel_null_state_gen
Signature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v2 2/2 build: provide stub implementation for memfd_create
In reply to Lucas De MarchiWhen libc misses memfd_create(), provide a stub implementation to go through the syscall() route. Syscall numbers are provided for platforms currently supported by i-g-t only.
v2: add support to autotools
--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++ 3 files changed, 43 insertions(+) create mode 100644 lib/stubs/syscalls/sys/mman.h
configure.ac +3 -0
@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([
lib/stubs/syscalls/sys/mman.h new file +37 -0
@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create (const char *name,unsigned int flags) +{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif
meson.build +3 -0
@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif +have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have) + add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')
Signature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Fix i-g-t on old systems (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Fix i-g-t on old systems (rev2)
URL : https://patchwork.freedesktop.org/series/46892/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4534 -> IGTPW_1643 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/46892/revisions/2/mbox/
== Known issues ==
Here are the changes found in IGTPW_1643 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_chamelium@dp-crc-fast:
fi-kbl-7500u: PASS -> DMESG-FAIL (fdo#103841)
==== Possible fixes ====
igt@gem_exec_flush@basic-wb-ro-default:
fi-glk-j4005: DMESG-WARN (fdo#105719) -> PASS fdo#103841 https://bugs.freedesktop.org/show_bug.cgi?id=103841
fdo#105719 https://bugs.freedesktop.org/show_bug.cgi?id=105719
== Participating hosts (52 -> 41) ==
Missing (11): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-kbl-8809g fi-pnv-d510 fi-icl-u fi-skl-caroline fi-byt-clapper fi-bdw-samus
== Build changes ==
* IGT: IGT_4572 -> IGTPW_1643
CI_DRM_4534: a59bbda34ede6f5685fdc86b58f143bada751617 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1643: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1643/
IGT_4572: 9b064015df14506b23cd2d7245a73e1b1d16ee1f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1643/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create
In reply to Lucas De MarchiQuoted 7 lines · Lucas De Marchi
When libc misses
memfd_create(), provide a stub implementation to go through thesyscall()route. Syscall numbers are provided for platforms currently supported by i-g-t only.v2: add support to autotools
Signed-off-by Lucas De Marchi <[email protected]>
Quoted 85 lines
--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++ 3 files changed, 43 insertions(+) create mode 100644 lib/stubs/syscalls/sys/mman.hconfigure.ac +3
-0@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([lib/stubs/syscalls/sys/mman.h new file +37
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create (const char *name,unsigned int flags) +{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif meson.build +3
-0@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif +have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have) + add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')Signature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 1/2] build: provide include for missing syscalls
In reply to Lucas De MarchiQuoted 6 lines · Lucas De Marchi
Add directory with README file to allow missing syscalls to be defined. The syscalls themselves will be provided in follow up patches.
v2: add support to autotools
Signed-off-by Lucas De Marchi <[email protected]>
Quoted 152 lines
--- benchmarks/Makefile.am | 3 ++- debugger/Makefile.am | 3 ++- lib/Makefile.am | 3 ++- lib/stubs/syscalls/README | 6 ++++++ lib/tests/Makefile.am | 1 + meson.build | 2 +- overlay/Makefile.am | 3 ++- tests/Makefile.am | 1 + tools/Makefile.am | 3 ++- tools/null_state_gen/Makefile.am | 3 ++- 10 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 lib/stubs/syscalls/READMEbenchmarks/Makefile.am +2
-1@@ -11,7 +11,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir)/lib + -I$(top_srcdir)/lib \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = -I$(top_srcdir)/include/drm-uapi \ $(DRM_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) \debugger/Makefile.am +2
-1@@ -7,7 +7,8 @@ noinst_PROGRAMS = debug_rdata AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/lib \ - -I$(top_srcdir)/include/drm-uapi + -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(DRM_CFLAGS) \lib/Makefile.am +2
-1@@ -52,7 +52,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir) + -I$(top_srcdir) \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(CWARNFLAGS) \lib/stubs/syscalls/README new file +6
-0@@ -0,0 +1,6 @@ +This directory contains stub implementations for syscalls missing from libc. +This provides a way to build IGT on an old system, but it will not run +correctly if the kernel is missing the functionality provided. In order to +add a new definition, follow the same directory hierarchy as the standard +location in which the header is defined so we don't have to clutter the +codebase to support old systems.lib/tests/Makefile.am +1
-0@@ -11,6 +11,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/../.. \ -I$(srcdir)/.. \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../../lib/check-ndebug.h" \ -DIGT_DATADIR=\""$(abs_srcdir)"\" \ -D_GNU_SOURCEmeson.build +1
-1@@ -64,7 +64,7 @@ _tests_required = build_tests == 'true' build_info = [] -inc = include_directories('include/drm-uapi', 'lib', '.') +inc = include_directories('include/drm-uapi', 'lib', 'lib/stubs/syscalls', '.') inc_for_gtkdoc = include_directories('lib')overlay/Makefile.am +2
-1@@ -7,7 +7,8 @@ endif tracepoint_format.h: tracepoint_format.leg $(LEG) -o $@ $< -AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi +AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.latests/Makefile.am +1
-0@@ -88,6 +88,7 @@ AM_CFLAGS = $(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS)\ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/.. \ -I$(srcdir)/../lib \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../lib/check-ndebug.h" \ -DIGT_SRCDIR=\""$(abs_srcdir)"\" \ -DIGT_DATADIR=\""$(pkgdatadir)"\" \tools/Makefile.am +2
-1@@ -13,7 +13,8 @@ intel_dp_compliance_LDADD = $(top_builddir)/lib/libintel_tools.la SUBDIRS = null_state_gen registers -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DEBUG_CFLAGS) $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) -DIGT_DATADIR=\"$(pkgdatadir)\" \ $(WERROR_CFLAGS) -D_GNU_SOURCEtools/null_state_gen/Makefile.am +2
-1@@ -1,5 +1,6 @@ GPU_TOOLS_PATH := $(top_srcdir) -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DEBUG_CFLAGS) $(CWARNFLAGS) noinst_PROGRAMS = intel_null_state_genSignature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for Fix i-g-t on old systems (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Fix i-g-t on old systems (rev2)
URL : https://patchwork.freedesktop.org/series/46892/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4572_full -> IGTPW_1643_full =
== Summary - WARNING ==
Minor unknown changes coming with IGTPW_1643_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_1643_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/46892/revisions/2/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1643_full:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_schedule@deep-blt:
shard-apl: SKIP -> PASS +3
igt@gem_exec_schedule@deep-bsd:
shard-glk: SKIP -> PASS +3
igt@gem_exec_schedule@deep-bsd1:
shard-kbl: SKIP -> PASS +1
igt@pm_rc6_residency@rc6-accuracy:
shard-snb: PASS -> SKIP== Known issues ==
Here are the changes found in IGTPW_1643_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_suspend@basic-s3:
shard-kbl: NOTRUN -> INCOMPLETE (fdo#103665)
igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic:
shard-glk: NOTRUN -> FAIL (fdo#106509, fdo#105454)
igt@kms_setmode@basic:
shard-kbl: PASS -> FAIL (fdo#99912)
==== Possible fixes ====
igt@gem_ppgtt@blt-vs-render-ctxn:
shard-kbl: INCOMPLETE (fdo#103665, fdo#106023) -> PASS
igt@kms_flip@plain-flip-ts-check:
shard-glk: FAIL (fdo#100368) -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
shard-kbl: INCOMPLETE (fdo#103665) -> PASS
igt@kms_rotation_crc@sprite-rotation-180:
shard-snb: FAIL (fdo#103925) -> PASS
igt@kms_universal_plane@cursor-fb-leak-pipe-a:
shard-apl: FAIL (fdo#107241) -> PASS
igt@perf_pmu@rc6-runtime-pm-long:
shard-kbl: FAIL (fdo#105010) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#105010 https://bugs.freedesktop.org/show_bug.cgi?id=105010
fdo#105454 https://bugs.freedesktop.org/show_bug.cgi?id=105454
fdo#106023 https://bugs.freedesktop.org/show_bug.cgi?id=106023
fdo#106509 https://bugs.freedesktop.org/show_bug.cgi?id=106509
fdo#107241 https://bugs.freedesktop.org/show_bug.cgi?id=107241
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (5 -> 5) ==
No changes in participating hosts
== Build changes ==
* IGT: IGT_4572 -> IGTPW_1643
* Linux: CI_DRM_4533 -> CI_DRM_4534
CI_DRM_4533: 712e7047cfc7a129df6d324f59cc5d4eb2879285 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4534: a59bbda34ede6f5685fdc86b58f143bada751617 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1643: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1643/
IGT_4572: 9b064015df14506b23cd2d7245a73e1b1d16ee1f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1643/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create
In reply to Lucas De MarchiQuoted 11 lines · Lucas De Marchi
When libc misses
memfd_create(), provide a stub implementation to go through thesyscall()route. Syscall numbers are provided for platforms currently supported by i-g-t only.v2: add support to autotools
Signed-off-by Lucas De Marchi <[email protected]>--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++
I thought you were going to remove "#include <linux/memfd.h>" from gem_userptr_blits and include the stub instead.
Antonio.
Quoted 66 lines
3 files changed, 43 insertions(+)create mode 100644
lib/stubs/syscalls/sys/mman.hconfigure.ac +3
-0@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([lib/stubs/syscalls/sys/mman.h new file +37
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create (const char *name,unsigned int flags) +{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif meson.build +0
-0
meson.build if cc.has_member('struct sysinfo', 'totalram', · line 204
Quoted 9 lines
meson.build +3
-0@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif +have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have) + add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create
Quoted 8 lines · Antonio Argenziano
Quoted 6 lines · Lucas De Marchi
When libc misses
memfd_create(), provide a stub implementation to go through thesyscall()route. Syscall numbers are provided for platforms currently supported by i-g-t only.v2: add support to autotools
Quoted 8 lines
Quoted 5 lines
Signed-off-by Lucas De Marchi <[email protected]>--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++I thought you were going to remove "#include <
linux/memfd.h>" fromgem_userptr_blitsand include the stub instead.
I decided not to. To summarize:
In order to get the memfd_create() function definition one needs to include sys/mman.h. The man page is wrong and I sent a patch.
linux/memfd.h is the kernel header (i.e. not from libc). It's useful to have it if we are using or going to use new flags not present in the libc headers. Or harmless. This is their content for me:
kernel header (linux/memfd.h):
/* flags for memfd_create(2) (unsigned int) */
#define MFD_CLOEXEC 0x0001U #define MFD_ALLOW_SEALING 0x0002U #define MFD_HUGETLB 0x0004U
libc header (bits/mman-shared.h which is down the include chain for sys/mman.h):
#ifdef __USE_GNU
/* Flags for memfd_create. */
# ifndef MFD_CLOEXEC # define MFD_CLOEXEC 1U # define MFD_ALLOW_SEALING 2U # define MFD_HUGETLB 4U # endif ...
We could also check if linux/memfd.h is available or just remove the include since we are not using any flag not available on libc, but IMO it's not necessary or at least not for this patch.
Lucas De Marchi
Quoted 72 lines
Antonio.
Quoted 69 lines
3 files changed, 43 insertions(+)create mode 100644
lib/stubs/syscalls/sys/mman.hconfigure.ac +3
-0@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([lib/stubs/syscalls/sys/mman.h new file +25
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create(const char *name, unsigned intflags)
lib/stubs/syscalls/sys/mman.h new file +12
-0+{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif meson.build +0
-0@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif
Quoted 8 lines
meson.build if cc.has_member('struct sysinfo', 'totalram', · line 203
Quoted 8 lines
meson.build +3
-0+have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have) + add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Antonio Argenziano
Acked-byRe: [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create
Quoted 45 lines · Lucas
Quoted 8 lines · Antonio Argenziano
Quoted 6 lines · Lucas De Marchi
When libc misses
memfd_create(), provide a stub implementation to go through thesyscall()route. Syscall numbers are provided for platforms currently supported by i-g-t only.v2: add support to autotools
Quoted 8 lines
Quoted 5 lines
Signed-off-by Lucas De Marchi <[email protected]>--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++I thought you were going to remove "#include <
linux/memfd.h>" fromgem_userptr_blitsand include the stub instead.I decided not to. To summarize:
In order to get the
memfd_create()function definition one needs to includesys/mman.h. The man page is wrong and I sent a patch.
linux/memfd.his the kernel header (i.e. not from libc). It's useful to have it if we are using or going to use new flags not present in the libc headers. Or harmless. This is their content for me:kernel header (
linux/memfd.h):
/* flags formemfd_create(2)(unsigned int) */#define MFD_CLOEXEC 0x0001U #define MFD_ALLOW_SEALING 0x0002U #define MFD_HUGETLB 0x0004Ulibc header (
bits/mman-shared.hwhich is down the include chain forsys/mman.h):#ifdef
__USE_GNU
/* Flags formemfd_create. */# ifndef MFD_CLOEXEC # define MFD_CLOEXEC 1U # define MFD_ALLOW_SEALING 2U # define MFD_HUGETLB 4U # endif ...
Quoted 3 lines
We could also check if
linux/memfd.his available or just remove the include since we are not using any flag not available on libc, but IMO it's not necessary or at least not for this patch.
Fair enough, time for me to modernize a little anyway :).
For both patches:
Quoted 76 lines
Lucas De Marchi
Quoted 72 lines
Antonio.
Quoted 69 lines
3 files changed, 43 insertions(+)create mode 100644
lib/stubs/syscalls/sys/mman.hconfigure.ac +3
-0@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([lib/stubs/syscalls/sys/mman.h new file +25
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create(const char *name, unsigned intflags)
lib/stubs/syscalls/sys/mman.h new file +12
-0+{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif meson.build +0
-0@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif
Quoted 8 lines
Quoted 8 lines
meson.build if cc.has_member('struct sysinfo', 'totalram', · line 203
Quoted 8 lines
meson.build +3
-0+have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have) + add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create
Quoted 48 lines · Antonio Argenziano
Quoted 45 lines · Lucas
Quoted 8 lines · Antonio Argenziano
Quoted 6 lines · Lucas De Marchi
When libc misses
memfd_create(), provide a stub implementation to go through thesyscall()route. Syscall numbers are provided for platforms currently supported by i-g-t only.v2: add support to autotools
Quoted 8 lines
Quoted 5 lines
Signed-off-by Lucas De Marchi <[email protected]>--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++I thought you were going to remove "#include <
linux/memfd.h>" fromgem_userptr_blitsand include the stub instead.I decided not to. To summarize:
In order to get the
memfd_create()function definition one needs to includesys/mman.h. The man page is wrong and I sent a patch.
linux/memfd.his the kernel header (i.e. not from libc). It's useful to have it if we are using or going to use new flags not present in the libc headers. Or harmless. This is their content for me:kernel header (
linux/memfd.h):
/* flags formemfd_create(2)(unsigned int) */#define MFD_CLOEXEC 0x0001U #define MFD_ALLOW_SEALING 0x0002U #define MFD_HUGETLB 0x0004Ulibc header (
bits/mman-shared.hwhich is down the include chain forsys/mman.h):#ifdef
__USE_GNU
/* Flags formemfd_create. */# ifndef MFD_CLOEXEC # define MFD_CLOEXEC 1U # define MFD_ALLOW_SEALING 2U # define MFD_HUGETLB 4U # endif ...
Quoted 8 lines
Quoted 3 lines
We could also check if
linux/memfd.his available or just remove the include since we are not using any flag not available on libc, but IMO it's not necessary or at least not for this patch.Fair enough, time for me to modernize a little anyway :).
For both patches:
pushed, thanks
Quoted 78 lines
Quoted 78 lines
Lucas De Marchi
Quoted 73 lines
Antonio.
Quoted 70 lines
3 files changed, 43 insertions(+)create mode 100644
lib/stubs/syscalls/sys/mman.hconfigure.ac +3
-0@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([lib/stubs/syscalls/sys/mman.h new file +25
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create(const char *name, unsigned intflags)
lib/stubs/syscalls/sys/mman.h new file +12
-0+{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif meson.build +2
-0@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif +have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have)
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
meson.build if cc.has_member('struct sysinfo', 'totalram', · line 204
Quoted 4 lines
meson.build +1
-0+ add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create
In reply to Lucas De MarchiQuoted 77 lines · Lucas De Marchi
When libc misses
memfd_create(), provide a stub implementation to go through thesyscall()route. Syscall numbers are provided for platforms currently supported by i-g-t only.v2: add support to autotools
Signed-off-by Lucas De Marchi <[email protected]>--- configure.ac | 3 +++ lib/stubs/syscalls/sys/mman.h | 37 +++++++++++++++++++++++++++++++++++ meson.build | 3 +++ 3 files changed, 43 insertions(+)create mode 100644
lib/stubs/syscalls/sys/mman.hconfigure.ac +3
-0@@ -81,6 +81,9 @@ AC_CHECK_FUNCS(timer_create, [], [ ]) AC_SUBST(TIMER_LIBS) +dnl Check for memfd_create +AC_CHECK_FUNCS(memfd_create) + dnl Check for CPUID cpuid="yes" AC_TRY_LINK([lib/stubs/syscalls/sys/mman.h new file +37
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ + +#pragma once + +#include_next <sys/mman.h> + +#if !defined(HAVE_MEMFD_CREATE ) || !HAVE_MEMFD_CREATE +#include <errno.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <unistd.h> + +#ifndef __NR_memfd_create +#if defined __x86_64__ +#define __NR_memfd_create 319 +#elif defined __i386__ +#define __NR_memfd_create 356 +#elif defined __arm__ +#define __NR_memfd_create 385 +#else +#warning "__NR_memfd_create unknown for your architecture" +#endif +#endif + +static inline int missing_memfd_create (const char *name,unsigned int flags) +{ +#ifdef __NR_memfd_create +return syscall (__NR_memfd_create, name, flags); +#else + errno =ENOSYS ; +return -1 ; +#endif +} + +#define memfd_create missing_memfd_create + +#endif meson.build +0
-0
meson.build if cc.has_member('struct sysinfo', 'totalram', · line 204
Quoted 9 lines
meson.build +3
-0@@ -196,6 +196,9 @@ if cc.has_member('struct sysinfo', 'totalram', config.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) endif +have = cc.has_function('memfd_create', prefix : '''#include <sys/mman.h>''', args : '-D_GNU_SOURCE') +config.set10('HAVE_MEMFD_CREATE', have) + add_project_arguments('-D_GNU_SOURCE', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')
Looks OK to me.
Regards,
Tvrtko
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v2 1/2] build: provide include for missing syscalls
In reply to Lucas De MarchiQuoted 145 lines · Lucas De Marchi
Add directory with README file to allow missing syscalls to be defined. The syscalls themselves will be provided in follow up patches.
v2: add support to autotools
Signed-off-by Lucas De Marchi <[email protected]>--- benchmarks/Makefile.am | 3 ++- debugger/Makefile.am | 3 ++- lib/Makefile.am | 3 ++- lib/stubs/syscalls/README | 6 ++++++ lib/tests/Makefile.am | 1 + meson.build | 2 +- overlay/Makefile.am | 3 ++- tests/Makefile.am | 1 + tools/Makefile.am | 3 ++- tools/null_state_gen/Makefile.am | 3 ++- 10 files changed, 21 insertions(+), 7 deletions(-)create mode 100644
lib/stubs/syscalls/READMEbenchmarks/Makefile.am +2
-1@@ -11,7 +11,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir)/lib + -I$(top_srcdir)/lib \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = -I$(top_srcdir)/include/drm-uapi \ $(DRM_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) \debugger/Makefile.am +2
-1@@ -7,7 +7,8 @@ noinst_PROGRAMS = debug_rdata AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/lib \ - -I$(top_srcdir)/include/drm-uapi + -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(DRM_CFLAGS) \lib/Makefile.am +2
-1@@ -52,7 +52,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir) + -I$(top_srcdir) \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(CWARNFLAGS) \lib/stubs/syscalls/README new file +6
-0@@ -0,0 +1,6 @@ +This directory contains stub implementations for syscalls missing from libc. +This provides a way to build IGT on an old system, but it will not run +correctly if the kernel is missing the functionality provided. In order to +add a new definition, follow the same directory hierarchy as the standard +location in which the header is defined so we don't have to clutter the +codebase to support old systems.lib/tests/Makefile.am +1
-0@@ -11,6 +11,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/../.. \ -I$(srcdir)/.. \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../../lib/check-ndebug.h" \ -DIGT_DATADIR=\""$(abs_srcdir)"\" \ -D_GNU_SOURCEmeson.build +1
-1@@ -64,7 +64,7 @@ _tests_required = build_tests == 'true' build_info = [] -inc = include_directories('include/drm-uapi', 'lib', '.') +inc = include_directories('include/drm-uapi', 'lib', 'lib/stubs/syscalls', '.') inc_for_gtkdoc = include_directories('lib')overlay/Makefile.am +2
-1@@ -7,7 +7,8 @@ endif tracepoint_format.h: tracepoint_format.leg $(LEG) -o $@ $< -AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi +AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.latests/Makefile.am +1
-0@@ -88,6 +88,7 @@ AM_CFLAGS = $(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS)\ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/.. \ -I$(srcdir)/../lib \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../lib/check-ndebug.h" \ -DIGT_SRCDIR=\""$(abs_srcdir)"\" \ -DIGT_DATADIR=\""$(pkgdatadir)"\" \tools/Makefile.am +2
-1@@ -13,7 +13,8 @@ intel_dp_compliance_LDADD = $(top_builddir)/lib/libintel_tools.la SUBDIRS = null_state_gen registers -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DEBUG_CFLAGS) $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) -DIGT_DATADIR=\"$(pkgdatadir)\" \ $(WERROR_CFLAGS) -D_GNU_SOURCEtools/null_state_gen/Makefile.am +0
-0
tools/null_state_gen/Makefile.am line 6
Quoted 7 lines
tools/null_state_gen/Makefile.am +2
-1@@ -1,5 +1,6 @@ GPU_TOOLS_PATH := $(top_srcdir) -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = $(DEBUG_CFLAGS) $(CWARNFLAGS) noinst_PROGRAMS = intel_null_state_gen
Regards,
Tvrtko
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev