cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

tcp_estats.c (372B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <test_progs.h>
      3
      4void test_tcp_estats(void)
      5{
      6	const char *file = "./test_tcp_estats.o";
      7	int err, prog_fd;
      8	struct bpf_object *obj;
      9	__u32 duration = 0;
     10
     11	err = bpf_prog_test_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd);
     12	CHECK(err, "", "err %d errno %d\n", err, errno);
     13	if (err)
     14		return;
     15
     16	bpf_object__close(obj);
     17}