Skip to content

bpftool: Align dumped file headers with skeletons

Francis Laniel bpf lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 3 repliesIn review
  2. v2 RFC1 patch 2 repliesSuperseded

v1 from the cover letter

* Drop command used to generate the file and use the same warning message as skeletons.
* Add SPDX license.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1bpftool: Align dumped file generated header with skeletons.tools/bpf/bpftool/btf.c+2 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/1] bpftool: Align dumped file headers with skeletons

Hi.

First, I hope you are fine and the same for your relatives.

In this patch, I aligned dumped C file headers with that of skeletons, so the first lines of C dumped files are the following:
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* THIS FILE IS AUTOGENERATED BY BPFTOOL! */
#ifndef __VMLINUX_H__
#define __VMLINUX_H__

The goal is to warn users this file must not be edited as it was automatically generated.
Indeed, skeletons also contain the same message.

This patch is clearly not a big change which impacts the future of bpftool but I think it could be welcomed.
If you see any way to improve it or have any question, feel free to ask.

Change since:
v1:
* Drop command used to generate the file and use the same warning message as skeletons.
* Add SPDX license.
v2:
* Drop RFC tag.
* Add Quentin Monnet Reviewed-By tag.

Francis Laniel (1):
bpftool: Align dumped file generated header with skeletons.

 tools/bpf/bpftool/btf.c | 2 ++
 1 file changed, 2 insertions(+)

Best regards and thank you in advance.

Signature · 1 line
2.25.1