Commit Graph

4 Commits

Author SHA1 Message Date
John Kacur 9c0a336ebb rv/monitors: Move monitor structure in rodata
JIRA: https://issues.redhat.com/browse/RHEL-10080

commit bfa87ac86ce9ff879c5ac49bf09c3999859a8968
Author: Alessandro Carminati <acarmina@redhat.com>
Date:   Tue Nov 22 18:36:48 2022 +0100

	rv/monitors: Move monitor structure in rodata

	It makes sense to move the important monitor structure into rodata to
	prevent accidental structure modification.

	Link: https://lkml.kernel.org/r/20221122173648.4732-1-acarmina@redhat.com

	Signed-off-by: Alessandro Carminati <acarmina@redhat.com>
	Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
	Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Signed-off-by: John Kacur <jkacur@redhat.com>
2023-11-13 15:59:37 -05:00
Alessandro Carminati dab1e6f7b8 rv/dot2c: Make automaton definition static
commit 21a1994b6492b12e55dbf39d15271430ef6839f0
Author: Daniel Bristot de Oliveira <bristot@kernel.org>
Date:   Tue Aug 23 17:20:28 2022 +0200

    rv/dot2c: Make automaton definition static

    Monitor's automata definition is only used locally, so make dot2c generate
    a static definition.

    Link: https://lore.kernel.org/all/202208210332.gtHXje45-lkp@intel.com
    Link: https://lore.kernel.org/all/202208210358.6HH3OrVs-lkp@intel.com
    Link: https://lkml.kernel.org/r/ffbb92010f643307766c9307fd42f416e5b85fa0.1661266564.git.bristot@kernel.org

    Cc: Steven Rostedt <rostedt@goodmis.org>
    Fixes: e3c9fc78f096 ("tools/rv: Add dot2c")
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
    Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Bugzilla: https://bugzilla.redhat.com/2129758

Signed-off-by: Alessandro Carminati <acarmina@redhat.com>
2022-11-21 17:07:13 +01:00
Alessandro Carminati 980952c32c Documentation/rv: Add deterministic automaton documentation
Bugzilla: https://bugzilla.redhat.com/2129758

commit 4041b9bbfbcddd239ff2c090f0da43bb3df7818c
From: Daniel Bristot de Oliveira <bristot@kernel.org>
Date: Fri, 29 Jul 2022 11:38:47 +0200

    rv: Add Runtime Verification (RV) interface

    Add documentation about deterministic automaton and its possible
    representations (formal, graphic, .dot and C).

    Link: https://lkml.kernel.org/r/387edaed87630bd5eb37c4275045dfd229700aa6.1659052063.git.bristot@kernel.org

    Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Marco Elver <elver@google.com>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: "Paul E. McKenney" <paulmck@kernel.org>
    Cc: Shuah Khan <skhan@linuxfoundation.org>
    Cc: Gabriele Paoloni <gpaoloni@redhat.com>
    Cc: Juri Lelli <juri.lelli@redhat.com>
    Cc: Clark Williams <williams@redhat.com>
    Cc: Tao Zhou <tao.zhou@linux.dev>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: linux-doc@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-trace-devel@vger.kernel.org
    Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
    Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Signed-off-by: Alessandro Carminati <acarmina@redhat.com>
2022-11-14 15:11:32 +01:00
Alessandro Carminati 320b09a017 tools/rv: Add dot2c
Bugzilla: https://bugzilla.redhat.com/2129758

commit e3c9fc78f096b83e81329b213c25fb9a376e373a
From: Daniel Bristot de Oliveira <bristot@kernel.org>
Date: Fri, 29 Jul 2022 11:38:46 +0200

    tools/rv: Add dot2c

    dot2c is a tool that transforms an automata in the graphiviz .dot file
    into an C representation of the automata.

    usage: dot2c [-h] dot_file

    dot2c: converts a .dot file into a C structure

    positional arguments:
      dot_file    The dot file to be converted

    optional arguments:
      -h, --help  show this help message and exit

    Link: https://lkml.kernel.org/r/b26204ba9509c80bcda31b76cdea31ddb188cd24.1659052063.git.bristot@kernel.org

    Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Marco Elver <elver@google.com>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: "Paul E. McKenney" <paulmck@kernel.org>
    Cc: Shuah Khan <skhan@linuxfoundation.org>
    Cc: Gabriele Paoloni <gpaoloni@redhat.com>
    Cc: Juri Lelli <juri.lelli@redhat.com>
    Cc: Clark Williams <williams@redhat.com>
    Cc: Tao Zhou <tao.zhou@linux.dev>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: linux-doc@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-trace-devel@vger.kernel.org
    Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
    Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Signed-off-by: Alessandro Carminati <acarmina@redhat.com>
2022-11-14 15:11:32 +01:00