summaryrefslogtreecommitdiffhomepage
path: root/pkg/flipcall/BUILD
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-06-21 14:45:57 -0700
committergVisor bot <gvisor-bot@google.com>2019-06-21 14:47:04 -0700
commite806466fc5a1331df1e643226297064e0eb31075 (patch)
treea6646ae458821908ff98a39e9f171d2cdceb699f /pkg/flipcall/BUILD
parent5ba16d51a950d55684c0348a9445784363467c9c (diff)
Add //pkg/flipcall.
Flipcall is a (conceptually) simple local-only RPC mechanism. Compared to unet, Flipcall does not support passing FDs (support for which will be provided out of band by another package), requires users to establish connections manually, and requires user management of concurrency since each connected Endpoint pair supports only a single RPC at a time; however, it improves performance by using shared memory for data (reducing memory copies) and using futexes for control signaling (which is much cheaper than sendto/recvfrom/sendmsg/recvmsg). PiperOrigin-RevId: 254471986
Diffstat (limited to 'pkg/flipcall/BUILD')
-rw-r--r--pkg/flipcall/BUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/flipcall/BUILD b/pkg/flipcall/BUILD
new file mode 100644
index 000000000..7126fc45f
--- /dev/null
+++ b/pkg/flipcall/BUILD
@@ -0,0 +1,31 @@
+load("//tools/go_stateify:defs.bzl", "go_library", "go_test")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "flipcall",
+ srcs = [
+ "endpoint_futex.go",
+ "endpoint_unsafe.go",
+ "flipcall.go",
+ "futex_linux.go",
+ "packet_window_allocator.go",
+ ],
+ importpath = "gvisor.dev/gvisor/pkg/flipcall",
+ visibility = ["//visibility:public"],
+ deps = [
+ "//pkg/abi/linux",
+ "//pkg/log",
+ "//pkg/memutil",
+ ],
+)
+
+go_test(
+ name = "flipcall_test",
+ size = "small",
+ srcs = [
+ "flipcall_example_test.go",
+ "flipcall_test.go",
+ ],
+ embed = [":flipcall"],
+)