Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gpuvis for openSUSE:Factory checked in at 2022-01-27 23:17:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gpuvis (Old) and /work/SRC/openSUSE:Factory/.gpuvis.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gpuvis" Thu Jan 27 23:17:01 2022 rev:3 rq:949514 version:0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gpuvis/gpuvis.changes 2021-12-10 21:53:30.066922180 +0100 +++ /work/SRC/openSUSE:Factory/.gpuvis.new.1898/gpuvis.changes 2022-01-27 23:18:49.438208361 +0100 @@ -1,0 +2,43 @@ +Thu Jan 27 16:28:02 UTC 2022 - Patrik Jakobsson <patrik.jakobs...@suse.com> + +- Update to version v0.1 (first proper release) + * Minor fixes to compile/link on Windows. + * Fix includes for GCC 7 + * typo prevents execution + * Fix some unchecked error codes from asprintf (warnings->errors in gcc7) + * Don't rely on trace-cmd to mount at /sys/kernel/tracing if tracefs is + * Fix some potential null pointer dereferences + * gpuvis_trace_utils: Prefer C++11 thread_local vs. __thread + * gpuvis_trace_utils: Add 'static' to gpuvis_gettime_u64 + * Add a parser that can handle ETW files (extension is etl) + * Support for ETL gpu events + * Fixups for the ETL parser + * fix compilation on non-windows + * fix sdl2-config argument + * Include headers for stub compilation + * Update SteamVR provider GUID + * Trace block macro c + * Add 'ltime=' print param to inject event timestamp + * Allow hash of arbitrary ctx/ringno/seqno + * Use high-precision vblank timings, if available + * Integrate i915-perf data into GPUvis by + * Plot generic trace events and option to plot as step function + * Add support for importing generic DRM sched timing events. + * i915-perf fixes for Makefile by + * Hide intel GPU generated event row when we don't have any + * I915 perf updates + * Run trace-cmd-status.sh script from scripts location + * Don't die() when an unknown trace-cmd options is encountered + * Allow dtime= on events to tweak their offset. + * Don't try to access i915-perf data if no file was given + * i915-perf: add GPU frequency plot + * add meson build system + * trace-read: Fix high-prec vblank timestamps + * i915-perf: set a different default colors to GPU timeline events + * meson: remove python2 + * Add loading of Linux perf JSON + * Better i915-perf / tracepoint tracking + * Improve archive handling + * Enable Shortcut for gpuvis Desktop Application + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gpuvis.spec ++++++ --- /var/tmp/diff_new_pack.FqEznf/_old 2022-01-27 23:18:49.998204492 +0100 +++ /var/tmp/diff_new_pack.FqEznf/_new 2022-01-27 23:18:50.002204465 +0100 @@ -1,7 +1,7 @@ # # spec file for package gpuvis # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,16 @@ # -%define last_commit 7f47419470687c7ecbdf086b81f5bafdb05d1bef %define rapidjson_commit 1c2c8e085a8b2561dff17bedb689d2eb0609b689 Name: gpuvis -Version: 20211124 +Version: 0.1 Release: 0 Summary: GPU Trace Visualizer License: MIT Group: Development/Tools/Debuggers URL: https://github.com/mikesart/gpuvis -Source0: https://github.com/mikesart/gpuvis/archive/%{last_commit}/gpuvis.tar.gz +Source0: https://github.com/mikesart/gpuvis/archive/v%{version}/gpuvis.tar.gz Source1: https://github.com/Tencent/rapidjson/archive/%{rapidjson_commit}/rapidjson.tar.gz BuildRequires: freetype2-devel BuildRequires: gcc-c++ @@ -44,7 +43,7 @@ Gpuvis is a Linux GPU profiler similar to GPUView on Windows. It is designed to work with trace-cmd captures and help track down Linux gpu and application performance issues. %prep -%setup -q -n gpuvis-%{last_commit} +%setup -q -n gpuvis-%{version} mkdir -p lib/rapidjson tar -xf %{_sourcedir}/rapidjson.tar.gz --strip 1 -C lib/rapidjson ++++++ gpuvis.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/Makefile new/gpuvis-0.1/Makefile --- old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/Makefile 2021-12-04 00:56:38.000000000 +0100 +++ new/gpuvis-0.1/Makefile 2022-01-19 18:51:35.000000000 +0100 @@ -44,20 +44,43 @@ I915_PERF_LIBS=$(shell pkg-config --libs i915-perf) endif +WARNINGS = -Wall -Wextra -Wpedantic -Wmissing-include-dirs -Wformat=2 -Wshadow \ + -Wno-unused-parameter -Wno-missing-field-initializers -Wno-variadic-macros +CXXWARNINGS = -WARNINGS = -Wall -Wextra -Wpedantic -Wmissing-include-dirs -Wformat=2 -Wshadow -Wno-unused-parameter -Wno-missing-field-initializers ifneq ($(COMPILER),clang) # https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html - WARNINGS += -Wsuggest-attribute=format -Wimplicit-fallthrough=2 -Wno-class-memaccess + WARNINGS += -Wsuggest-attribute=format -Wimplicit-fallthrough=2 + CXXWARNINGS += -Wno-class-memaccess + + NO_MAYBE_UNINITIALIZED = -Wno-maybe-uninitialized + NO_OLD_STYLE_DECLARATION = -Wno-old-style-declaration + NO_STRINGOP_TRUNCATION = -Wno-stringop-truncation + NO_COMPARE_DISTINCT_POINTER_TYPES = + NO_FORMAT_NONLITERAL = + NO_POINTER_SIGN = + NO_CLOBBERED = -Wno-clobbered + NO_SUGGEST_ATTRIBUTE_FORMAT = -Wno-suggest-attribute=format + MCPU_OPT = -mcpu=native +else + NO_MAYBE_UNINITIALIZED = + NO_OLD_STYLE_DECLARATION = + NO_STRINGOP_TRUNCATION = + NO_COMPARE_DISTINCT_POINTER_TYPES = -Wno-compare-distinct-pointer-types + NO_FORMAT_NONLITERAL = -Wno-format-nonliteral + NO_POINTER_SIGN = -Wno-pointer-sign + NO_CLOBBERED = + NO_SUGGEST_ATTRIBUTE_FORMAT = + MCPU_OPT = endif # Investigate: Improving C++ Builds with Split DWARF # http://www.productive-cpp.com/improving-cpp-builds-with-split-dwarf/ -CFLAGS = $(WARNINGS) -march=native -fno-exceptions -gdwarf-4 -g2 -ggnu-pubnames -gsplit-dwarf $(SDL2FLAGS) $(GTK3FLAGS) $(I915_PERF_CFLAGS) -I/usr/include/freetype2 +CFLAGS = $(WARNINGS) $(MCPU_OPT) -mtune=native -fno-exceptions -gdwarf-4 -g2 -ggnu-pubnames -gsplit-dwarf $(SDL2FLAGS) $(GTK3FLAGS) $(I915_PERF_CFLAGS) -I/usr/include/freetype2 CFLAGS += -DUSE_FREETYPE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -CXXFLAGS = -fno-rtti -Woverloaded-virtual -LDFLAGS = -march=native -gdwarf-4 -g2 -Wl,--build-id=sha1 +CXXFLAGS = -fno-rtti -Woverloaded-virtual $(CXXWARNINGS) +LDFLAGS = $(MCPU_OPT) -mtune=native -gdwarf-4 -g2 -Wl,--build-id=sha1 LIBS = -Wl,--no-as-needed -lm -ldl -lpthread -lfreetype -lstdc++ $(SDL2LIBS) $(I915_PERF_LIBS) ifneq ("$(wildcard /usr/bin/ld.gold)","") @@ -117,10 +140,12 @@ ASAN_FLAGS = -fno-omit-frame-pointer -fno-optimize-sibling-calls ASAN_FLAGS += -fsanitize=address # fast memory error detector (heap, stack, global buffer overflow, and use-after free) ASAN_FLAGS += -fsanitize=leak # detect leaks - ASAN_FLAGS += -fsanitize=undefined # fast undefined behavior detector ASAN_FLAGS += -fsanitize=float-divide-by-zero # detect floating-point division by zero; ASAN_FLAGS += -fsanitize=bounds # enable instrumentation of array bounds and detect out-of-bounds accesses; +ifneq ($(COMPILER),clang) + ASAN_FLAGS += -fsanitize=undefined # fast undefined behavior detector ASAN_FLAGS += -fsanitize=object-size # enable object size checking, detect various out-of-bounds accesses. +endif CFLAGS += $(ASAN_FLAGS) LDFLAGS += $(ASAN_FLAGS) endif @@ -162,6 +187,10 @@ -include $(OBJS:.o=.d) +ifneq ($(COMPILER),clang) +$(ODIR)/src/imgui/imgui.o: CFLAGS += -Wno-stringop-truncation +endif + $(ODIR)/%.o: %.c Makefile $(RAPIDJSON_DEP) $(VERBOSE_PREFIX)echo "---- $< ----"; @$(MKDIR) $(dir $@) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/gpuvis.desktop new/gpuvis-0.1/gpuvis.desktop --- old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/gpuvis.desktop 1970-01-01 01:00:00.000000000 +0100 +++ new/gpuvis-0.1/gpuvis.desktop 2022-01-19 18:51:35.000000000 +0100 @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=gpuvis +GenericName=GPU Trace Visualizer +Comment=gpuvis desktop application +Exec=gpuvis +Icon=gpuvis +Terminal=false +Type=Application +Categories=Graphics; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/gpuvis.metainfo.xml new/gpuvis-0.1/gpuvis.metainfo.xml --- old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/gpuvis.metainfo.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/gpuvis-0.1/gpuvis.metainfo.xml 2022-01-19 18:51:35.000000000 +0100 @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="desktop"> + <id>gpuvis.desktop</id> + <metadata_license>CC0-1.0</metadata_license> + <project_license>MIT</project_license> + <name>gpuvis</name> + <summary>A GPU Trace Visualizer</summary> + <description> + <p> + Gpuvis is a Linux GPU profiler similar to GPUView on Windows. + It is designed to work with trace-cmd captures and help track + down Linux gpu and application performance issues. + </p> + <p> + Gpuvis is open-source, so feel free to contribute new features! + </p> + </description> + <screenshots> + <screenshot type="default"> + <image>https://raw.githubusercontent.com/mikesart/gpuvis/master/images/gpuvis.jpg</image> + </screenshot> + </screenshots> + <url type="homepage">https://github.com/mikesart/gpuvis/wiki</url> + <update_contact>mikes...@fastmail.com</update_contact> +</component> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/src/trace-cmd/trace-read.cpp new/gpuvis-0.1/src/trace-cmd/trace-read.cpp --- old/gpuvis-7f47419470687c7ecbdf086b81f5bafdb05d1bef/src/trace-cmd/trace-read.cpp 2021-12-04 00:56:38.000000000 +0100 +++ new/gpuvis-0.1/src/trace-cmd/trace-read.cpp 2022-01-19 18:51:35.000000000 +0100 @@ -1872,8 +1872,6 @@ tracecmd_input_t *handle; std::vector< file_info_t * > file_list; - // Latest ts value where a cpu data starts - unsigned long long trim_ts = 0; handle = new ( std::nothrow ) tracecmd_input_t; if ( !handle ) @@ -1890,6 +1888,9 @@ return -1; } + // Latest ts value where a cpu data starts + unsigned long long trim_ts = 0; + tracecmd_alloc( handle, file ); add_file( file_list, handle, file );