root/tools/testing/selftests/bpf/progs/btf_dump_test_case_multidim.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. f

   1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
   2 
   3 /*
   4  * BTF-to-C dumper test for multi-dimensional array output.
   5  *
   6  * Copyright (c) 2019 Facebook
   7  */
   8 /* ----- START-EXPECTED-OUTPUT ----- */
   9 typedef int arr_t[2];
  10 
  11 typedef int multiarr_t[3][4][5];
  12 
  13 typedef int *ptr_arr_t[6];
  14 
  15 typedef int *ptr_multiarr_t[7][8][9][10];
  16 
  17 typedef int * (*fn_ptr_arr_t[11])();
  18 
  19 typedef int * (*fn_ptr_multiarr_t[12][13])();
  20 
  21 struct root_struct {
  22         arr_t _1;
  23         multiarr_t _2;
  24         ptr_arr_t _3;
  25         ptr_multiarr_t _4;
  26         fn_ptr_arr_t _5;
  27         fn_ptr_multiarr_t _6;
  28 };
  29 
  30 /* ------ END-EXPECTED-OUTPUT ------ */
  31 
  32 int f(struct root_struct *s)
  33 {
  34         return 0;
  35 }

/* [<][>][^][v][top][bottom][index][help] */