Add package to explicitly enable zero-copy dlog backend 70/281670/3 accepted/tizen/unified/20220921.022916
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 20 Sep 2022 10:33:51 +0000 (12:33 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 20 Sep 2022 14:19:13 +0000 (16:19 +0200)
Change-Id: If977fd867e7459523bb384877cee6ff117146471

Makefile.am
configs/30-zero-copy.conf [new file with mode: 0644]
configs/tizen-modules-dlog-zero-copy.conf [new file with mode: 0644]
packaging/dlog.spec

index 663726f..56e5116 100644 (file)
@@ -871,8 +871,13 @@ dlogconf_DATA = \
        configs/15-qos.conf \
        configs/20-pipe.conf \
        configs/25-logger.conf \
+       configs/30-zero-copy.conf \
        configs/99-dlog-logger.disable-platform-logging-for-testsuite.conf
 
+modulesloadddir = /usr/lib/modules/modules-load.d
+modulesloadd_DATA = \
+       configs/tizen-modules-dlog-zero-copy.conf
+
 bin_SCRIPTS = dlog_test dlog_cpu
 
 docdir = $(datadir)/doc/dlog
diff --git a/configs/30-zero-copy.conf b/configs/30-zero-copy.conf
new file mode 100644 (file)
index 0000000..c75168f
--- /dev/null
@@ -0,0 +1,7 @@
+# Zero-copy backend must be enabled explicitly (it will NOT be autodetected)
+backend=zero-copy
+
+# Disable libdlog features that harm performance
+limiter=0
+dynamic_config_path=
+
diff --git a/configs/tizen-modules-dlog-zero-copy.conf b/configs/tizen-modules-dlog-zero-copy.conf
new file mode 100644 (file)
index 0000000..e6e4c1a
--- /dev/null
@@ -0,0 +1 @@
+zlogger
index 5a1449f..760cce0 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       dlog
 Summary:    Logging service
-Version:    7.0.8
+Version:    7.0.9
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0, MIT
@@ -74,6 +74,15 @@ Summary:    print log data to the screen
 Group:      Development/Libraries
 %description -n dlogutil
 
+%package    config-backend-zero-copy
+License:    Apache-2.0
+Summary:    Force usage of zero-copy dlog backend
+Group:      Base/Startup
+%description config-backend-zero-copy
+Provides dlog config to enable zero-copy backend and tunes libdlog
+performance while sacrificing some of dlog features (static and
+dynamic filtering)
+
 %package config-syslog
 License:    Apache-2.0
 Summary:    Logger: syslog-source logging via dlog
@@ -269,6 +278,12 @@ chsmack -e 'System' %{_libexecdir}/dlog-log-critical
 %{_unitdir}/dlog_logger.service
 /usr/lib/systemd/system-generators/dlog-unit-generator
 
+%files config-backend-zero-copy
+%manifest dlog.manifest
+%license LICENSE.APACHE2.0 LICENSE.MIT
+/usr/lib/modules/modules-load.d/tizen-modules-dlog-zero-copy.conf
+%{_sysconfdir}/dlog.conf.d/30-zero-copy.conf
+
 %files config-syslog
 %manifest dlog.manifest
 %license LICENSE.APACHE2.0 LICENSE.MIT