Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2359015rwb; Fri, 11 Nov 2022 08:14:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4l/J5oqunFiTFkhKlfV4rmllEKM6Y0ZJ7XNuETVn1vMnjZ/43Z4mJ2mBOspmb2VJkbMjhV X-Received: by 2002:a62:506:0:b0:56d:4b31:c4d9 with SMTP id 6-20020a620506000000b0056d4b31c4d9mr3385489pff.44.1668183286656; Fri, 11 Nov 2022 08:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668183286; cv=none; d=google.com; s=arc-20160816; b=vjYfbdw1/UZeK5HCZ58c5W5xzZVGe25z0/UcKZqjnyr2ucB+fch958wFcsR0ogUer3 YZgsGZTrjUs+6j9rDidfwuGXVe87lg625lHAJ4hNpKI7Y3UNMgak7LPfWMyiKfUtGL/8 pplDpAuWsKdI97iZgfIUkwHpMLbblmI7e4drKOrpjKO9Wnei8s8NrCHAjk2ctvZdYh0a CwVpiRIgIIR2JqR7Ve2h3NsOwOu4vD5uVuy0GHs7BJyeK9M05vigoPw2ZHaxvE3uUUCW cZ4BY5csXOnOMH28OBxiPhgPs3+pWai1j3ibqNhcr1WAT6cCo65tvuKfJZ3fySOkJwu6 rubA== 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=BjYz/ujg8ZIHhbdvBHXYWIzE9GY7FdFOchlO3NRCWK4=; b=LrGxIiTTrxQfZTQ/rJQu2mGs6J/PqM0KR5WFl7ifiIbc9/EYTzQWwg6+nSomQW/6So xCZIaOVNeSeEQPTmGVR/+q1ujV4eEowq+1Xw6JOLuBFHEKXToBaSARwNyN7d82s8swt/ +YzWO8iGLmy5mAFiY5Rzy9kk3qwGLkr5wEviUUJaBDkfAqQUedyZwiK73YkYzJDmJ5r3 JVWbEzK2mY1lERRiQkIXk20PdEX82+i4P9JH/clhIAXpX5pFEbATz7BYkwbaAMC0Qdit JNRjfMSLdB03iBpZDPf6xMfAL4QakU7WJfXIKksl1zq4XTj5XvCiX8k1pHZBbzSQ9GwN ez1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wrq/F6/2"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a170903240c00b00176e05275d1si2884640plo.423.2022.11.11.08.14.33; Fri, 11 Nov 2022 08:14:46 -0800 (PST) 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="Wrq/F6/2"; 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 S234195AbiKKPxV (ORCPT + 91 others); Fri, 11 Nov 2022 10:53:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234081AbiKKPxQ (ORCPT ); Fri, 11 Nov 2022 10:53:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E91CEFDB; Fri, 11 Nov 2022 07:53:15 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8A5C762020; Fri, 11 Nov 2022 15:53:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76FBAC433D7; Fri, 11 Nov 2022 15:53:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668181994; bh=827LrRq+aAVe6d/B8oWF9ujEZQmWxfy7tuvicaZNH6s=; h=From:To:Cc:Subject:Date:From; b=Wrq/F6/2OcyhhipMfxPcuZx+8WO0euR/B8TXvoqhNYdi2XfkqOQ+BrSBnTRp6ZE7B H7vC4maxMxrLisUZ4KY+LKeInE2UxhjskatPMp+wJ/Fys8RLh7RGf/n2tvIjO2RTHB ty37kNv8asVzAxP+QBrQmX8FOhIfRLM8qf4o+KlJ7oyUDmBxILUjPDtQlWqZpwX/AJ /dkKaNt/rHzgI1bB6QUKmv+RrSksXnnrwgQZEcSsIikpcRbOg1N5J4sIIHQbRtXNHd 7jA+4OPNl/rlgb3fW54xBHvjsXVti7XFYGPygWXp892VFDfA2SzcMg7Zbryr5UlkLa /g+MtYhszn7zg== From: Daniel Bristot de Oliveira To: Steven Rostedt , linux-trace-devel@vger.kernel.org Cc: Daniel Bristot de Oliveira , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/3] verification/rv: Add rv tool Date: Fri, 11 Nov 2022 16:53:04 +0100 Message-Id: X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: X-Mailing-List: linux-kernel@vger.kernel.org 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. Changes from v1: - typos and format - fixed __ikm_read_enable() value check in ikm_read_enable() - adjust patch 2 log - improved function comments (mainly those /**). 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 | 16 + Documentation/tools/rv/common_ikm.rst | 21 + Documentation/tools/rv/index.rst | 24 + Documentation/tools/rv/rv-list.rst | 43 ++ Documentation/tools/rv/rv-mon-wip.rst | 44 ++ Documentation/tools/rv/rv-mon-wwnr.rst | 43 ++ Documentation/tools/rv/rv-mon.rst | 55 ++ Documentation/tools/rv/rv.rst | 63 ++ 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 | 188 ++++++ tools/verification/rv/src/trace.c | 133 ++++ tools/verification/rv/src/utils.c | 47 ++ 20 files changed, 1646 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 -- 2.37.3