Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'trace-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull tracing fix from Steven Rostedt:
"I missed this minor hardening of the kernel in the first pull.

- Make monitor structures read only"

* tag 'trace-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
rv/monitors: Move monitor structure in rodata

+3 -3
+1 -1
kernel/trace/rv/monitors/wip/wip.h
··· 27 27 bool final_states[state_max_wip]; 28 28 }; 29 29 30 - static struct automaton_wip automaton_wip = { 30 + static const struct automaton_wip automaton_wip = { 31 31 .state_names = { 32 32 "preemptive", 33 33 "non_preemptive"
+1 -1
kernel/trace/rv/monitors/wwnr/wwnr.h
··· 27 27 bool final_states[state_max_wwnr]; 28 28 }; 29 29 30 - static struct automaton_wwnr automaton_wwnr = { 30 + static const struct automaton_wwnr automaton_wwnr = { 31 31 .state_names = { 32 32 "not_running", 33 33 "running"
+1 -1
tools/verification/dot2/dot2c.py
··· 111 111 112 112 def format_aut_init_header(self): 113 113 buff = [] 114 - buff.append("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def)) 114 + buff.append("static const struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def)) 115 115 return buff 116 116 117 117 def __get_string_vector_per_line_content(self, buff):