xref: /openbmc/linux/tools/bpf/bpftool/cfg.h (revision 80331752e990e3f13df1c1d45496424d8eccc29b)
1*80331752SJiong Wang // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*80331752SJiong Wang /*
3*80331752SJiong Wang  * Copyright (C) 2018 Netronome Systems, Inc.
4*80331752SJiong Wang  *
5*80331752SJiong Wang  * This software is dual licensed under the GNU General License Version 2,
6*80331752SJiong Wang  * June 1991 as shown in the file COPYING in the top-level directory of this
7*80331752SJiong Wang  * source tree or the BSD 2-Clause License provided below.  You have the
8*80331752SJiong Wang  * option to license this software under the complete terms of either license.
9*80331752SJiong Wang  *
10*80331752SJiong Wang  * The BSD 2-Clause License:
11*80331752SJiong Wang  *
12*80331752SJiong Wang  *     Redistribution and use in source and binary forms, with or
13*80331752SJiong Wang  *     without modification, are permitted provided that the following
14*80331752SJiong Wang  *     conditions are met:
15*80331752SJiong Wang  *
16*80331752SJiong Wang  *      1. Redistributions of source code must retain the above
17*80331752SJiong Wang  *         copyright notice, this list of conditions and the following
18*80331752SJiong Wang  *         disclaimer.
19*80331752SJiong Wang  *
20*80331752SJiong Wang  *      2. Redistributions in binary form must reproduce the above
21*80331752SJiong Wang  *         copyright notice, this list of conditions and the following
22*80331752SJiong Wang  *         disclaimer in the documentation and/or other materials
23*80331752SJiong Wang  *         provided with the distribution.
24*80331752SJiong Wang  *
25*80331752SJiong Wang  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26*80331752SJiong Wang  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27*80331752SJiong Wang  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28*80331752SJiong Wang  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29*80331752SJiong Wang  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30*80331752SJiong Wang  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31*80331752SJiong Wang  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32*80331752SJiong Wang  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33*80331752SJiong Wang  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34*80331752SJiong Wang  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35*80331752SJiong Wang  * POSSIBILITY OF SUCH DAMAGE.
36*80331752SJiong Wang  */
37*80331752SJiong Wang 
38*80331752SJiong Wang #ifndef __BPF_TOOL_CFG_H
39*80331752SJiong Wang #define __BPF_TOOL_CFG_H
40*80331752SJiong Wang 
41*80331752SJiong Wang void dump_xlated_cfg(void *buf, unsigned int len);
42*80331752SJiong Wang 
43*80331752SJiong Wang #endif /* __BPF_TOOL_CFG_H */
44