Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754841AbbGCKxf (ORCPT ); Fri, 3 Jul 2015 06:53:35 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:65390 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754845AbbGCKuQ (ORCPT ); Fri, 3 Jul 2015 06:50:16 -0400 X-AuditID: cbfec7f5-f794b6d000001495-21-559668e5424e From: Marcin Niesluchowski To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Cc: Jonathan Corbet , Greg Kroah-Hartman , Petr Mladek , Tejun Heo , Kay Sievers , Andrew Morton , Joe Perches , Karol Lewandowski , Bartlomiej Zolnierkiewicz , Marcin Niesluchowski Subject: [RFC 0/8] Additional kmsg devices Date: Fri, 03 Jul 2015 12:49:47 +0200 Message-id: <1435920595-30879-1-git-send-email-m.niesluchow@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsVy+t/xK7pPM6aFGkztkbKYs34Nm8XGGetZ LZ4caGe0aF68ns1i9v3HLBaNn+YyW9xa9ZzdYvP3DjaLhW1LWCwu75rDZnHo7A8Wi4X/NzNZ /Fp+lNGB12PTqk42jxMzfrN47J+7ht1jcd9kVo8vq64xe/RtWcXocWbBEXaPz5vkPD6u9wzg jOKySUnNySxLLdK3S+DKOLBtBWvBIb6KB4tXszQwrubuYuTkkBAwkfi9ZjEjhC0mceHeerYu Ri4OIYGljBJHb21mBUkICTQzSZzoyQWx2QRMJdqW7WEHsUUEIiQWXmxiAWlgFpjGLHG2eS8z SEJYQEti4aSXbCA2i4CqRMOCTUCDODh4BTwkZvyVh1gmJ3Hy2GTWCYzcCxgZVjGKppYmFxQn peca6RUn5haX5qXrJefnbmKEhOHXHYxLj1kdYhTgYFTi4b1wemqoEGtiWXFl7iFGCQ5mJRHe 58HTQoV4UxIrq1KL8uOLSnNSiw8xSnOwKInzztz1PkRIID2xJDU7NbUgtQgmy8TBKdXAeDOY UdTt4+m4naJeuv5G19f07rdg6thgUNlyl9um5TRD/iNPz9yVU73zIltbWz/m1dudKdj54ad8 tb3oHb5KtsZ1v99OnlSxWqFV/Zyy8dQ4/SnsxvoPZ1rXNe3k4la0ror2YDx1arux0N/DXL22 svppzLfuB1eI7049V1Ci9Evh5GO7/6VKLMUZiYZazEXFiQBUl3QKPwIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2060 Lines: 48 Dear All, This series of patches extends kmsg interface with ability to dynamicaly create (and destroy) kmsg-like devices which can be used by user space for logging. Logging to kernel has number of benefits, including but not limited to - always available, requiring no userspace, automatically rotating and low overhead. User-space logging to kernel cyclic buffers was already successfully used in android logger concept but it had certain flaws that this commits try to address: * drops hardcoded number of devices and static paths in favor for dynamic configuration by ioctl interface in userspace * extends existing driver instead of creating completely new one Those patches apply on branch 'master', (commit 9bdc771f2c29a11920f477fba05a58e23ee42554): git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Marcin Niesluchowski (8): printk: move code regarding log message storing format printk: add one function for storing log in proper format kmsg: introduce additional kmsg devices support kmsg: add function for adding and deleting additional buffers kmsg: device support in mem class kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict kmsg: add ioctl for adding and deleting kmsg* devices kmsg: add ioctl for kmsg* devices operating on buffers Documentation/ioctl/ioctl-number.txt | 1 + drivers/char/mem.c | 154 +++- fs/proc/kmsg.c | 4 +- include/linux/printk.h | 6 + include/uapi/linux/Kbuild | 1 + include/uapi/linux/kmsg_ioctl.h | 45 ++ kernel/printk/printk.c | 1361 ++++++++++++++++++++++------------ 7 files changed, 1087 insertions(+), 485 deletions(-) create mode 100644 include/uapi/linux/kmsg_ioctl.h -- Best Regards, Marcin Niesluchowski -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/