1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-2- 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */ 2 2 3 #define SEC(name) __attribute__((section(name) 3 #define SEC(name) __attribute__((section(name), used)) 4 4 5 /* Sample program which should always load for 5 /* Sample program which should always load for testing control paths. */ 6 SEC("xdp") 6 SEC("xdp") 7 int func() 7 int func() 8 { 8 { 9 return 0; 9 return 0; 10 } 10 } 11 11
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.