summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/memevent/BUILD
blob: e903badd31e4d3254c89bec4ba312a4665cccc4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
load("//tools/go_stateify:defs.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

package(licenses = ["notice"])  # Apache 2.0

go_library(
    name = "memevent",
    srcs = ["memory_events.go"],
    importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/kernel/memevent",
    visibility = ["//:sandbox"],
    deps = [
        ":memory_events_go_proto",
        "//pkg/eventchannel",
        "//pkg/log",
        "//pkg/sentry/kernel",
        "//pkg/sentry/usage",
    ],
)

proto_library(
    name = "memory_events_proto",
    srcs = ["memory_events.proto"],
    visibility = ["//visibility:public"],
)

go_proto_library(
    name = "memory_events_go_proto",
    importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/kernel/memevent/memory_events_go_proto",
    proto = ":memory_events_proto",
    visibility = ["//visibility:public"],
)