diff options
author | Christophe JAILLET <[email protected]> | 2024-08-06 15:30:16 +0200 |
---|---|---|
committer | Neeraj Upadhyay <[email protected]> | 2024-08-15 00:14:48 +0530 |
commit | 8f35fefad06323ab8ad5915bb7c6bc1a684cb8b5 (patch) | |
tree | f894c54bcc4c05fa85554deb1c6d32f384102dde /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f1fd0e0bb12d09ca0564425b8af76fddf2e380fb (diff) |
refscale: Constify struct ref_scale_ops
'struct ref_scale_ops' are not modified in these drivers.
Constifying this structure moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
34231 4167 736 39134 98de kernel/rcu/refscale.o
After:
=====
text data bss dec hex filename
35175 3239 736 39150 98ee kernel/rcu/refscale.o
Signed-off-by: Christophe JAILLET <[email protected]>
Tested-by: "Paul E. McKenney" <[email protected]>
Signed-off-by: Neeraj Upadhyay <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions