From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757380AbdJMI5Y (ORCPT ); Fri, 13 Oct 2017 04:57:24 -0400 Received: from outboundhk.mxmail.xiaomi.com ([207.226.244.124]:53342 "EHLO xiaomi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756156AbdJMI5W (ORCPT ); Fri, 13 Oct 2017 04:57:22 -0400 From: Hui Zhu To: CC: , Hui Zhu Subject: [RFC 0/4] BloodTest: kernel status Date: Fri, 13 Oct 2017 16:56:01 +0800 Message-ID: <1507884965-31476-1-git-send-email-zhuhui@xiaomi.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.235.171.212] X-ClientProxiedBy: CNCAS3.mioffice.cn (10.237.8.133) To cnbox6.mioffice.cn (10.237.8.146) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org BloodTest: an interface to call other analysing tools Linux kernel has a lot of analysing tools, perf, ftrace, systemtap, KGTP and so on. And kernel also supplies a lot of internal value from procfs and sysfs to analyse the performance. Sometime, user need get performance infomation quickly, low overhead and full coverage. BloodTest is for it. It is a interface can acess function of other analysing tools and records to internal buffer that user or application can access very quickly (mmap). Now, BloodTest just support record cpu, perf and task infomation in one seconds. Hui Zhu (2): BloodTest: kernel status BloodTest: perf Module: add /proc/modules_update_version BloodTest: task fs/proc/stat.c | 8 include/linux/bloodtest.h | 10 include/linux/kernel_stat.h | 3 init/Kconfig | 3 kernel/Makefile | 2 kernel/bloodtest/Makefile | 3 kernel/bloodtest/core.c | 132 +++++++++ kernel/bloodtest/internal.h | 61 ++++ kernel/bloodtest/kernel_stat.c | 62 ++++ kernel/bloodtest/pages.c | 266 ++++++++++++++++++ kernel/bloodtest/perf.c | 576 +++++++++++++++++++++++++++++++++++++++++ kernel/bloodtest/task.c | 447 +++++++++++++++++++++++++++++++ kernel/exit.c | 4 kernel/module.c | 19 + 14 files changed, 1592 insertions(+), 4 deletions(-)