mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-29 10:46:25 +00:00
lib: print uname information in the version string
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
831a47196d
commit
f1c4ec936c
@ -45,6 +45,7 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
#include "i915_drm.h"
|
#include "i915_drm.h"
|
||||||
@ -803,11 +804,16 @@ static void check_igt_exit(int sig)
|
|||||||
|
|
||||||
static void print_version(void)
|
static void print_version(void)
|
||||||
{
|
{
|
||||||
|
struct utsname uts;
|
||||||
|
|
||||||
if (list_subtests)
|
if (list_subtests)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(stdout, "IGT-Version: %s-%s (%s)\n", PACKAGE_VERSION,
|
uname(&uts);
|
||||||
IGT_GIT_SHA1, TARGET_CPU_PLATFORM);
|
|
||||||
|
fprintf(stdout, "IGT-Version: %s-%s (%s) (%s: %s %s)\n", PACKAGE_VERSION,
|
||||||
|
IGT_GIT_SHA1, TARGET_CPU_PLATFORM,
|
||||||
|
uts.sysname, uts.release, uts.machine);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_usage(const char *command_str, const char *help_str,
|
static void print_usage(const char *command_str, const char *help_str,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user