Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (59ca33ac8d244c80ec1306ff91e2dffeb39b8440)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (59ca33ac8d244c80ec1306ff91e2dffeb39b8440)
  • Date: Mon, 14 Nov 2022 10:28:53 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 4 +
libs/papi/BUILD | 2
libs/papi/DETAILS | 20 +++++++++
libs/papi/HISTORY | 4 +
libs/papi/PRE_BUILD | 3 +
libs/papi/patches/gnu_source.patch | 25 +++++++++++
libs/papi/patches/manpages-install.patch | 32 ++++++++++++++
libs/papi/patches/use-after-realloc.patch | 66
++++++++++++++++++++++++++++++
utils/tiptop/DEPENDS | 7 +++
utils/tiptop/DETAILS | 19 ++++++++
utils/tiptop/HISTORY | 2
11 files changed, 184 insertions(+)

New commits:
commit 59ca33ac8d244c80ec1306ff91e2dffeb39b8440
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

tiptop: new spell, performance monitoring tool for Linux

commit 94dba90f69d30221f9ade8289ceeb32ad8887faa
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

papi: new spell, Performance Application Programming Interface

diff --git a/ChangeLog b/ChangeLog
index 23ffc7c..640e255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2022-11-14 Ismael Luceno <ismael AT sourcemage.org>
+ * libs/papi: new spell, Performance Application Programming Interface
+ * utils/tiptop: new spell, performance monitoring tool for Linux
+
2022-11-09 Pavel Vinogradov <public AT sourcemage.org>
* MESON_FUNCTIONS: got rid of deprecation warning of using meson
instead of
meson setup
diff --git a/libs/papi/BUILD b/libs/papi/BUILD
new file mode 100755
index 0000000..ed9b1c7
--- /dev/null
+++ b/libs/papi/BUILD
@@ -0,0 +1,2 @@
+cd src &&
+default_build
diff --git a/libs/papi/DETAILS b/libs/papi/DETAILS
new file mode 100755
index 0000000..ae3b46d
--- /dev/null
+++ b/libs/papi/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=papi
+ VERSION=6.0.0
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+ SOURCE_URL[0]=http://icl.utk.edu/projects/${SPELL}/downloads/${SOURCE}
+
SOURCE_HASH=sha512:2a4a245d64c3ac05ca9664194ac406cfb360fc0935afdee115ca0fc3f24b6051d1130426ed959fac2f711a2239100b37a4dfe8e0885697f4f4c049554c95258a
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE="https://icl.utk.edu/papi/";
+ LICENSE[0]="BSD-3-Clause"
+ ENTERED=20221113
+ KEYWORDS=""
+ SHORT="Performance Application Programming Interface"
+cat << EOF
+PAPI provides the tool designer and application engineer with a consistent
+interface and methodology for use of the performance counter hardware found
+in most major microprocessors. PAPI enables software engineers to see, in
+near real time, the relation between software performance and processor
events.
+
+In addition, PAPI provides access to a collection of components that expose
+performance measurement opportunites across the hardware and software stack.
+EOF
diff --git a/libs/papi/HISTORY b/libs/papi/HISTORY
new file mode 100644
index 0000000..ee81c44
--- /dev/null
+++ b/libs/papi/HISTORY
@@ -0,0 +1,4 @@
+2022-11-13 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DETAILS, PRE_BUILD, patches/gnu_source.patch,
+ patches/manpages-install.patch, patches/use-after-realloc.patch:
+ spell created
diff --git a/libs/papi/PRE_BUILD b/libs/papi/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/libs/papi/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/libs/papi/patches/gnu_source.patch
b/libs/papi/patches/gnu_source.patch
new file mode 100644
index 0000000..67cd8ea
--- /dev/null
+++ b/libs/papi/patches/gnu_source.patch
@@ -0,0 +1,25 @@
+From e5b1706c98962ec402bf046014ef0d30fe9db5cc Mon Sep 17 00:00:00 2001
+From: Johannes <johannes.brechtmann AT gmail.com>
+Date: Sat, 12 Oct 2019 17:57:38 +0200
+Subject: [PATCH] Fix build against musl libc
+
+Origin: Void Linux
+Upstream-Status: Unknown
+[ismael AT sourcemage.org: Edited commit message]
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ src/components/perf_event/tests/perf_event_system_wide.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/src/components/perf_event/tests/perf_event_system_wide.c
++++ b/src/components/perf_event/tests/perf_event_system_wide.c
+@@ -15,6 +15,9 @@
+ #define __USE_GNU
+ #endif
+
++/* For cpu_set_t */
++#define _GNU_SOURCE
++
+ /* For sched_setaffinity() */
+ #include <sched.h>
+
diff --git a/libs/papi/patches/manpages-install.patch
b/libs/papi/patches/manpages-install.patch
new file mode 100644
index 0000000..556a4f9
--- /dev/null
+++ b/libs/papi/patches/manpages-install.patch
@@ -0,0 +1,32 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT sourcemage.org>
+Subject: [PATCH] Fix installation of manual pages
+Date: Mon, 14 Nov 2022 08:12:40 +0100
+
+Use "install" instead, to setup permissions and to avoid touching the
+permissions of files of unrelated packages.
+
+Upstream-Status: Unknown
+Origin: Source Mage GNU/Linux
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+
+diff --git a/man/Makefile b/man/Makefile
+index 26b54830a14c..1f50030a9a1d 100644
+--- a/man/Makefile
++++ b/man/Makefile
+@@ -3,11 +3,6 @@ clean:
+
+ install:
+ @echo "Man pages (MANDIR) being installed in: \"$(MANDIR)\"";
+- -mkdir -p $(MANDIR)/man3
+- -chmod go+rx $(MANDIR)/man3
+- -cp man3/PAPI*.3 $(MANDIR)/man3
+- -chmod go+r $(MANDIR)/man3/PAPI*.3
+- -mkdir -p $(MANDIR)/man1
+- -chmod go+rx $(MANDIR)/man1
+- -cp man1/*.1 $(MANDIR)/man1
+- -chmod go+r $(MANDIR)/man1/*.1
++ install -m755 -d $(MANDIR)/man3 $(MANDIR)/man1
++ install -m444 man3/PAPI*.3 $(MANDIR)/man3
++ install -m444 man1/*.1 $(MANDIR)/man1
diff --git a/libs/papi/patches/use-after-realloc.patch
b/libs/papi/patches/use-after-realloc.patch
new file mode 100644
index 0000000..f3c4775
--- /dev/null
+++ b/libs/papi/patches/use-after-realloc.patch
@@ -0,0 +1,66 @@
+From 0bd3e695505633bb68f2de99ffbe4da295d617c4 Mon Sep 17 00:00:00 2001
+From: Đoàn Trần Công Danh <congdanhqx AT gmail.com>
+Date: Thu, 13 Oct 2022 08:23:21 +0700
+Subject: [PATCH] Fix build with gcc-12
+
+Origin: Void Linux
+Upstream-Status: Unknown
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ src/libpfm4/lib/pfmlib_perf_event_pmu.c | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+--- a/src/libpfm4/lib/pfmlib_perf_event_pmu.c
++++ b/src/libpfm4/lib/pfmlib_perf_event_pmu.c
+@@ -23,6 +23,7 @@
+ */
+ #include <sys/types.h>
+ #include <string.h>
++#include <stddef.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <unistd.h>
+@@ -254,6 +255,7 @@ static perf_event_t *
+ perf_table_alloc_event(void)
+ {
+ perf_event_t *new_pe;
++ ptrdiff_t offset;
+
+ retry:
+ if (perf_pe_free < perf_pe_end)
+@@ -261,11 +263,12 @@ retry:
+
+ perf_pe_count += PERF_ALLOC_EVENT_COUNT;
+
++ offset = perf_pe_free - perf_pe;
+ new_pe = realloc(perf_pe, perf_pe_count * sizeof(perf_event_t));
+ if (!new_pe)
+ return NULL;
+
+- perf_pe_free = new_pe + (perf_pe_free - perf_pe);
++ perf_pe_free = new_pe + offset;
+ perf_pe_end = perf_pe_free + PERF_ALLOC_EVENT_COUNT;
+ perf_pe = new_pe;
+
+@@ -290,6 +293,7 @@ static perf_umask_t *
+ perf_table_alloc_umask(void)
+ {
+ perf_umask_t *new_um;
++ ptrdiff_t offset;
+
+ retry:
+ if (perf_um_free < perf_um_end)
+@@ -297,11 +301,12 @@ retry:
+
+ perf_um_count += PERF_ALLOC_UMASK_COUNT;
+
++ offset = perf_um_free - perf_um;
+ new_um = realloc(perf_um, perf_um_count * sizeof(*new_um));
+ if (!new_um)
+ return NULL;
+
+- perf_um_free = new_um + (perf_um_free - perf_um);
++ perf_um_free = new_um + offset;
+ perf_um_end = perf_um_free + PERF_ALLOC_UMASK_COUNT;
+ perf_um = new_um;
+
diff --git a/utils/tiptop/DEPENDS b/utils/tiptop/DEPENDS
new file mode 100755
index 0000000..bfdc383
--- /dev/null
+++ b/utils/tiptop/DEPENDS
@@ -0,0 +1,7 @@
+depends papi &&
+optional_depends libxml2 \
+ --{enable,disable}-libxml2 \
+ 'for configuration file support' &&
+optional_depends ncurses \
+ --{enable,disable}-curses \
+ 'for live-mode'
diff --git a/utils/tiptop/DETAILS b/utils/tiptop/DETAILS
new file mode 100755
index 0000000..d3995c3
--- /dev/null
+++ b/utils/tiptop/DETAILS
@@ -0,0 +1,19 @@
+. "$GRIMOIRE"/FUNCTIONS
+ SPELL=tiptop
+ VERSION=$(get_scm_version)
+ SOURCE="$SPELL-git.tar.xz"
+ SOURCE_URL[0]=git_http://github.com/FeCastle/$SPELL.git:$SPELL-git
+ SOURCE_IGNORE=volatile
+ FORCE_DOWLOAD=on
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-git"
+ WEB_SITE="https://github.com/FeCastle/tiptop/";
+ LICENSE[0]="GPL-2.0-only"
+ ENTERED=20221112
+ KEYWORDS=""
+ SHORT="performance monitoring tool for Linux"
+cat << EOF
+Tiptop is a performance monitoring tool for Linux. It provides a dynamic
+real-time view of the tasks running in the system. tiptop is very similar to
+the top utility, but most of the information displayed comes from hardware
+counters.
+EOF
diff --git a/utils/tiptop/HISTORY b/utils/tiptop/HISTORY
new file mode 100644
index 0000000..e26a5df
--- /dev/null
+++ b/utils/tiptop/HISTORY
@@ -0,0 +1,2 @@
+2022-11-12 Ismael Luceno <ismael AT sourcemage.org>
+ * DEPENDS, DETAILS: spell created



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (59ca33ac8d244c80ec1306ff91e2dffeb39b8440), Ismael Luceno, 11/14/2022

Archive powered by MHonArc 2.6.24.

Top of Page