[PATCH v6 5/8] kmsg: add function for adding and deleting additional buffers

2016-02-24 Thread Kazimierz Krosman
-by: Paul Osmialowski [Rebased kmsg patch v5 on Linux 4.5-rc5] Signed-off-by: Kazimierz Krosman --- include/linux/printk.h | 9 + kernel/printk/kmsg.c | 107 +++-- kernel/printk/printk.c | 12 ++ kernel/printk/printk.h | 4 ++ 4 files

[PATCH v6 2/8] printk: add one function for storing log in proper format

2016-02-24 Thread Kazimierz Krosman
v5 on Linux 4.5-rc5] Signed-off-by: Kazimierz Krosman --- kernel/printk/printk.c | 222 ++--- 1 file changed, 119 insertions(+), 103 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 2787bc7..3653a8e 100644 --- a/kernel

[PATCH v6 7/8] kmsg: add ioctl for kmsg* devices operating on buffers

2016-02-24 Thread Kazimierz Krosman
* KMSG_CMD_GET_READ_SIZE_MAX * KMSG_CMD_CLEAR Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski [Rebased kmsg patch v5 on Linux 4.5-rc5] Signed-off-by: Kazimierz Krosman --- Documentation/ioctl/ioctl-number.txt | 2 +- include/uapi/linux/kmsg_ioctl.h | 15 ++ kernel/printk/kmsg.c

[PATCH v6 4/8] kmsg: add additional buffers support to memory class

2016-02-24 Thread Kazimierz Krosman
owski [Rebased kmsg patch v5 on Linux 4.5-rc5] Signed-off-by: Kazimierz Krosman --- drivers/char/mem.c | 27 --- include/linux/printk.h | 32 kernel/printk/kmsg.c | 42 ++ kernel/printk/printk.c |

[PATCH v6 3/8] kmsg: introduce additional kmsg devices support

2016-02-24 Thread Kazimierz Krosman
-off-by: Paul Osmialowski [Rebased kmsg patch v5 on Linux 4.5-rc5] Signed-off-by: Kazimierz Krosman --- fs/proc/kmsg.c | 4 +- kernel/printk/kmsg.c | 301 -- kernel/printk/printk.c | 317

[PATCH v6 8/8] kmsg: selftests

2016-02-24 Thread Kazimierz Krosman
From: Paul Osmialowski This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski [Fixed multithreaded test bug: buffer size > LOG_LINE_MAX] Signed-off-by: Kazimi

[PATCH v6 6/8] kmsg: add ioctl for adding and deleting kmsg* devices

2016-02-24 Thread Kazimierz Krosman
[Fixed bug that allow adding more buffers than available minors] Signed-off-by: Kazimierz Krosman --- Documentation/ioctl/ioctl-number.txt | 1 + drivers/char/mem.c | 2 +- include/linux/printk.h | 7 ++ include/uapi/linux/Kbuild| 1 + include

[PATCH v6 1/8] printk: extract kmsg-related routines from printk.c to kmsg.c

2016-02-24 Thread Kazimierz Krosman
. Signed-off-by: Paul Osmialowski [Rebased kmsg patch v5 on Linux 4.5-rc5] Signed-off-by: Kazimierz Krosman --- kernel/printk/Makefile | 1 + kernel/printk/kmsg.c | 575 ++ kernel/printk/printk.c | 743 + kernel

[PATCH v6 0/8] Additional kmsg devices

2016-02-24 Thread Kazimierz Krosman
ble to create buffers as long as minor is below 256 and there is a free memory (ioctl fail if kmalloc fail). It means that it is possible to allocate whole kernel memory for kmsg devices. Best regards, Kazimierz Krosman Marcin Niesluchowski (6): printk: add one function for storing lo

Re: [PATCH v6 0/8] Additional kmsg devices

2016-02-26 Thread Kazimierz Krosman
tects against socket buffers overflow and messages drop. It is one of advantages of this solution: no maintenance. Could you explain in more detail what did you mean by IPC problems? Thanks. -- Kazimierz Krosman Samsung R&D Institute Poland Samsung Electronics k.kros...@samsung.com