Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lttng-ust for openSUSE:Factory checked in at 2022-08-22 11:04:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lttng-ust (Old) and /work/SRC/openSUSE:Factory/.lttng-ust.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lttng-ust" Mon Aug 22 11:04:45 2022 rev:11 rq:998198 version:2.13.3 Changes: -------- --- /work/SRC/openSUSE:Factory/lttng-ust/lttng-ust.changes 2022-05-20 17:50:24.063208450 +0200 +++ /work/SRC/openSUSE:Factory/.lttng-ust.new.2083/lttng-ust.changes 2022-08-22 11:04:46.641654911 +0200 @@ -1,0 +2,13 @@ +Fri Aug 19 14:30:31 UTC 2022 - Alexei Sorokin <sor.ale...@meowr.ru> + +- Update to version 2.13.3: + * Document ust lock async-signal-safety. + * Fix: don't use strerror() from ust lock nocheck. + * Fix: remove non-async-signal-safe fflush from ERR(). + * Fix: Pointers are rejected by integer element compile time + assertion for array and sequence. + * Fix: statedump: invalid read during iter_end. + * Fix: bytecode interpreter context_get_index() leaves byte order + uninitialised. + +------------------------------------------------------------------- Old: ---- lttng-ust-2.13.2.tar.bz2 lttng-ust-2.13.2.tar.bz2.asc New: ---- lttng-ust-2.13.3.tar.bz2 lttng-ust-2.13.3.tar.bz2.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lttng-ust.spec ++++++ --- /var/tmp/diff_new_pack.JOTG7C/_old 2022-08-22 11:04:47.245656234 +0200 +++ /var/tmp/diff_new_pack.JOTG7C/_new 2022-08-22 11:04:47.253656251 +0200 @@ -19,7 +19,7 @@ %define sover 1 %define sover_ctl 5 Name: lttng-ust -Version: 2.13.2 +Version: 2.13.3 Release: 0 Summary: Linux Trace Toolkit Userspace Tracer library License: GPL-2.0-only ++++++ lttng-ust-2.13.2.tar.bz2 -> lttng-ust-2.13.3.tar.bz2 ++++++ ++++ 2510 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/ChangeLog new/lttng-ust-2.13.3/ChangeLog --- old/lttng-ust-2.13.2/ChangeLog 2022-03-25 18:43:36.000000000 +0100 +++ new/lttng-ust-2.13.3/ChangeLog 2022-06-03 21:58:01.000000000 +0200 @@ -1,3 +1,11 @@ +2022-06-03 (National Repeat Day) (National Repeat Day) lttng-ust 2.13.3 + * Document ust lock async-signal-safety + * Fix: don't use strerror() from ust lock nocheck + * Fix: remove non-async-signal-safe fflush from ERR() + * Fix: Pointers are rejected by integer element compile time assertion for array and sequence + * Fix: statedump: invalid read during iter_end + * Fix: bytecode interpreter context_get_index() leaves byte order uninitialized + 2022-03-25 (National Waffle Day) lttng-ust 2.13.2 * fix: __STDC_VERSION__ can be undefined in C++ * Fix: sample discarded events count before reserve diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/config/ar-lib new/lttng-ust-2.13.3/config/ar-lib --- old/lttng-ust-2.13.2/config/ar-lib 2022-03-25 18:46:44.000000000 +0100 +++ new/lttng-ust-2.13.3/config/ar-lib 2022-06-03 21:58:41.000000000 +0200 @@ -2,9 +2,9 @@ # Wrapper for Microsoft lib.exe me=ar-lib -scriptversion=2012-03-01.08; # UTC +scriptversion=2019-07-04.01; # UTC -# Copyright (C) 2010-2018 Free Software Foundation, Inc. +# Copyright (C) 2010-2020 Free Software Foundation, Inc. # Written by Peter Rosin <p...@lysator.liu.se>. # # This program is free software; you can redistribute it and/or modify @@ -53,7 +53,7 @@ MINGW*) file_conv=mingw ;; - CYGWIN*) + CYGWIN* | MSYS*) file_conv=cygwin ;; *) @@ -65,7 +65,7 @@ mingw) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; - cygwin) + cygwin | msys) file=`cygpath -m "$file" || echo "$file"` ;; wine) @@ -224,10 +224,11 @@ esac done else - $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member - do - $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? - done + $AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \ + | while read member + do + $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? + done fi elif test -n "$quick$replace"; then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/config/compile new/lttng-ust-2.13.3/config/compile --- old/lttng-ust-2.13.2/config/compile 2022-03-25 18:46:44.000000000 +0100 +++ new/lttng-ust-2.13.3/config/compile 2022-06-03 21:58:41.000000000 +0200 @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2018 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 Free Software Foundation, Inc. # Written by Tom Tromey <tro...@cygnus.com>. # # This program is free software; you can redistribute it and/or modify @@ -53,7 +53,7 @@ MINGW*) file_conv=mingw ;; - CYGWIN*) + CYGWIN* | MSYS*) file_conv=cygwin ;; *) @@ -67,7 +67,7 @@ mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; - cygwin/*) + cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/config/missing new/lttng-ust-2.13.3/config/missing --- old/lttng-ust-2.13.2/config/missing 2022-03-25 18:46:44.000000000 +0100 +++ new/lttng-ust-2.13.3/config/missing 2022-06-03 21:58:41.000000000 +0200 @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1996-2018 Free Software Foundation, Inc. +# Copyright (C) 1996-2020 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard <pin...@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/config/test-driver new/lttng-ust-2.13.3/config/test-driver --- old/lttng-ust-2.13.2/config/test-driver 2022-03-25 18:46:45.000000000 +0100 +++ new/lttng-ust-2.13.3/config/test-driver 2022-06-03 21:58:42.000000000 +0200 @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 2011-2018 Free Software Foundation, Inc. +# Copyright (C) 2011-2020 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -42,11 +42,13 @@ { cat <<END Usage: - test-driver --test-name=NAME --log-file=PATH --trs-file=PATH - [--expect-failure={yes|no}] [--color-tests={yes|no}] - [--enable-hard-errors={yes|no}] [--] + test-driver --test-name NAME --log-file PATH --trs-file PATH + [--expect-failure {yes|no}] [--color-tests {yes|no}] + [--enable-hard-errors {yes|no}] [--] TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] + The '--test-name', '--log-file' and '--trs-file' options are mandatory. +See the GNU Automake documentation for information. END } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/configure.ac new/lttng-ust-2.13.3/configure.ac --- old/lttng-ust-2.13.2/configure.ac 2022-03-25 18:44:28.000000000 +0100 +++ new/lttng-ust-2.13.3/configure.ac 2022-06-03 21:58:01.000000000 +0200 @@ -8,7 +8,7 @@ # Project version information m4_define([ust_version_major], [2]) m4_define([ust_version_minor], [13]) -m4_define([ust_version_patch], [2]) +m4_define([ust_version_patch], [3]) m4_define([ust_version_dev_stage], []) m4_define([ust_version], ust_version_major[.]ust_version_minor[.]ust_version_patch[]ust_version_dev_stage) m4_define([ust_version_name], [[Nordicit??]]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/lttng-gen-tp.1 new/lttng-ust-2.13.3/doc/man/lttng-gen-tp.1 --- old/lttng-ust-2.13.2/doc/man/lttng-gen-tp.1 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/lttng-gen-tp.1 2022-06-03 21:59:12.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: lttng-gen-tp .\" Author: [see the "AUTHOR" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "LTTNG\-GEN\-TP" "1" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "LTTNG\-GEN\-TP" "1" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/lttng-ust-cyg-profile.3 new/lttng-ust-2.13.3/doc/man/lttng-ust-cyg-profile.3 --- old/lttng-ust-2.13.2/doc/man/lttng-ust-cyg-profile.3 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/lttng-ust-cyg-profile.3 2022-06-03 21:59:15.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: lttng-ust-cyg-profile .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "LTTNG\-UST\-CYG\-PRO" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "LTTNG\-UST\-CYG\-PRO" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/lttng-ust-dl.3 new/lttng-ust-2.13.3/doc/man/lttng-ust-dl.3 --- old/lttng-ust-2.13.2/doc/man/lttng-ust-dl.3 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/lttng-ust-dl.3 2022-06-03 21:59:14.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: lttng-ust-dl .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "LTTNG\-UST\-DL" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "LTTNG\-UST\-DL" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/lttng-ust.3 new/lttng-ust-2.13.3/doc/man/lttng-ust.3 --- old/lttng-ust-2.13.2/doc/man/lttng-ust.3 2022-03-25 18:53:42.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/lttng-ust.3 2022-06-03 21:59:14.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: lttng-ust .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "LTTNG\-UST" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "LTTNG\-UST" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -211,7 +211,7 @@ API version\ \&\fIN\fR, and all the following existing APIs, are available\&. Previous APIs are not available (not compiled)\&. .RE .sp -The following table shows the mapping from LTTng\-UST versions (up to LTTng\-UST\ \&2\&.13\&.2) to available API versions: +The following table shows the mapping from LTTng\-UST versions (up to LTTng\-UST\ \&2\&.13\&.3) to available API versions: .TS allbox tab(:); ltB ltB. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/lttng_ust_tracef.3 new/lttng-ust-2.13.3/doc/man/lttng_ust_tracef.3 --- old/lttng-ust-2.13.2/doc/man/lttng_ust_tracef.3 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/lttng_ust_tracef.3 2022-06-03 21:59:16.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: lttng_ust_tracef .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "LTTNG_UST_TRACEF" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "LTTNG_UST_TRACEF" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/lttng_ust_tracelog.3 new/lttng-ust-2.13.3/doc/man/lttng_ust_tracelog.3 --- old/lttng-ust-2.13.2/doc/man/lttng_ust_tracelog.3 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/lttng_ust_tracelog.3 2022-06-03 21:59:17.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: lttng_ust_tracelog .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "LTTNG_UST_TRACELOG" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "LTTNG_UST_TRACELOG" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/tracef.3 new/lttng-ust-2.13.3/doc/man/tracef.3 --- old/lttng-ust-2.13.2/doc/man/tracef.3 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/tracef.3 2022-06-03 21:59:17.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: tracef .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "TRACEF" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "TRACEF" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/doc/man/tracelog.3 new/lttng-ust-2.13.3/doc/man/tracelog.3 --- old/lttng-ust-2.13.2/doc/man/tracelog.3 2022-03-25 18:53:41.000000000 +0100 +++ new/lttng-ust-2.13.3/doc/man/tracelog.3 2022-06-03 21:59:18.000000000 +0200 @@ -1,13 +1,13 @@ '\" t .\" Title: tracelog .\" Author: [see the "AUTHORS" section] -.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 03/25/2022 +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 06/03/2022 .\" Manual: LTTng Manual -.\" Source: LTTng 2.13.2 +.\" Source: LTTng 2.13.3 .\" Language: English .\" -.TH "TRACELOG" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual" +.TH "TRACELOG" "3" "06/03/2022" "LTTng 2\&.13\&.3" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/include/lttng/ust-utils.h new/lttng-ust-2.13.3/include/lttng/ust-utils.h --- old/lttng-ust-2.13.2/include/lttng/ust-utils.h 2022-03-25 16:37:22.000000000 +0100 +++ new/lttng-ust-2.13.3/include/lttng/ust-utils.h 2022-06-03 21:58:01.000000000 +0200 @@ -59,14 +59,28 @@ #endif /** + * lttng_ust_is_pointer_type - check if type is a pointer + * + * Returns true if the type of @type is a pointer. + */ +#if defined(__cplusplus) +#define lttng_ust_is_pointer_type(type) (std::is_pointer<type>::value) +#else +/* The difference between two pointers is an integer. */ +#define lttng_ust_is_pointer_type(type) \ + (lttng_ust_is_integer_type(typeof(((type)0 - (type)0))) && !lttng_ust_is_integer_type(type)) +#endif + + +/** * lttng_ust_field_array_element_type_is_supported - * * Adds a compilation assertion that array and sequence fields declared by the - * user are of an integral type. + * user are of an integral or pointer type. */ #define lttng_ust_field_array_element_type_is_supported(type, item) \ - lttng_ust_static_assert(lttng_ust_is_integer_type(type), \ - "Non-integer type `" #item "` not supported as element of LTTNG_UST_FIELD_ARRAY or LTTNG_UST_FIELD_SEQUENCE", \ + lttng_ust_static_assert(lttng_ust_is_integer_type(type) || lttng_ust_is_pointer_type(type), \ + "Non-integer, non-pointer type `" #item "` not supported as element of LTTNG_UST_FIELD_ARRAY or LTTNG_UST_FIELD_SEQUENCE", \ Non_integer_type__##item##__not_supported_as_element_of_LTTNG_UST_FIELD_ARRAY_or_LTTNG_UST_FIELD_SEQUENCE) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/m4/libtool.m4 new/lttng-ust-2.13.3/m4/libtool.m4 --- old/lttng-ust-2.13.2/m4/libtool.m4 2022-03-25 18:46:41.000000000 +0100 +++ new/lttng-ust-2.13.3/m4/libtool.m4 2022-06-03 21:58:38.000000000 +0200 @@ -1041,8 +1041,8 @@ _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF @@ -1071,11 +1071,11 @@ # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) + 10.*|11.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; @@ -1492,7 +1492,7 @@ m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} -: ${AR_FLAGS=cru} +: ${AR_FLAGS=cr} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) @@ -4704,6 +4704,12 @@ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; + # flang / f18. f95 an alias for gfortran or flang on Debian + flang* | f18* | f95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/src/common/logging.h new/lttng-ust-2.13.3/src/common/logging.h --- old/lttng-ust-2.13.2/src/common/logging.h 2022-03-25 16:37:17.000000000 +0100 +++ new/lttng-ust-2.13.3/src/common/logging.h 2022-06-03 21:58:01.000000000 +0200 @@ -126,7 +126,6 @@ ____buf[sizeof(____buf) - 1] = 0; \ ust_patient_write(STDERR_FILENO, ____buf, strlen(____buf)); \ errno = ____saved_errno; /* signal-safety */ \ - fflush(stderr); \ } \ } while (0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/src/lib/lttng-ust/lttng-bytecode-interpreter.c new/lttng-ust-2.13.3/src/lib/lttng-ust/lttng-bytecode-interpreter.c --- old/lttng-ust-2.13.2/src/lib/lttng-ust/lttng-bytecode-interpreter.c 2022-03-25 16:37:17.000000000 +0100 +++ new/lttng-ust-2.13.3/src/lib/lttng-ust/lttng-bytecode-interpreter.c 2022-06-03 21:58:01.000000000 +0200 @@ -242,6 +242,7 @@ ptr->u.u64 = v.u.s64; /* Cast. */ ptr->ptr = &ptr->u.u64; } + ptr->rev_bo = lttng_ust_get_type_integer(field->type)->reverse_byte_order; break; case lttng_ust_type_enum: { @@ -258,6 +259,7 @@ ptr->u.u64 = v.u.s64; /* Cast. */ ptr->ptr = &ptr->u.u64; } + ptr->rev_bo = itype->reverse_byte_order; break; } case lttng_ust_type_array: @@ -296,6 +298,7 @@ ctx_field->get_value(ctx_field->priv, probe_ctx, &v); ptr->u.d = v.u.d; ptr->ptr = &ptr->u.d; + ptr->rev_bo = lttng_ust_get_type_float(field->type)->reverse_byte_order; break; case lttng_ust_type_dynamic: ctx_field->get_value(ctx_field->priv, probe_ctx, &v); @@ -309,6 +312,11 @@ ptr->object_type = OBJECT_TYPE_U64; ptr->u.u64 = v.u.u64; ptr->ptr = &ptr->u.u64; + /* + * struct lttng_ust_ctx_value does not currently + * feature a byte order field. + */ + ptr->rev_bo = false; dbg_printf("context get index dynamic u64 %" PRIi64 "\n", ptr->u.u64); break; case LTTNG_UST_DYNAMIC_TYPE_S8: @@ -318,6 +326,11 @@ ptr->object_type = OBJECT_TYPE_S64; ptr->u.s64 = v.u.s64; ptr->ptr = &ptr->u.s64; + /* + * struct lttng_ust_ctx_value does not currently + * feature a byte order field. + */ + ptr->rev_bo = false; dbg_printf("context get index dynamic s64 %" PRIi64 "\n", ptr->u.s64); break; case LTTNG_UST_DYNAMIC_TYPE_FLOAT: @@ -325,6 +338,11 @@ ptr->object_type = OBJECT_TYPE_DOUBLE; ptr->u.d = v.u.d; ptr->ptr = &ptr->u.d; + /* + * struct lttng_ust_ctx_value does not currently + * feature a byte order field. + */ + ptr->rev_bo = false; dbg_printf("context get index dynamic double %g\n", ptr->u.d); break; case LTTNG_UST_DYNAMIC_TYPE_STRING: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/src/lib/lttng-ust/lttng-ust-comm.c new/lttng-ust-2.13.3/src/lib/lttng-ust/lttng-ust-comm.c --- old/lttng-ust-2.13.2/src/lib/lttng-ust/lttng-ust-comm.c 2022-03-25 16:37:22.000000000 +0100 +++ new/lttng-ust-2.13.3/src/lib/lttng-ust/lttng-ust-comm.c 2022-06-03 21:58:01.000000000 +0200 @@ -119,6 +119,28 @@ int lttng_ust_loaded __attribute__((weak)); /* + * Notes on async-signal-safety of ust lock: a few libc functions are used + * which are not strictly async-signal-safe: + * + * - pthread_setcancelstate + * - pthread_mutex_lock + * - pthread_mutex_unlock + * + * As of glibc 2.35, the implementation of pthread_setcancelstate only + * touches TLS data, and it appears to be safe to use from signal + * handlers. If the libc implementation changes, this will need to be + * revisited, and we may ask glibc to provide an async-signal-safe + * pthread_setcancelstate. + * + * As of glibc 2.35, the implementation of pthread_mutex_lock/unlock + * for fast mutexes only relies on the pthread_mutex_t structure. + * Disabling signals around all uses of this mutex ensures + * signal-safety. If the libc implementation changes and eventually uses + * other global resources, this will need to be revisited and we may + * need to implement our own mutex. + */ + +/* * Return 0 on success, -1 if should quit. * The lock is taken in both cases. * Signal-safe. @@ -134,13 +156,13 @@ sigfillset(&sig_all_blocked); ret = pthread_sigmask(SIG_SETMASK, &sig_all_blocked, &orig_mask); if (ret) { - ERR("pthread_sigmask: %s", strerror(ret)); + ERR("pthread_sigmask: ret=%d", ret); } if (!URCU_TLS(ust_mutex_nest)++) pthread_mutex_lock(&ust_mutex); ret = pthread_sigmask(SIG_SETMASK, &orig_mask, NULL); if (ret) { - ERR("pthread_sigmask: %s", strerror(ret)); + ERR("pthread_sigmask: ret=%d", ret); } if (lttng_ust_comm_should_quit) { return -1; @@ -166,13 +188,13 @@ sigfillset(&sig_all_blocked); ret = pthread_sigmask(SIG_SETMASK, &sig_all_blocked, &orig_mask); if (ret) { - ERR("pthread_sigmask: %s", strerror(ret)); + ERR("pthread_sigmask: ret=%d", ret); } if (!URCU_TLS(ust_mutex_nest)++) pthread_mutex_lock(&ust_mutex); ret = pthread_sigmask(SIG_SETMASK, &orig_mask, NULL); if (ret) { - ERR("pthread_sigmask: %s", strerror(ret)); + ERR("pthread_sigmask: ret=%d", ret); } } @@ -187,13 +209,13 @@ sigfillset(&sig_all_blocked); ret = pthread_sigmask(SIG_SETMASK, &sig_all_blocked, &orig_mask); if (ret) { - ERR("pthread_sigmask: %s", strerror(ret)); + ERR("pthread_sigmask: ret=%d", ret); } if (!--URCU_TLS(ust_mutex_nest)) pthread_mutex_unlock(&ust_mutex); ret = pthread_sigmask(SIG_SETMASK, &orig_mask, NULL); if (ret) { - ERR("pthread_sigmask: %s", strerror(ret)); + ERR("pthread_sigmask: ret=%d", ret); } if (lttng_ust_cancelstate_disable_pop()) { ERR("lttng_ust_cancelstate_disable_pop"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/src/lib/lttng-ust/lttng-ust-statedump.c new/lttng-ust-2.13.3/src/lib/lttng-ust/lttng-ust-statedump.c --- old/lttng-ust-2.13.2/src/lib/lttng-ust/lttng-ust-statedump.c 2022-03-25 16:37:17.000000000 +0100 +++ new/lttng-ust-2.13.3/src/lib/lttng-ust/lttng-ust-statedump.c 2022-06-03 21:58:01.000000000 +0200 @@ -423,10 +423,10 @@ */ for (i = 0; i < UST_DL_STATE_TABLE_SIZE; i++) { struct cds_hlist_head *head; - struct lttng_ust_dl_node *e; + struct lttng_ust_dl_node *e, *tmp; head = &dl_state_table[i]; - cds_hlist_for_each_entry_2(e, head, node) { + cds_hlist_for_each_entry_safe_2(e, tmp, head, node) { if (e->marked) { if (!e->traced) { trace_lib_load(&e->bin_data, ip); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/src/lib/lttng-ust-common/ust-cancelstate.c new/lttng-ust-2.13.3/src/lib/lttng-ust-common/ust-cancelstate.c --- old/lttng-ust-2.13.2/src/lib/lttng-ust-common/ust-cancelstate.c 2022-03-25 16:37:17.000000000 +0100 +++ new/lttng-ust-2.13.3/src/lib/lttng-ust-common/ust-cancelstate.c 2022-06-03 21:58:01.000000000 +0200 @@ -28,7 +28,7 @@ goto end; ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); if (ret) { - ERR("pthread_setcancelstate: %s", strerror(ret)); + ERR("pthread_setcancelstate: ret=%d", ret); return -1; } state->oldstate = oldstate; @@ -47,7 +47,7 @@ goto end; ret = pthread_setcancelstate(state->oldstate, &oldstate); if (ret) { - ERR("pthread_setcancelstate: %s", strerror(ret)); + ERR("pthread_setcancelstate: ret=%d", ret); return -1; } if (oldstate != PTHREAD_CANCEL_DISABLE) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/lttng-ust-2.13.2/tests/unit/ust-utils/ust-utils-common.h new/lttng-ust-2.13.3/tests/unit/ust-utils/ust-utils-common.h --- old/lttng-ust-2.13.2/tests/unit/ust-utils/ust-utils-common.h 2022-03-25 16:37:17.000000000 +0100 +++ new/lttng-ust-2.13.3/tests/unit/ust-utils/ust-utils-common.h 2022-06-03 21:58:01.000000000 +0200 @@ -6,7 +6,7 @@ #include "tap.h" -#define NUM_TESTS 60 +#define NUM_TESTS 94 static void test_ust_stringify(void) @@ -116,6 +116,61 @@ ok_is_not_integer_type(void *); } +#define ok_is_pointer_type(_type) \ + ok(lttng_ust_is_pointer_type(_type) == true, "lttng_ust_is_pointer_type - '" lttng_ust_stringify(_type) "' is a pointer") + +#define ok_is_not_pointer_type(_type) \ + ok(lttng_ust_is_pointer_type(_type) == false, "lttng_ust_is_pointer_type - '" lttng_ust_stringify(_type) "' is not a pointer") + +struct dummy { + int a; +}; + +static +void test_ust_is_pointer_type(void) +{ + ok_is_not_pointer_type(char); + ok_is_not_pointer_type(short); + ok_is_not_pointer_type(int); + ok_is_not_pointer_type(long); + ok_is_not_pointer_type(long long); + + ok_is_not_pointer_type(signed char); + ok_is_not_pointer_type(signed short); + ok_is_not_pointer_type(signed int); + ok_is_not_pointer_type(signed long); + ok_is_not_pointer_type(signed long long); + + ok_is_not_pointer_type(unsigned char); + ok_is_not_pointer_type(unsigned short); + ok_is_not_pointer_type(unsigned int); + ok_is_not_pointer_type(unsigned long); + ok_is_not_pointer_type(unsigned long long); + + ok_is_not_pointer_type(int8_t); + ok_is_not_pointer_type(int16_t); + ok_is_not_pointer_type(int32_t); + ok_is_not_pointer_type(int64_t); + ok_is_not_pointer_type(intmax_t); + + ok_is_not_pointer_type(uint8_t); + ok_is_not_pointer_type(uint16_t); + ok_is_not_pointer_type(uint32_t); + ok_is_not_pointer_type(uint64_t); + ok_is_not_pointer_type(uintmax_t); + + ok_is_not_pointer_type(float); + ok_is_not_pointer_type(double); + ok_is_not_pointer_type(long double); + + ok_is_pointer_type(void *); + ok_is_pointer_type(void **); + ok_is_pointer_type(struct dummy *); + ok_is_pointer_type(int *); + ok_is_pointer_type(float *); + ok_is_pointer_type(double *); +} + int main(void) { plan_tests(NUM_TESTS); @@ -123,6 +178,7 @@ test_ust_stringify(); test_ust_is_signed(); test_ust_is_integer_type(); + test_ust_is_pointer_type(); return exit_status(); }