54f09e6d4c
* General changes: - New meson options xe_eudebug and vmtb. * Library changes: - Added PantherLake (PTL) support, unified PCI IDs into one common header pciids.h (Ngai-Mint Kwan) - Added BMG support for OA (Observability Architecture) for Xe driver. (José Roberto de Souza) - Added support for Xe3 platforms in GPGPU shader. (Andrzej Hajda) - Added 6k resolution support for a single CRTC. (Jeevan B) - Added support for MTL platform in GPGPU compute. (Nishit Sharma) * Runner changes: - Set option PRUNE_KEEP_ALL as default. (Kamil Konieczny) - Allow to dynamically ignore dmesg warn messages when generating results, usefull when driver is using kernel fault injection. (Kamil Konieczny). * Tools changes: - New power tool for power/energy measurement. (Ville Syrjälä) - New VM Testbench (VMTB) - SR-IOV Virtual Machine testing tool. (Adam Miszczak) - Fixes in amd_hdmi_compliance. (Stylon Wang and Wayne Lin) - Fixes in intel_reg. (Lucas De Marchi) * And many other bug fixes, improvements, cleanups and new tests. - Add fix-procps-ng-4.0.5.patch: Fix build with procps-ng >= 4.0.5 (https://gitlab.com/procps-ng/procps/-/issues/332) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/intel-gpu-tools?expand=0&rev=20
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
diff -ruNp a/meson.build b/meson.build
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -135,10 +135,14 @@ pciaccess = dependency('pciaccess', vers
|
|
libkmod = dependency('libkmod')
|
|
libprocps = dependency('libprocps', required : false)
|
|
libproc2 = dependency('libproc2', required : false)
|
|
+libproc21 = dependency('libproc2', required : false, version : '>=4.0.5')
|
|
if libprocps.found()
|
|
config.set('HAVE_LIBPROCPS', 1)
|
|
elif libproc2.found()
|
|
config.set('HAVE_LIBPROC2', 1)
|
|
+ if libproc21.found()
|
|
+ config.set('HAVE_LIBPROC21', 1)
|
|
+ endif
|
|
else
|
|
error('Either libprocps or libproc2 is required')
|
|
endif
|
|
diff -ruNp a/lib/igt_aux.c b/lib/igt_aux.c
|
|
--- a/lib/igt_aux.c
|
|
+++ b/lib/igt_aux.c
|
|
@@ -1358,10 +1358,17 @@ static bool get_process_ids(struct igt_p
|
|
prcs->comm = NULL;
|
|
prcs->stack = procps_pids_get(prcs->info, PIDS_FETCH_TASKS_ONLY);
|
|
if (prcs->stack) {
|
|
+#ifdef HAVE_LIBPROC21
|
|
+ prcs->tid = PIDS_VAL(EU_PID, s_int, prcs->stack);
|
|
+ prcs->euid = PIDS_VAL(EU_EUID, s_int, prcs->stack);
|
|
+ prcs->egid = PIDS_VAL(EU_EGID, s_int, prcs->stack);
|
|
+ prcs->comm = PIDS_VAL(EU_CMD, str, prcs->stack);
|
|
+#else
|
|
prcs->tid = PIDS_VAL(EU_PID, s_int, prcs->stack, prcs->info);
|
|
prcs->euid = PIDS_VAL(EU_EUID, s_int, prcs->stack, prcs->info);
|
|
prcs->egid = PIDS_VAL(EU_EGID, s_int, prcs->stack, prcs->info);
|
|
prcs->comm = PIDS_VAL(EU_CMD, str, prcs->stack, prcs->info);
|
|
+#endif
|
|
}
|
|
#endif
|
|
return prcs->tid != 0;
|