1// Copyright (C) 2021 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17 default_team: "trendy_team_system_performance", 18} 19 20cc_library_headers { 21 name: "uprobestats_bpf_headers", 22 vendor_available: true, 23 recovery_available: true, 24 host_supported: true, 25 native_bridge_supported: true, 26 header_libs: ["uprobestats_bpf_syscall_wrappers"], 27 export_header_lib_headers: ["uprobestats_bpf_syscall_wrappers"], 28 export_include_dirs: ["include"], 29 cflags: [ 30 "-Wall", 31 "-Werror", 32 ], 33 sdk_version: "35", 34 min_sdk_version: "35", 35 apex_available: [ 36 "//apex_available:platform", 37 "com.android.uprobestats", 38 ], 39} 40 41cc_test { 42 name: "uprobestats_libbpf_android_test", 43 srcs: [ 44 "BpfMapTest.cpp", 45 "BpfRingbufTest.cpp", 46 ], 47 defaults: ["bpf_cc_defaults"], 48 cflags: [ 49 "-Wno-unused-variable", 50 "-Wno-sign-compare", 51 ], 52 header_libs: ["uprobestats_bpf_headers"], 53 static_libs: ["libgmock"], 54 shared_libs: [ 55 "libbase", 56 "liblog", 57 "libutils", 58 ], 59 require_root: true, 60 test_suites: ["general-tests"], 61} 62