Commit e8bdb76 1 parent 034238a commit e8bdb76 Copy full SHA for e8bdb76
File tree 11 files changed +12
-19
lines changed
11 files changed +12
-19
lines changed Original file line number Diff line number Diff line change 4
4
"errors"
5
5
"fmt"
6
6
"os"
7
+ "slices"
7
8
"strings"
8
9
"testing"
9
10
@@ -13,7 +14,6 @@ import (
13
14
"github.com/cilium/ebpf/internal/testutils"
14
15
15
16
"github.com/go-quicktest/qt"
16
- "golang.org/x/exp/slices"
17
17
)
18
18
19
19
func TestCheckTypeCompatibility (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -6,11 +6,10 @@ import (
6
6
"errors"
7
7
"fmt"
8
8
"math"
9
+ "slices"
9
10
"sync"
10
11
11
12
"github.com/cilium/ebpf/internal"
12
-
13
- "golang.org/x/exp/slices"
14
13
)
15
14
16
15
type MarshalOptions struct {
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ import (
6
6
"errors"
7
7
"fmt"
8
8
"io"
9
+ "maps"
10
+ "slices"
9
11
"strings"
10
-
11
- "golang.org/x/exp/maps"
12
- "golang.org/x/exp/slices"
13
12
)
14
13
15
14
type stringTable struct {
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import (
6
6
"fmt"
7
7
"io"
8
8
"math"
9
+ "slices"
9
10
"strings"
10
11
11
12
"github.com/cilium/ebpf/asm"
12
13
"github.com/cilium/ebpf/internal"
13
14
"github.com/cilium/ebpf/internal/sys"
14
- "golang.org/x/exp/slices"
15
15
)
16
16
17
17
// Mirrors MAX_RESOLVE_DEPTH in libbpf.
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ import (
13
13
"path/filepath"
14
14
"regexp"
15
15
"runtime"
16
+ "slices"
16
17
"sort"
17
18
"strings"
18
19
19
- "golang.org/x/exp/slices"
20
-
21
20
"github.com/cilium/ebpf"
22
21
)
23
22
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import (
9
9
"os/exec"
10
10
"path/filepath"
11
11
"runtime"
12
+ "slices"
12
13
"strings"
13
14
"testing"
14
15
15
16
"github.com/go-quicktest/qt"
16
17
"github.com/google/go-cmp/cmp"
17
- "golang.org/x/exp/slices"
18
18
)
19
19
20
20
func TestRun (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -9,14 +9,13 @@ import (
9
9
"errors"
10
10
"fmt"
11
11
"os"
12
+ "slices"
12
13
"sort"
13
14
"strings"
14
15
15
16
"github.com/cilium/ebpf/btf"
16
17
"github.com/cilium/ebpf/internal"
17
18
"github.com/cilium/ebpf/internal/sys"
18
-
19
- "golang.org/x/exp/slices"
20
19
)
21
20
22
21
type syscallRetval int
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ import (
7
7
"errors"
8
8
"fmt"
9
9
"reflect"
10
+ "slices"
10
11
"sync"
11
12
"unsafe"
12
13
13
14
"github.com/cilium/ebpf/internal"
14
-
15
- "golang.org/x/exp/slices"
16
15
)
17
16
18
17
// Marshal turns data into a byte slice using the system's native endianness.
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ package link
2
2
3
3
import (
4
4
"os"
5
+ "slices"
5
6
"testing"
6
7
7
8
"github.com/cilium/ebpf"
8
9
"github.com/cilium/ebpf/internal/testutils"
9
10
10
11
"github.com/go-quicktest/qt"
11
- "golang.org/x/exp/slices"
12
12
)
13
13
14
14
func TestQueryPrograms (t * testing.T ) {
Original file line number Diff line number Diff line change 6
6
"fmt"
7
7
"io"
8
8
"math"
9
-
10
- "golang.org/x/exp/slices"
9
+ "slices"
11
10
12
11
"github.com/cilium/ebpf/asm"
13
12
"github.com/cilium/ebpf/btf"
Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ import (
5
5
"errors"
6
6
"fmt"
7
7
"reflect"
8
+ "slices"
8
9
"unsafe"
9
10
10
11
"github.com/cilium/ebpf/internal"
11
12
"github.com/cilium/ebpf/internal/sys"
12
13
"github.com/cilium/ebpf/internal/sysenc"
13
-
14
- "golang.org/x/exp/slices"
15
14
)
16
15
17
16
// marshalMapSyscallInput converts an arbitrary value into a pointer suitable
You can’t perform that action at this time.
0 commit comments