gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/platform/systrap/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(
     5      default_applicable_licenses = ["//:license"],
     6      licenses = ["notice"],
     7  )
     8  
     9  go_template_instance(
    10      name = "context_list",
    11      out = "context_list.go",
    12      package = "systrap",
    13      prefix = "context",
    14      template = "//pkg/ilist:generic_list",
    15      types = {
    16          "Element": "*sharedContext",
    17          "Linker": "*sharedContext",
    18      },
    19  )
    20  
    21  go_template_instance(
    22      name = "subprocess_refs",
    23      out = "subprocess_refs.go",
    24      package = "systrap",
    25      prefix = "subprocess",
    26      template = "//pkg/refs:refs_template",
    27      types = {
    28          "T": "subprocess",
    29      },
    30  )
    31  
    32  go_library(
    33      name = "systrap",
    34      srcs = [
    35          "context_list.go",
    36          "context_queue.go",
    37          "context_queue_unsafe.go",
    38          "filters.go",
    39          "filters_amd64.go",
    40          "filters_arm64.go",
    41          "lib_amd64.s",
    42          "lib_arm64.s",
    43          "metrics.go",
    44          "shared_context.go",
    45          "shared_context_norace.go",
    46          "shared_context_race.go",
    47          "stub_amd64.s",
    48          "stub_arm64.s",
    49          "stub_defs.go",
    50          "stub_unsafe.go",
    51          "subprocess.go",
    52          "subprocess_amd64.go",
    53          "subprocess_arm64.go",
    54          "subprocess_linux.go",
    55          "subprocess_linux_unsafe.go",
    56          "subprocess_pool.go",
    57          "subprocess_refs.go",
    58          "subprocess_unsafe.go",
    59          "syscall_thread.go",
    60          "syscall_thread_amd64.go",
    61          "syscall_thread_arm64.go",
    62          "syscall_thread_defs.go",
    63          "syscall_thread_unsafe.go",
    64          "sysmsg_thread.go",
    65          "sysmsg_thread_amd64.go",
    66          "sysmsg_thread_arm64.go",
    67          "sysmsg_thread_unsafe.go",
    68          "systrap.go",
    69          "systrap_amd64.go",
    70          "systrap_arm64.go",
    71          "systrap_arm64_unsafe.go",
    72          "systrap_profiling.go",
    73          "systrap_profiling_fake.go",
    74          "systrap_unsafe.go",
    75      ],
    76      visibility = ["//:sandbox"],
    77      deps = [
    78          "//pkg/abi/linux",
    79          "//pkg/atomicbitops",
    80          "//pkg/bpf",
    81          "//pkg/context",
    82          "//pkg/cpuid",
    83          "//pkg/fd",
    84          "//pkg/hostarch",
    85          "//pkg/log",
    86          "//pkg/memutil",
    87          "//pkg/metric",
    88          "//pkg/pool",
    89          "//pkg/refs",
    90          "//pkg/safecopy",
    91          "//pkg/seccomp",
    92          "//pkg/seccomp/precompiledseccomp",
    93          "//pkg/sentry/arch",
    94          "//pkg/sentry/memmap",
    95          "//pkg/sentry/pgalloc",
    96          "//pkg/sentry/platform",
    97          "//pkg/sentry/platform/interrupt",
    98          "//pkg/sentry/platform/systrap/sysmsg",
    99          "//pkg/sentry/platform/systrap/usertrap",
   100          "//pkg/sentry/usage",
   101          "//pkg/sync",
   102          "//pkg/syncevent",
   103          "@org_golang_x_sys//unix:go_default_library",
   104      ],
   105  )