gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/time/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 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 = "seqatomic_parameters", 11 out = "seqatomic_parameters_unsafe.go", 12 package = "time", 13 suffix = "Parameters", 14 template = "//pkg/sync/seqatomic:generic_seqatomic", 15 types = { 16 "Value": "Parameters", 17 }, 18 ) 19 20 go_library( 21 name = "time", 22 srcs = [ 23 "arith_arm64.go", 24 "calibrated_clock.go", 25 "clock_id.go", 26 "clocks.go", 27 "muldiv_amd64.s", 28 "muldiv_arm64.s", 29 "parameters.go", 30 "sampler.go", 31 "sampler_amd64.go", 32 "sampler_arm64.go", 33 "seqatomic_parameters_unsafe.go", 34 "tsc_amd64.s", 35 "tsc_arm64.s", 36 "vdso.go", 37 "vdso_amd64.s", 38 "vdso_arm64.s", 39 ], 40 visibility = ["//:sandbox"], 41 deps = [ 42 "//pkg/atomicbitops", 43 "//pkg/errors/linuxerr", 44 "//pkg/gohacks", 45 "//pkg/log", 46 "//pkg/metric", 47 "//pkg/sync", 48 "@org_golang_x_sys//unix:go_default_library", 49 ], 50 ) 51 52 go_test( 53 name = "time_test", 54 srcs = [ 55 "calibrated_clock_test.go", 56 "parameters_test.go", 57 "sampler_test.go", 58 "vdso_test.go", 59 ], 60 library = ":time", 61 deps = [ 62 "//pkg/abi/linux", 63 "@org_golang_x_sys//unix:go_default_library", 64 ], 65 )