• Home
  • Raw
  • Download

Lines Matching +full:os +full:- +full:code +full:- +full:offset

2 # SPDX-License-Identifier: GPL-2.0-only
4 # Copyright (C) 2018-2019 Netronome Systems, Inc.
11 import sys, os
20 'Error at file offset %d, parsing line: %s' %
84 # - "void"
85 # - "type name"
86 # - "type *name"
87 # - Same as above, with "const" and/or "struct" in front of type
88 # - "..." (undefined number of arguments, for bpf_trace_printk())
145 offset = self.reader.read().find('* Start of BPF helper function descriptions:')
146 if offset == -1:
148 self.reader.seek(offset)
211 .. manual page may be incorrect or out-of-date. The author(s) assume no
228 BPF-HELPERS
230 -------------------------------------------------------------------------------
232 -------------------------------------------------------------------------------
240 written in a pseudo-assembly language, then attached to one of the several
244 These functions are restricted to a white-list of helpers defined in the
257 without requiring any foreign-function interface. As a result, calling helpers
291 generally translates into the C source code of the program containing a line
302 But as of this writing, the BPF sub-system is under heavy development. New eBPF
305 the efforts of the community, this page might not be up-to-date. If you want to
313 * *net/core/filter.c* contains the definition of most network-related helper
315 * *kernel/trace/bpf_trace.c* is the equivalent for most tracing program-related
324 **bpftool-feature**\ (8) for details). Add the **unprivileged** keyword to
352 **tc-bpf**\ (8)'''
386 # Do not strip all newline characters: formatted code at the end of
506 /* This is auto-generated file. See bpf_helpers_doc.py for details. */
541 # Do not strip all newline characters: formatted code at the end of
579 # otherwise the --filename argument will be required from the command line.
580 script = os.path.abspath(sys.argv[0])
581 linuxRoot = os.path.dirname(os.path.dirname(script))
582 bpfh = os.path.join(linuxRoot, 'include/uapi/linux/bpf.h')
586 The RST-formatted output produced can be turned into a manual page with the
589 argParser.add_argument('--header', action='store_true',
591 if (os.path.isfile(bpfh)):
592 argParser.add_argument('--filename', help='path to include/uapi/linux/bpf.h',
595 argParser.add_argument('--filename', help='path to include/uapi/linux/bpf.h')