Package: numatop / 2.1-4

Metadata

Package Version Patches format
numatop 2.1-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix build host detection for i686 and ppc.patch | (download)

configure.ac | 5 2 + 3 - 0 !
1 file changed, 2 insertions(+), 3 deletions(-)

---
0001 Swap link arg order here.patch | (download)

Makefile.am | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [patch] swap link arg order here.
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

In a mock buildroot, this would otherwise fail linking due
to the ordering.

0002 configure.ac add build support for 32 bit i686 archi.patch | (download)

configure.ac | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 [patch] configure.ac: add build support for 32 bit i686 architectures
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Set CPU_INTEL for i686 as well as for x86-64 CPUs

Signed-off-by: Colin Ian King <colin.king@canonical.com>

0003 configure.ac add build support for 32 bit i686 archi.patch | (download)

configure.ac | 6 2 + 4 - 0 !
1 file changed, 2 insertions(+), 4 deletions(-)

 [patch] configure.ac: add build support for 32 bit i686 architectures
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Correctly Set CPU_INTEL for i686 as well as for x86-64 CPUs. Use
same logic for powerpc variants for CPU_PPC

Signed-off-by: Colin Ian King <colin.king@canonical.com>

0004 common os ensure command buffer is large enough fix .patch | (download)

common/os/os_util.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] common/os: ensure command buffer is large enough (fix gcc
 warnings)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Make command buffer large enough, fixes gcc 8.2 warnings:

common/os/os_util.c: In function os_sysfs_cmt_task_set:
common/os/os_util.c:781:45: warning: %s directive output
may be truncated writing up to 127 bytes into a region of
size 121 [-Wformat-truncation=]
  snprintf(command, sizeof(command), "rm -rf %s 2>/dev/null", path);
                                             ^~               ~~~~

common/os/os_util.c:785:44: warning: %s directive output
may be truncated writing up to 127 bytes into a region of
size 122 [-Wformat-truncation=]
  snprintf(command, sizeof(command), "mkdir %s 2>/dev/null", path);
                                            ^~               ~~~~

common/os/os_util.c:794:15: warning: %s directive output
may be truncated writing up to 127 bytes into a region of
size between 109 and 119 [-Wformat-truncation=]

    "echo %d > %s/tasks", lwpid, path);
               ^~                ~~~~

common/os/os_util.c:791:15: warning: %s directive output
may be truncated writing up to 127 bytes into a region of
size between 109 and 119 [-Wformat-truncation=]

    "echo %d > %s/tasks", pid, path);
               ^~              ~~~~
In file included from /usr/include/stdio.h:862,
                 from common/os/os_util.c:33:

Signed-off-by: Colin Ian King <colin.king@canonical.com>

0005 Trivial fix to spelling mistakes in source.patch | (download)

common/include/os/linux/perf_event.h | 2 1 + 1 - 0 !
common/win.c | 4 2 + 2 - 0 !
2 files changed, 3 insertions(+), 3 deletions(-)

 [patch] trivial fix to spelling mistakes in source
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Nothing major, just a few spelling mistake fixes

Signed-off-by: Colin Ian King <colin.king@canonical.com>

0006 Fix several printf format specifiers.patch | (download)

common/os/pfwrapper.c | 10 5 + 5 - 0 !
common/os/sym.c | 4 2 + 2 - 0 !
2 files changed, 7 insertions(+), 7 deletions(-)

 [patch] fix several printf format specifiers
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

There are several format specifiers that are incorrect, use %zu for
size_t values and %lx for u64 values.

Signed-off-by: Colin Ian King <colin.king@canonical.com>

0007 Clean up 32 bit build warnings.patch | (download)

common/os/map.c | 8 4 + 4 - 0 !
common/os/os_win.c | 6 3 + 3 - 0 !
common/proc.c | 3 2 + 1 - 0 !
common/win.c | 2 1 + 1 - 0 !
4 files changed, 10 insertions(+), 9 deletions(-)

 [patch] clean up 32 bit build warnings
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

The casting of uint64_t sized address values to void * pointers is
causing build warnings on 32 bit builds.  A simple remedy is to
cast uint64_t values to uintptr_t types before casting them to void *
pointers.

Signed-off-by: Colin Ian King <colin.king@canonical.com>