Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libtracefs for openSUSE:Factory 
checked in at 2022-11-25 13:12:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libtracefs (Old)
 and      /work/SRC/openSUSE:Factory/.libtracefs.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libtracefs"

Fri Nov 25 13:12:56 2022 rev:9 rq:1037999 version:1.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libtracefs/libtracefs.changes    2022-11-23 
09:48:39.451213979 +0100
+++ /work/SRC/openSUSE:Factory/.libtracefs.new.1597/libtracefs.changes  
2022-11-25 13:22:54.607600524 +0100
@@ -1,0 +2,6 @@
+Fri Nov 25 00:14:30 UTC 2022 - Jan Engelhardt <jeng...@inai.de>
+
+- Update to release 1.6.1
+  * Fix tracefs_iterate_raw_events() to handle NULL callback
+
+-------------------------------------------------------------------

Old:
----
  libtracefs-1.6.0.tar.gz

New:
----
  libtracefs-1.6.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libtracefs.spec ++++++
--- /var/tmp/diff_new_pack.U3mSTe/_old  2022-11-25 13:22:54.951602381 +0100
+++ /var/tmp/diff_new_pack.U3mSTe/_new  2022-11-25 13:22:54.955602402 +0100
@@ -18,7 +18,7 @@
 
 Name:           libtracefs
 %define lname   libtracefs1
-Version:        1.6.0
+Version:        1.6.1
 Release:        0
 Summary:        Linux kernel trace file system library
 License:        LGPL-2.1-only

++++++ libtracefs-1.6.0.tar.gz -> libtracefs-1.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libtracefs-1.6.0/Makefile 
new/libtracefs-1.6.1/Makefile
--- old/libtracefs-1.6.0/Makefile       2022-11-15 22:32:01.000000000 +0100
+++ new/libtracefs-1.6.1/Makefile       2022-11-16 18:06:45.000000000 +0100
@@ -2,7 +2,7 @@
 # libtracefs version
 TFS_VERSION = 1
 TFS_PATCHLEVEL = 6
-TFS_EXTRAVERSION = 0
+TFS_EXTRAVERSION = 1
 TRACEFS_VERSION = $(TFS_VERSION).$(TFS_PATCHLEVEL).$(TFS_EXTRAVERSION)
 
 export TFS_VERSION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libtracefs-1.6.0/src/tracefs-events.c 
new/libtracefs-1.6.1/src/tracefs-events.c
--- old/libtracefs-1.6.0/src/tracefs-events.c   2022-11-15 22:32:01.000000000 
+0100
+++ new/libtracefs-1.6.1/src/tracefs-events.c   2022-11-16 18:06:45.000000000 
+0100
@@ -266,7 +266,8 @@
                if (j < count) {
                        if (call_followers(instance, cpus[j].event, 
&cpus[j].record, cpus[j].cpu))
                                break;
-                       if (callback(cpus[j].event, &cpus[j].record, 
cpus[j].cpu, callback_context))
+                       if (callback &&
+                           callback(cpus[j].event, &cpus[j].record, 
cpus[j].cpu, callback_context))
                                break;
                        cpus[j].event = NULL;
                        read_next_record(tep, cpus + j);
@@ -420,6 +421,7 @@
 {
        bool *keep_going = instance ? &instance->iterate_keep_going :
                                      &top_iterate_keep_going;
+       struct follow_event *followers;
        struct cpu_iterate *all_cpus;
        int count = 0;
        int ret;
@@ -427,7 +429,14 @@
 
        (*(volatile bool *)keep_going) = true;
 
-       if (!tep || !callback)
+       if (!tep)
+               return -1;
+
+       if (instance)
+               followers = instance->followers;
+       else
+               followers = root_followers;
+       if (!callback && !followers)
                return -1;
 
        ret = open_cpu_files(instance, cpus, cpu_size, &all_cpus, &count);

Reply via email to