File: test_static.c

package info (click to toggle)
bpfcc 0.18.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,368 kB
  • sloc: ansic: 132,727; python: 36,226; cpp: 26,973; sh: 710; yacc: 525; makefile: 141; lex: 94
file content (6 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
#include "bcc_common.h"

int main(int argc, char **argv) {
  void *mod = bpf_module_create_c_from_string("BPF_TABLE(\"array\", int, int, stats, 10);\n", 4, NULL, 0, true, NULL);
  return !(mod != NULL);
}