]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'strip-mods-from-global-vars'
authorAlexei Starovoitov <ast@kernel.org>
Tue, 14 Jul 2020 00:07:43 +0000 (17:07 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 14 Jul 2020 00:08:44 +0000 (17:08 -0700)
commit28e292a7cca919a2e78ccb29b97ab9654a2447c4
tree79a7e9cabc285400476b921dbdaa4bba220fa46e
parent00c9300b17af8d18285159fd92c16c3834e51676
parent93339ce7e78f875f7e4fe4f90dbd7d43d7cf6e54
Merge branch 'strip-mods-from-global-vars'

Andrii Nakryiko says:

====================
Fix bpftool logic of stripping away const/volatile modifiers for all global
variables during BPF skeleton generation. See patch #1 for details on when
existing logic breaks and why it's important. Support special .strip_mods=true
mode in btf_dump__emit_type_decl.

Recent example of when this has caused problems can be found in [0].

  [0] https://github.com/iovisor/bcc/pull/2994#issuecomment-650588533
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>