Message ID | cover.1666776642.git.bristot@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp186171wru; Wed, 26 Oct 2022 03:52:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64MtONdNcf88bvBQwWhmsQFruqpvFgKe7nAFVjtWgmDNHpEt5Ta54QAdSfVVI3Pm5c0Eq9 X-Received: by 2002:a17:90b:3a86:b0:20d:616f:4bb6 with SMTP id om6-20020a17090b3a8600b0020d616f4bb6mr3617862pjb.238.1666781546022; Wed, 26 Oct 2022 03:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666781546; cv=none; d=google.com; s=arc-20160816; b=asANe14OkIBDPI2tRbG3nhjFcx9+v0bYs8tf7DiQ/o8hfmSmwtAros/wvG80NbiK0S i5n3eoOPsGqTOkQnVuxDBW9ICaZkrGmMalyUs8F5sizdOWOVWj6vNTW23UNYkt3exMkq c8Ux1zgqJudRm6UDenydxFBqEfASddpBLeoqaMyUzFDIynDfG3sxes0HzV9a9MwhEdlZ PNdRuzxBhnf/NgfDk+U2nhrLtkuSm/ZspJCbDY+/8R0wIY7Lu4Oj28QKNGNInPltaZDq jZ9foNuCvUkJlAtY/t5ihTLXyIvyh4rr7qAuMpnvUwCN448isSxqjphItssF6UgEoOoA UIew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=X1hQE2pod++Y/x6AhZxy7xATQ8A/3gRidJGHYaDUEJ4=; b=eeSfK0CwNbwcVr4EMIiUGE0tP+MZZFs//bbxManh4+UAu3B1S0Fd6mLS7IzA9aljIz sxgXDEbb1nsOnduMbnypo9pR4R+50qW0+AYFkED0yP+Jcj3mlyqiv67/YeZNbHdsobcf qHDDCeAN3TuEyyLadHKuHAioI79tyLd1GviSAMyYa7r+ODxW7//m6+ZGT6XWB4yvHkBF O+NBFf+dvGkcvJ+kI8CS3CMrWtpqj4KxBf8ugmwNxn+q2jSlsZe1XphW+wGXim8Qnz/p fimtQi8qj/Nq0mFV4ztDltIoTtn9PvXVbVLDhtpR9FP+muds7s60dUSl/AKBGNZKPZHn gAdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFq7Oc1S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn18-20020a17090af09200b001fad0e954cesi1941299pjb.32.2022.10.26.03.52.12; Wed, 26 Oct 2022 03:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFq7Oc1S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233127AbiJZKpB (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Wed, 26 Oct 2022 06:45:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233439AbiJZKo6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Oct 2022 06:44:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525424AD71; Wed, 26 Oct 2022 03:44:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C340DB82189; Wed, 26 Oct 2022 10:44:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F7E2C433C1; Wed, 26 Oct 2022 10:44:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666781093; bh=U82//oUDhaVje5b0sUsZV8SSFolQg4Jy8YYSsA3q5Ew=; h=From:To:Cc:Subject:Date:From; b=uFq7Oc1SDyKqkgr6vxDa6I06tknv7JNntEqWuqHzhBEJlNkgPf0B9CDnhjJOmcVN5 6+3WI2CAym9pFj+teebjNYIDcmHTw4LtaxcHh0f+wXI3++Wmt4IKWpBjOhqKqxORlN 7b1RvOB0qWQhFnGXyq3Al/vM9r8BK/eJi483T178M9y0WVzoCGB8b49b9cLMzrQyAy 3h6wSd9cv1BxhSaChn7HHVKE4yBYBDEuML4KEHdEFheT+i2KhrwNBFQx28ukOp3g3+ 8xZZuN6Afa7rCar+SthYyGxv3mFB26F9Q/tw4zHODc9hBEQ8gMIGbwq6yOdYxTiOVB Oa2xf1IR9XYVQ== From: Daniel Bristot de Oliveira <bristot@kernel.org> To: Steven Rostedt <rostedt@goodmis.org>, linux-trace-devel@vger.kernel.org Cc: Daniel Bristot de Oliveira <bristot@kernel.org>, Jonathan Corbet <corbet@lwn.net>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] verification/rv: Add rv tool Date: Wed, 26 Oct 2022 12:44:38 +0200 Message-Id: <cover.1666776642.git.bristot@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747747126466791297?= X-GMAIL-MSGID: =?utf-8?q?1747747126466791297?= |
Series |
verification/rv: Add rv tool
|
|
Message
Daniel Bristot de Oliveira
Oct. 26, 2022, 10:44 a.m. UTC
This is the (user-space) runtime verification tool named rv. This tool aims to be the interface for in-kernel rv monitors, as well as the home for user-space controlled monitors. The tool receives a command as the first argument, the current commands are: list - list all available monitors mon - run a given monitor Each monitor is an independent piece of software inside the tool and can have their own arguments. Daniel Bristot de Oliveira (3): rv: Add rv tool tools/rv: Add in-kernel monitor interface Documentation/rv: Add verification/rv man pages Documentation/tools/index.rst | 1 + Documentation/tools/rv/Makefile | 52 ++ Documentation/tools/rv/common_appendix.rst | 13 + Documentation/tools/rv/common_ikm.rst | 21 + Documentation/tools/rv/index.rst | 24 + Documentation/tools/rv/rv-list.rst | 39 ++ Documentation/tools/rv/rv-mon-wip.rst | 40 ++ Documentation/tools/rv/rv-mon-wwnr.rst | 39 ++ Documentation/tools/rv/rv-mon.rst | 51 ++ Documentation/tools/rv/rv.rst | 57 ++ tools/verification/rv/Makefile | 141 +++++ tools/verification/rv/README.txt | 38 ++ tools/verification/rv/include/in_kernel.h | 3 + tools/verification/rv/include/rv.h | 12 + tools/verification/rv/include/trace.h | 16 + tools/verification/rv/include/utils.h | 8 + tools/verification/rv/src/in_kernel.c | 698 +++++++++++++++++++++ tools/verification/rv/src/rv.c | 177 ++++++ tools/verification/rv/src/trace.c | 128 ++++ tools/verification/rv/src/utils.c | 46 ++ 20 files changed, 1604 insertions(+) create mode 100644 Documentation/tools/rv/Makefile create mode 100644 Documentation/tools/rv/common_appendix.rst create mode 100644 Documentation/tools/rv/common_ikm.rst create mode 100644 Documentation/tools/rv/index.rst create mode 100644 Documentation/tools/rv/rv-list.rst create mode 100644 Documentation/tools/rv/rv-mon-wip.rst create mode 100644 Documentation/tools/rv/rv-mon-wwnr.rst create mode 100644 Documentation/tools/rv/rv-mon.rst create mode 100644 Documentation/tools/rv/rv.rst create mode 100644 tools/verification/rv/Makefile create mode 100644 tools/verification/rv/README.txt create mode 100644 tools/verification/rv/include/in_kernel.h create mode 100644 tools/verification/rv/include/rv.h create mode 100644 tools/verification/rv/include/trace.h create mode 100644 tools/verification/rv/include/utils.h create mode 100644 tools/verification/rv/src/in_kernel.c create mode 100644 tools/verification/rv/src/rv.c create mode 100644 tools/verification/rv/src/trace.c create mode 100644 tools/verification/rv/src/utils.c