1package { 2 default_applicable_licenses: ["system_bpf_license"], 3} 4 5// Added automatically by a large-scale-change 6// http://go/android-license-faq 7license { 8 name: "system_bpf_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18cc_library_headers { 19 name: "vmlinux15_6.6", 20 arch: { 21 arm: { 22 export_include_dirs: ["include/vmlinux/android15_6.6/arm64"], 23 }, 24 arm64: { 25 export_include_dirs: ["include/vmlinux/android15_6.6/arm64"], 26 }, 27 x86: { 28 export_include_dirs: ["include/vmlinux/android15_6.6/x86_64"], 29 }, 30 x86_64: { 31 export_include_dirs: ["include/vmlinux/android15_6.6/x86_64"], 32 }, 33 }, 34} 35 36cc_library_headers { 37 name: "android_bpf_defs", 38 export_include_dirs: ["include/defs"], 39} 40 41cc_defaults { 42 name: "bpf_cc_defaults", 43 cflags: [ 44 "-Wall", 45 "-Werror", 46 "-Werror=conditional-uninitialized", 47 "-Werror=implicit-fallthrough", 48 "-Werror=sometimes-uninitialized", 49 "-Wextra", 50 "-Wnullable-to-nonnull-conversion", 51 "-Wshadow", 52 "-Wsign-compare", 53 "-Wtautological-unsigned-zero-compare", 54 "-Wthread-safety", 55 "-Wuninitialized", 56 "-Wunused-parameter", 57 ], 58 tidy: true, 59 tidy_checks: [ 60 "android-*", 61 "bugprone-*", 62 "cert-*", 63 "-cert-err34-c", 64 "clang-analyzer-security*", 65 // Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning. 66 "-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling", 67 "google-*", 68 // Disabling due to many unavoidable warnings from POSIX API usage. 69 "-google-runtime-int", 70 "misc-*", 71 "performance-*", 72 ], 73 tidy_checks_as_errors: [ 74 "android-*", 75 "bugprone-*", 76 "cert-*", 77 "clang-analyzer-security*", 78 "google-*", 79 "misc-*", 80 "performance-*", 81 ], 82} 83