main.h (023265ed75d8792ca1d555430a8985511d3f8788) main.h (a7d22ca2a483d6c69c0791954447464297315ffa)
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2/* Copyright (C) 2017-2018 Netronome Systems, Inc. */
3
4#ifndef __BPF_TOOL_H
5#define __BPF_TOOL_H
6
7/* BFD and kernel.h both define GCC_VERSION, differently */
8#undef GCC_VERSION

--- 28 unchanged lines hidden (view full) ---

37 _res; \
38 })
39
40#define ERR_MAX_LEN 1024
41
42#define BPF_TAG_FMT "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx"
43
44#define HELP_SPEC_PROGRAM \
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2/* Copyright (C) 2017-2018 Netronome Systems, Inc. */
3
4#ifndef __BPF_TOOL_H
5#define __BPF_TOOL_H
6
7/* BFD and kernel.h both define GCC_VERSION, differently */
8#undef GCC_VERSION

--- 28 unchanged lines hidden (view full) ---

37 _res; \
38 })
39
40#define ERR_MAX_LEN 1024
41
42#define BPF_TAG_FMT "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx"
43
44#define HELP_SPEC_PROGRAM \
45 "PROG := { id PROG_ID | pinned FILE | tag PROG_TAG }"
45 "PROG := { id PROG_ID | pinned FILE | tag PROG_TAG | name PROG_NAME }"
46#define HELP_SPEC_OPTIONS \
47 "OPTIONS := { {-j|--json} [{-p|--pretty}] | {-f|--bpffs} |\n" \
48 "\t {-m|--mapcompat} | {-n|--nomount} }"
49#define HELP_SPEC_MAP \
50 "MAP := { id MAP_ID | pinned FILE }"
51
52static const char * const prog_type_name[] = {
53 [BPF_PROG_TYPE_UNSPEC] = "unspec",

--- 175 unchanged lines hidden ---
46#define HELP_SPEC_OPTIONS \
47 "OPTIONS := { {-j|--json} [{-p|--pretty}] | {-f|--bpffs} |\n" \
48 "\t {-m|--mapcompat} | {-n|--nomount} }"
49#define HELP_SPEC_MAP \
50 "MAP := { id MAP_ID | pinned FILE }"
51
52static const char * const prog_type_name[] = {
53 [BPF_PROG_TYPE_UNSPEC] = "unspec",

--- 175 unchanged lines hidden ---