Seung-Woo Kim [Thu, 20 Feb 2025 10:32:32 +0000 (19:32 +0900)]
packaging: Remove armv7hl repack baselibs from aarch64
Remove armv7hl repackaging target of baselips from aarch64
because of no armv7hl arch in Tizen-Unified project anymore.
Change-Id: If651a2100ed9ef2c083e1794159ef17205bf9d33
Ref: https://review.tizen.org/git/?p=scm/meta/qb.git;a=commit;h=
857137156ab2332e8b1324f0b2831e0caf98a5fa
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
Jaehoon Chung [Wed, 25 Dec 2024 23:23:47 +0000 (08:23 +0900)]
packaging: Add the comment about each boards
To distinguish the config of each boards, add the comments about board
name.
Change-Id: I0c091154e4e4c61737df643a75a29fc7e05d352f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 25 Dec 2024 23:16:04 +0000 (08:16 +0900)]
packaging: Add the module configs for odroid board of amlogic
It's using same configurations with kvim. But it can be used with
a different configuration. To clarify config, add its own
configurations.
Change-Id: I330343d69dc04fa0fc33b85be44ced63d43889ac
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Marek Szyprowski [Wed, 9 Oct 2024 08:48:38 +0000 (10:48 +0200)]
Add support for ARM64 Amlogic based KVim and Odroid targets
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2ee38d42b4471fbe93c1b67732aa2d26abbb6f0b
Marek Szyprowski [Tue, 8 Oct 2024 10:54:00 +0000 (12:54 +0200)]
Enable building extcon-usb-fixed.ko module also for VisionFive2 board
This will replace Tizen specific hacks applied in the linux-starfive
kernel to Cadence USB3 driver.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I8fc764951b4f05a9d8852bcb72ad9d46c02faecc
Marek Szyprowski [Tue, 8 Oct 2024 10:33:43 +0000 (12:33 +0200)]
Enable building extcon-usb-fixed.ko module also for RPi4/RPi5 boards
This will replace Tizen specific hacks applied in the linux-rpi kernel.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ibe3460a634215562e364dd4b637eebb809f4f916
Marek Szyprowski [Tue, 8 Oct 2024 09:20:43 +0000 (11:20 +0200)]
Enable building extcon-usb-fixed.ko module for BananaPiF3 board
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I04e16ff52a13a35e507762397b651234e9ff65df
Marek Szyprowski [Fri, 6 Sep 2024 07:31:04 +0000 (09:31 +0200)]
Add building external dm-bow kernel module
Move device-mapper/dm-bow kernel module to linux-tizen-modules
repository instead of duplicating it in each board specific kernel
repository.
Enable it module for platforms that had it earlier compiled into the
kernel: rpi4 and vf2 as well as the new RISC-V based ones: lpi4a and
bpif3.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I49aa97953b1b5935ad48aa968972933d4c431303
Marek Szyprowski [Thu, 5 Sep 2024 13:37:34 +0000 (15:37 +0200)]
Add building inform-reboot Tizen specific module
Move Tizen specific inform-reboot module to linux-tizen-modules
repository instead of duplicating it in each board specific kernel
repository.
Enable inform-reboot module for the platforms that had it earlier
compiled into the kernel: rpi4 and vf2 as well as the new RISC-V
based ones: lpi4a and bpif3.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie46796b390ac554cc340e6ce4550d918833e374c
Marek Szyprowski [Wed, 4 Sep 2024 11:23:41 +0000 (13:23 +0200)]
Explicitly list all modules to build for each arch/platform
This simplifies configuration management and adding more modules.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I35ea263ce6c8b600b474414e450b3871ee8745f4
Marek Szyprowski [Wed, 11 Sep 2024 08:58:59 +0000 (10:58 +0200)]
Fix build warnings from depmod
Add a dependency to the standard kernel modules packages and copy
relevant files from them to make depmod not to complain about missing
files. This fixes the following build warnings:
[ 15s] depmod: WARNING: could not open modules.order at /home/abuild/rpmbuild/BUILD/linux-tizen-modules-9.0.0/kernel/..//lib/modules/6.6.17-arm-rpi4-v7l: No such file or directory
[ 15s] depmod: WARNING: could not open modules.builtin at /home/abuild/rpmbuild/BUILD/linux-tizen-modules-9.0.0/kernel/..//lib/modules/6.6.17-arm-rpi4-v7l: No such file or directory
[ 15s] depmod: WARNING: could not open modules.builtin.modinfo at /home/abuild/rpmbuild/BUILD/linux-tizen-modules-9.0.0/kernel/..//lib/modules/6.6.17-arm-rpi4-v7l: No such file or directory
[ 15s] make[1]: Leaving directory '/boot/kernel/devel/kernel-devel-arm-rpi4'
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I034cccda692481a3fbe6b20ec6e29f4def5ba281
Marek Szyprowski [Tue, 9 Apr 2024 13:00:23 +0000 (15:00 +0200)]
Add support for BananaPiF3 RISC-V platform
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2655c33f69b026a555e2916d9bb3c9e68ca752c1
Karol Lewandowski [Tue, 7 May 2024 15:35:04 +0000 (17:35 +0200)]
tizen: Use unique directory prefix for baselibs packages
Move all files provied by baselibs-converted pacakges to
unique directory to avoid conflicts with filesystem package
(when both packages are installed to platform image using mic).
Change-Id: I1eb73be9144209c8525877de8eeac72d84b076b9
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Mon, 11 Mar 2024 22:17:06 +0000 (23:17 +0100)]
packaging: Add baselibs.conf to provide aarch64 packages for rpi4 32-bit variant
This allows to create 64-bit modules package for mixed 64-bit kernel &
32-bit userspace variants.
Change-Id: I7797203e3f46a48a727525d2ae4bd3bf470a8aa0
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Marek Szyprowski [Tue, 9 Apr 2024 13:00:23 +0000 (15:00 +0200)]
Add support for LicheePi4A RISC-V platform
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ia5a66448126d5a2268a260ba16d7aa3b19159056
Jaehoon Chung [Mon, 19 Feb 2024 04:11:27 +0000 (13:11 +0900)]
packaging: Use INSTALL_MOD_DIR for specific path
Since v6.3, INSTALL_MOD_DIR is using from extra to updates by default.
To clarify extra directory, use INSTALL_MOD_DIR.
Change-Id: I0a7d73f9ffd4e43fa911e9e298e634e71bdce44b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 19 Jul 2023 03:23:52 +0000 (12:23 +0900)]
Add tizen-module-visionfive2.conf file for loading module
Add tizen-module-visionfive2.conf file for loading module at booting time.
Because there is no config file, it doesn't load anything now.
This patch is fixing its problem.
Change-Id: Iab9e2a7a7694eb87dd660d3e15bfb73f204a0d54
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 18 Jul 2023 00:20:47 +0000 (09:20 +0900)]
packaging: Remove kernel-devel-3.10-sc7730 from BuildRequires
Removing kernel-devel-3.10-sc7730 is missed from previous patch.
This patch is removing the kernel-devel-3.10-sc7730 from BuildRequires.
Change-Id: Iab99f667df2f058c99f7fad67d7a615cdb8b7d3e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 14 Jul 2023 05:57:50 +0000 (14:57 +0900)]
packaging: Remove deprecated packages about TM1/TW3
TM1 / TW3 doesn't support anymore since Tizen8.0.
So remove those packages from spec file.
Change-Id: I709ee51facff7417148d0b2f173b5926f4d7f01c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 14 Jul 2023 05:02:55 +0000 (14:02 +0900)]
packaging: Fix wrong package Summary
Fix wrong package Summary about rv64qemu and visionfive2.
Change-Id: Icd182e2d13224664ee56318e6ca05ed00885cd34
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Łukasz Stelmach [Tue, 23 May 2023 19:32:49 +0000 (21:32 +0200)]
Build for QEMU and VisionFive2 RISC-V platforms
Change-Id: I8b5f94f888e734ab6d1046a24696ac085c4b9fad
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Karol Lewandowski [Thu, 3 Nov 2022 10:50:57 +0000 (11:50 +0100)]
Drop rpi3 package
RPI3 support is dropped from Tizen 7.5.
Change-Id: I0400c8fb08b1e78a847ca35a2fea151432bc81bb
Karol Lewandowski [Mon, 19 Sep 2022 19:26:39 +0000 (21:26 +0200)]
Hotfix: fix zlogger.ko path
Change-Id: Ifc98701468caa0fba0fecd78d77cb4856e04c742
Karol Lewandowski [Mon, 19 Sep 2022 12:22:25 +0000 (14:22 +0200)]
Release 7.0.6
Change-Id: Ia56ec4156f13d3cc9cb762d220e781aafc20b75f
Karol Lewandowski [Mon, 19 Sep 2022 12:20:57 +0000 (14:20 +0200)]
Explicitly list shipped modules
Using wildcard in file list gives us no guarantee that modules did
build correctly. Switch to explicit file list to ensure that needed
modules are shipped.
Change-Id: I21ee18f803c9ec50c09941d08013b5abc5b72d4e
Karol Lewandowski [Mon, 19 Sep 2022 10:53:44 +0000 (12:53 +0200)]
Build zlogger but not load it by default
This partially reverts commit
333224dde4 ("Included zlogger module
based on Tizen TV one").
zlogger should be shipped but it must be explictly enabled to
be used on the system. If it's loaded and not used it will consume
32MB of system memory for no good reason.
Change-Id: If1670e54a6fff8a6af9e7e45b4fd7d4d2cf6698a
Karol Lewandowski [Tue, 6 Sep 2022 13:21:12 +0000 (15:21 +0200)]
Release 7.0.5
Change-Id: I9a098660caeb91f5082b8718324221c110ebd703
Arkadiusz Nowak [Tue, 21 Jun 2022 11:31:54 +0000 (13:31 +0200)]
Included zlogger module based on Tizen TV one
Change-Id: Id7652e314b42c1cc2078bae854b7b5e488c7eeea
Łukasz Stelmach [Tue, 15 Mar 2022 22:17:42 +0000 (23:17 +0100)]
spec: run depmod(8) after installing linux-tizen-modules-rpi4-rt
Change-Id: Ieb5ae3a4908ac629090a24414f00b603f237449e
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Fri, 4 Mar 2022 10:39:41 +0000 (11:39 +0100)]
spec: build modules for RPi4 RT kernel
Build Tizen modules for RaspberryPI 4 with RT kernel patch
Change-Id: Ifeb9231454f4bc3a427130ed3f0ae321e9f3f4f7
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Karol Lewandowski [Fri, 21 Jan 2022 14:44:14 +0000 (15:44 +0100)]
Release 7.0.4
Change-Id: If19c5359ca710396fa372f635b80cf8f9fe025ac
Łukasz Stelmach [Mon, 17 Jan 2022 22:59:37 +0000 (23:59 +0100)]
logger: configure larger logger buffers
Change-Id: I3ca2bc3a18cb7f8e67e4cb97ad4457847acd1288
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Karol Lewandowski [Thu, 13 Jan 2022 11:26:43 +0000 (12:26 +0100)]
Release 7.0.3
Change-Id: I425f05b5587f6c66259dc09d29b7124b8456aac6
Karol Lewandowski [Wed, 5 Jan 2022 16:33:20 +0000 (17:33 +0100)]
Add tm1 package with logger.ko
Change-Id: I3d2d79b57a1be9f1806981a7fd02c709e0955da4
Seung-Woo Kim [Thu, 9 Dec 2021 01:21:29 +0000 (10:21 +0900)]
packaging: Use %arm in ExclusiveArch instead of armv7l
Arch %arm can have armv7hl with hardfloat build, so instead of
fixed armv7l, %arm should be used. Fix it from ExclusiveArch.
Change-Id: Id4435ab9cd2a053bfec52c9d59cfbf56e213c258
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Mateusz Majewski [Tue, 30 Nov 2021 08:03:50 +0000 (09:03 +0100)]
Build and automatically load kdbus on rpi4
Change-Id: I5a27361dae22f8eac3885fcc19f3aef416bfb041
Co-authored-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Seung-Woo Kim [Fri, 3 Dec 2021 01:33:57 +0000 (10:33 +0900)]
packaging: Fix not to build with sanitizers
Add build explict flags to disable asan and ubsan sanitizers
because this is kernel module build tree.
Change-Id: I3adc3c08047313b1e8ce8bd4f15849817f45eb46
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Karol Lewandowski [Fri, 26 Nov 2021 13:24:56 +0000 (14:24 +0100)]
Build package using external linux-tizen-modules-source package
This package contains only public tizen configuration and deps.
Change-Id: Ib4de81e507cce2773589d8e25b3e120be5f57a48
Karol Lewandowski [Thu, 25 Nov 2021 11:35:51 +0000 (12:35 +0100)]
Add ability to not build all modules
This is going to be used by clients of -source package.
Change-Id: Ieb7be8aa0a169951356b554947a9ab978346346e
Karol Lewandowski [Wed, 24 Nov 2021 15:15:36 +0000 (16:15 +0100)]
Add separate spec to build source package
Change-Id: I1e7850b6b7d959f9b36a85fceca11d5f0825971f
Łukasz Stelmach [Fri, 10 Sep 2021 18:02:53 +0000 (20:02 +0200)]
logger: handle error values from filp_open()
filp_open() may return -errno, so check for that instead of checking
for NULL.
Change-Id: I5a694555bcd082506330e08f48ed4b7043c4e120
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Wed, 15 Sep 2021 12:54:18 +0000 (14:54 +0200)]
logger: flush data from stdio writers under mutex
Operations during flushing logs delivered via stdio need to be performed
with the mutex held.
Change-Id: I4655b0af75172f8f22b797c0caadd28cb4619cf0
Suggested-by: Mateusz Majewski <m.majewski2@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Mateusz Majewski [Tue, 13 Jul 2021 09:47:15 +0000 (11:47 +0200)]
logger: flush remaining data from stdio writers on file release
Unlike logs from regular writers, logs from stdio writers are not
contained in a single write_iter call: if the last character written in
the call is not a newline, some of the input remains in the buffer for
the next write_iter call. This means that some data might remain in the
buffer during release, and such data has to be flushed; otherwise, it
would be lost.
Change-Id: I13c9dc020967fe8ef3fbcd52d45f85b8725d3c2c
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Mateusz Majewski [Tue, 13 Jul 2021 09:47:04 +0000 (11:47 +0200)]
logger: handle '\0's correctly in stdout writers
This commit takes care of cases when input received from stdout writers
contains '\0' characters. They should be treated like newlines. We
achieve this by simply replacing them by '\n's while searching for the
last '\n' in the input.
Change-Id: I51c23457f96bd6f0465d60da06157316756cc951
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
INSUN PYO [Fri, 9 Jul 2021 03:24:14 +0000 (12:24 +0900)]
Separate configuration files for each target
Change-Id: Iaed004d48d4d0fad16d396ce95b26e37edb66ffb
Karol Lewandowski [Wed, 7 Jul 2021 11:20:25 +0000 (13:20 +0200)]
Merge branch 'stability-monitor-kmod-rpi3' into tizen
This commit integrates previously standalone stability-monitor-kmod-rpi3
into this repository.
Source commit
901f4d0ec2 ("Support Linux kernel v5.10") has been downloaded by:
git fetch ssh://klewandowski@review.tizen.org:29418/platform/core/system/stability-monitor-kmod-rpi3 refs/changes/90/253890/1 && git checkout FETCH_HEAD
Change-Id: I3ee19411f8c2af86776e9796491857ff88e3baed
INSUN PYO [Fri, 25 Jun 2021 04:38:56 +0000 (13:38 +0900)]
logger: enable logger module
Change-Id: If186dc62a39a360b42b99cea0f8e4c29940c71db
INSUN PYO [Thu, 24 Jun 2021 06:47:47 +0000 (15:47 +0900)]
packaging: fix not to set kernel symbol dependency automatically
Kernel image rpm does not have kerenl symbol provides, so kernel
symbol automatically checked dependency from kernel module breaks
install dependency. Fix not to run automatical dependency check.
Change-Id: If5a6de3c97205e011dcd91d3358563e3e261560d
INSUN PYO [Fri, 18 Jun 2021 06:49:20 +0000 (15:49 +0900)]
Apply depmod postscript
To use modprobe, module name is requires on /lib/modules/version/modules.dep.
Change-Id: I4ac1e90424f2707675f9fce37544c193de6afaf4
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 23 Jun 2021 01:15:47 +0000 (10:15 +0900)]
Resolve conflict with /lib/modules when using baselibs
In tw3 images, kernel is based on 64bit while platform is on 32bit.
Thanks to baselibs, aarch64 rpms containing tw3 kernel modules can be repackaged to arm rpms.
$ rpm -ql linux-tizen-modules-tw3-aarch64-6.5.0-0.armv7l.rpm
/lib/modules
/lib/modules/4.9.59
/lib/modules/4.9.59/extra
/lib/modules/4.9.59/extra/logger.ko
Unfortunately, however, /lib/modules, which is implicitly packaged,
is conflict with filesystem package.
INFO: Next install: filesystem
WARNING: file /lib/modules conflicts between attempted installs of
linux-tizen-modules-tw3-aarch64-6.5.0-1.1.armv7l and filesystem-3.1-3.3.armv7l
ERROR: Could not run transaction.
This patch avoids generating /lib/modules in the linux-tizen-modules-tw3-aarch64.armv7l.rpm
Change-Id: I8be870f9999e1e2f626c99bae7bced3ac623d44d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
INSUN PYO [Thu, 17 Jun 2021 08:47:21 +0000 (17:47 +0900)]
logger: exclude /lib/module directory from tw3 baselib
The baselibs adds paths recursively.
(ie. for /a/b/c, and cofiguration +/a/b/c, the baselibs will add /a, /a/b and then /a/b/c)
So, temporarily remove /lib/module until a solution is found.
=== original rpm ======================================================
linux-tizen-modules-tw3-6.5.0-0.aarch64.rpm
- /lib/modules/4.9.59/extra
- /lib/modules/4.9.59/extra/logger.ko
- /usr/share/licenses/linux-tizen-modules-tw3
- /usr/share/licenses/linux-tizen-modules-tw3/COPYING
=== baselib rpm ======================================================
linux-tizen-modules-tw3-aarch64-6.5.0-0.armv7l.rpm
- /lib/modules
- /lib/modules/4.9.59
- /lib/modules/4.9.59/extra
- /lib/modules/4.9.59/extra/logger.ko
- /usr/share/licenses
- /usr/share/licenses/linux-tizen-modules-tw3
Change-Id: I6ee6076f2b4247f335c2ca54639b6bf27907a3c1
Karol Lewandowski [Thu, 22 Apr 2021 13:58:39 +0000 (15:58 +0200)]
packaging: Support logger driver for rpi3, rpi4 and tw3 kernels
Change-Id: I41eba922c16b34efe04e7d15896e7fe9ad6012ca
Karol Lewandowski [Thu, 22 Apr 2021 13:51:37 +0000 (15:51 +0200)]
Merge branch 'logger-linux-rpi3' into tizen
This imports logger driver along with history. It's been obtained from:
ssh://review.tizen.org:29418/platform/kernel/linux-rpi3
Change-Id: If7ffcb064bd6c8279a0cceb285f1db372aa22907
Łukasz Stelmach [Wed, 14 Apr 2021 15:50:51 +0000 (17:50 +0200)]
logger: introduce struct logger_set_tag
Introduce dedicated structure for LOGGER_SET_TAG ioctl,
instead of packing and unpacking arguments by hand.
Change-Id: Ic3399ab37f55ba2b8a9a976f8c9495fc487fe7f3
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Łukasz Stelmach [Fri, 19 Mar 2021 14:20:06 +0000 (15:20 +0100)]
logger: move logger.h to uapi
Move logger.h to uapi so it can be exported for userland
software to use.
Change-Id: I64dca69f3442edc246562485b0b29b43615ae881
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Łukasz Stelmach [Tue, 13 Apr 2021 10:24:38 +0000 (12:24 +0200)]
logger: return amount of data written to stdio
Return amount of data written by a process to a logger via STDIO
interface.
Change-Id: I9c77a312d09f3d796a7ec64d5909af193bcc8bc2
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Fri, 9 Apr 2021 15:20:07 +0000 (17:20 +0200)]
logger: fix temporary buffer handling
Prevent writing beyond temporary buffer and improve accumulation of data
before receiving a newline character or filling the buffer.
Change-Id: I8e0591c90914dbd4c2addde4247157831fa4843a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Fri, 9 Apr 2021 14:59:56 +0000 (16:59 +0200)]
logger: adapt access mode checks
Allow setting the tag and the priority only for files opened O_WRONLY.
Change-Id: Icc9d7a8eb96f8f1b1aa00717aae1f32f7a2e52e4
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Thu, 8 Apr 2021 12:09:24 +0000 (14:09 +0200)]
logger: Fix incorrect buffer access when writing data
Fix crash caused by accessing memory beyond log->buffer
Change-Id: I528b62e34e9fb5f92f62f6b218718e15cd5f7d31
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Fri, 12 Feb 2021 17:41:09 +0000 (18:41 +0100)]
logger: accept untagged log entries
Add support for writing untagged log messages to /dev/log_* nodes. The
logger shall accept untagget messages after setting the tag and
the priority with appropriate ioctl() commands for particular file
descriptors.
Change-Id: I02bd7bfd843eaf316692413a48747009c42756f6
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Inki Dae [Mon, 4 Jul 2016 08:28:46 +0000 (17:28 +0900)]
staging: logger: fix build error due to removed ki_nbytes
This patch fixes build error. Logger driver was removed
from mainline kernel and after that there was some changes and
one of them is that ki_nbytes member was removed from kiocb structure.
66ee59a fs: remove ki_nbytes
This patch makes count member of iov_iter structure to be used instead.
Change-Id: I11e9ebdac7dd86c02fd692a67562a23e5c685f69
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Jaehoon Chung [Fri, 5 Jan 2018 00:40:02 +0000 (09:40 +0900)]
staging: android: logger: fix the compiler error
Moved signal wakeup & sigpending methods from <linux/sched.h> into
<linux/sched/signal.h>.
Refer to commit
174cd4b1e5fb (sched/headers: Prepare to move signal
wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h>
Fix the compiler error about android logger.
Change-Id: Iab1583fe54fef1c76a34673d1d718f73930baa11
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Guillaume Vercoutere [Mon, 5 Jan 2015 14:24:06 +0000 (15:24 +0100)]
staging: android: Correct coding style in logger.c
Correct intent and missing space
Signed-off-by: Guillaume Vercoutere <gvercoutere@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Daniel Thompson [Mon, 27 Oct 2014 18:51:43 +0000 (18:51 +0000)]
staging: android: logger: Fix log corruption regression
Since commit
cd678fce4280 ("switch logger to ->write_iter()"), any
attempt to write to the log results in the log data being written over
its own metadata, thus rendering the log unreadable.
The problem was first detected when I ran an Android userspace on the
v3.18-rc1 kernel. However the issue can also be observed with a
non-Android userspace by using echo/cat to write to/from /dev/log_main .
This patch resolves the problem by using a temporary to track the status
of not-yet-committed writes to the log buffer.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro [Sat, 23 Aug 2014 16:20:37 +0000 (12:20 -0400)]
switch logger to ->write_iter()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Seunghun Lee [Wed, 13 Aug 2014 17:02:48 +0000 (02:02 +0900)]
staging: android: fix a possible memory leak
Memory allocated by kstrdup should be freed.
CC: Brian Swetland <swetland@google.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Seunghun Lee <waydi1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jerry Stralko [Tue, 1 Jul 2014 11:13:18 +0000 (07:13 -0400)]
staging: android: logger: fixed checkpatch.pl warnings.
Signed-off-by: Jerry Stralko <gerb.stralko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Seunghun Lee [Wed, 30 Apr 2014 16:30:23 +0000 (01:30 +0900)]
staging: android: fix missing a blank line after declarations
This patch fixes "Missing a blank line after declarations" warnings.
Change-Id: I67708f8839f3a6d7ab26782ab2f0e4574325ff65
Signed-off-by: Seunghun Lee <waydi1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Kent Overstreet [Thu, 9 May 2013 22:03:42 +0000 (15:03 -0700)]
aio: Kill aio_rw_vect_retry()
This code doesn't serve any purpose anymore, since the aio retry
infrastructure has been removed.
This change should be safe because aio_read/write are also used for
synchronous IO, and called from do_sync_read()/do_sync_write() - and
there's no looping done in the sync case (the read and write syscalls).
Change-Id: I29e2981ea74ef69bb7803fb138d8a5f7e58eeb7b
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Cc: Zach Brown <zab@redhat.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Asai Thambi S P <asamymuthupa@micron.com>
Cc: Selvan Mani <smani@micron.com>
Cc: Sam Bradshaw <sbradshaw@micron.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Karlis Ogsts [Mon, 22 Jul 2013 20:51:42 +0000 (13:51 -0700)]
staging: android: logger: Correct write offset reset on error
In the situation that a writer fails to copy data from userspace it will reset
the write offset to the value it had before it went to sleep. This discarding
any messages written while aquiring the mutex.
Therefore the reset offset needs to be retrieved after acquiring the mutex.
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Al Viro [Sun, 16 Jun 2013 13:25:12 +0000 (17:25 +0400)]
more open-coded file_inode() calls
Change-Id: I7dd013afbccd5fd3ec2328829bb1cdbf634d84cf
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Xiong Zhou [Wed, 8 May 2013 10:52:48 +0000 (18:52 +0800)]
staging: android: logger: use kuid_t instead of uid_t
Use kuid_t instead of uid_t, to pass the UIDGID_STRICT_TYPE_CHECKS.
Signed-off-by: Xiong Zhou <jencce.kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Kent Overstreet [Tue, 7 May 2013 23:19:08 +0000 (16:19 -0700)]
aio: don't include aio.h in sched.h
Faster kernel compiles by way of fewer unnecessary includes.
[akpm@linux-foundation.org: fix fallout]
[akpm@linux-foundation.org: fix build]
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Cc: Zach Brown <zab@redhat.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Asai Thambi S P <asamymuthupa@micron.com>
Cc: Selvan Mani <smani@micron.com>
Cc: Sam Bradshaw <sbradshaw@micron.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Reviewed-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: Ifc9abc94955466ddd797c107fc05116d50bd72d2
Charndeep Grewal [Wed, 27 Feb 2013 06:07:38 +0000 (22:07 -0800)]
staging: android: logger: enforce GID and CAP check on log flush
Restrict log flushing to those in the logs group, or
anyone with CAP_SYSLOG.
Cc: Android Kernel Team <kernel-team@android.com>
Cc: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Signed-off-by: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Nick Kralevich [Wed, 27 Feb 2013 06:07:37 +0000 (22:07 -0800)]
staging: android: logger: Allow a UID to read it's own log entries
Modify the kernel logger to record the UID associated with
the log entries. Always allow the same UID which generated a
log message to read the log message.
Allow anyone in the logs group, or anyone with CAP_SYSLOG, to
read all log entries.
In addition, allow the client to upgrade log formats, so they
can get additional information from the kernel.
Cc: Android Kernel Team <kernel-team@android.com>
Cc: Nick Kralevich <nnk@google.com>
Signed-off-by: Nick Kralevich <nnk@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cruz Julian Bishop [Wed, 1 Aug 2012 04:54:17 +0000 (14:54 +1000)]
staging: android: logger.h: Complete documentation of logger_entry
Previously, there were simply comments after each part - Now, it is
completed properly according to "Kernel doc" Sorry in advance if I made
any mistakes.
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Luca Clementi [Thu, 22 Nov 2012 03:43:17 +0000 (19:43 -0800)]
Staging: Android: logger: module_exit implementation
This patch creates the module_exit for the android logger
so that it can be loaded and unloaded as a module.
The android logger is already declared as a tristate in the
Kconfig but the module_exit function was missing.
device_initcall works also with modprobe since include/linux/init.h:
#define module_init(x) __initcall(x);
...
#define __initcall(fn) device_initcall(fn)
Tested against
f4a75d2eb7b1e2206094b901be09adb31ba63681 Linux 3.7-rc6
Signed-off-by: Luca Clementi <luca.clementi@gmail.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Robert Love <rlove@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cruz Julian Bishop [Wed, 1 Aug 2012 04:54:18 +0000 (14:54 +1000)]
staging: android: logger: Finish documentation of two structs
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Sachin Kamat [Tue, 5 Jun 2012 11:10:10 +0000 (16:40 +0530)]
staging: Android: Fix some checkpatch warnings
Warnings reported by checkpatch.pl have been fixed.
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I5e611019438fe798ff1eef2bd25412dc4a764124
Tim Bird [Thu, 10 May 2012 21:22:59 +0000 (14:22 -0700)]
staging: android: logger: Fix some sparse and whitespace issues
Fix a few sparse warnings, and improve whitespace.
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Thu, 10 May 2012 22:11:36 +0000 (15:11 -0700)]
staging: android: logger: Allocate logs dynamically at boot (v3)
This changes the log initialization to be dynamic, but still
at boot time. These changes are a predecessor to implementing
runtime allocation and freeing of logs, to make the Android logger
less hard-coded.
Change from a fixed set of static log structures, to allocation
at init time into a list. Return proper error numbers on log
allocation failure.
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Rabin Vincent [Wed, 22 Feb 2012 10:28:00 +0000 (15:58 +0530)]
staging: logger: hold mutex while removing reader
The readers list is traversed under the log->mutex lock
(for example from fix_up_readers()), but the deletion of
elements from this list is not being done under this lock.
Cc: Brian Swetland <swetland@google.com>
Cc: Dima Zavin <dima@android.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:34:28 +0000 (18:34 -0800)]
staging: android: logger: clarify non-update of w_off in do_write_log_from_user
Add comment to explain when w_off is not updated in case of failed second
fragment copy to buffer.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:32:02 +0000 (18:32 -0800)]
staging: android: logger: clarify code in clock_interval
Add commentary, rename the function and make the code easier to read.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:30:09 +0000 (18:30 -0800)]
staging: android: logger: reorder prepare_to_wait and mutex_lock
If mutex_lock waits, it will return in state TASK_RUNNING,
rubbing out the effect of prepare_to_wait().
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 18:37:57 +0000 (10:37 -0800)]
staging: android: logger: simplify and optimize get_entry_len
Make this code slightly easier to read, and eliminate calls
to sub-routines. Some of these were previously optimized away
by the compiler, but one memcpy was not.
In my testing, this makes the code about 20% smaller, and
has no sub-routine calls and no branches (on ARM).
v2 of this patch is, IMHO, easier to read than v1. Compared to
that patch it uses __u8 instead of unsigned char, for
consistency with the __u16 val data type, simplifies the
conditional expression, adds a another comment, and
moves a common statement out of the if.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:26:38 +0000 (18:26 -0800)]
staging: android: logger: Change logger_offset() from macro to function
Convert to function and add log as a parameter, rather than relying
on log in the context of the macro.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Marco Navarra [Thu, 15 Dec 2011 16:57:48 +0000 (17:57 +0100)]
Staging: android: fixed white spaces coding style issue in logger.c
This patch fixes some space-before-tabs warnings found by checkpatch tool on the staging android driver file logger.c
Signed-off-by: Marco Navarra <fromenglish@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
JP Abgrall [Fri, 12 Aug 2011 04:33:35 +0000 (21:33 -0700)]
android: logger: bump up the logger buffer sizes
(port from common android-2.6.39
commit:
11430f16545205c614dd5bd58e4a7ee630fc0f9f)
events: (no change, 256)
main: 64 -> 256
radio: 64 -> 256
system: 64 -> 256
Signed-off-by: JP Abgrall <jpa@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
San Mehat [Wed, 24 Feb 2010 00:09:47 +0000 (16:09 -0800)]
android: logger: Add new system log for framework/system log messages
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Colin Cross [Thu, 15 Apr 2010 22:21:51 +0000 (15:21 -0700)]
android-common: Fix slab.h includes for 2.6.34-rc4
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I70de900e1619bacf3b30786969c7b5b124ed8b2d
Corentin Chary [Sat, 28 Nov 2009 08:45:14 +0000 (09:45 +0100)]
staging/android: fix build issues
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I3ed871c7853a409bd40d16ba6ba7a33283e6c2be
Greg Kroah-Hartman [Tue, 12 May 2009 00:00:41 +0000 (17:00 -0700)]
Staging: android: logger: fix up remaining checkpatch warnings
This cleans up the last of the checkpatch warnings in the android logger
driver.
Cc: San Mehat <san@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Robert Love [Sat, 20 Dec 2008 02:02:58 +0000 (18:02 -0800)]
Staging: android: add logging driver
Signed-off-by: Robert Love <rlove@google.com>
Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I8faa961fe84d9a88bade728746a0e396f13037a7
Tizen Infrastructure [Mon, 12 Apr 2021 02:24:46 +0000 (02:24 +0000)]
Initial empty repository
Seung-Woo Kim [Fri, 19 Feb 2021 05:43:43 +0000 (14:43 +0900)]
Support Linux kernel v5.10
To support LTS Kernel version v5.10, fix parameter for
proc_create().
Change-Id: Ie6c94fdc31000455aae5d7648f7a393cb791e89b
Ref: v5.6 commit
d56c0d45f0e2 ("proc: decouple proc from VFS with "struct proc_ops"")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 15 Jan 2021 03:05:07 +0000 (12:05 +0900)]
Makefile: support cross compile
For local build, support cross compile.
Change-Id: I04c850e246e12b6816da25743ac2e2274adbe1af
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Konrad Kuchciak [Fri, 18 Dec 2020 09:28:57 +0000 (10:28 +0100)]
Release 6.4.0
Change-Id: I61a1b7b4f93d656ad209da4aff31d6d7f32fe85e
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
Seung-Woo Kim [Tue, 15 Dec 2020 10:43:51 +0000 (19:43 +0900)]
Support Linux kernel earilier version than v4.9
From Linux kernel v4.9, seq_put_decimal_ll() changes its delimiter
argument to const char * instead of char. Support older version.
Change-Id: I1e6b74aad5b536cd6aade0b8f1b74613e20309b8
Ref: v4.9 commit
75ba1d07fd6a ("seq/proc: modify seq_put_decimal_[u]ll to take a const char *, not char")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 11 Dec 2020 04:21:38 +0000 (13:21 +0900)]
Support Linux kernel earilier version than v4.11
From Linux kernel 4.11, sched header is splited and cputime_t is
fixed as u64. Before the kernel version, do not use splitter
headers and use cputime_t for task_cputime_adjusted().
Change-Id: Iac5d4e1d89366c54a59cc3092afd56f2df01918b
Ref: v4.11 commit
1050b27c52f6 ("sched/headers: Move cputime functionality from <linux/sched.h> and <linux/cputime.h> into <linux/sched/cputime.h>")
Ref: v4.11 commit
c3edc4010e9d ("sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>")
Ref: v4.11 commit
5613fda9a503 ("sched/cputime: Convert task/group cputime to nsecs")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>