Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 888 for proc (0.05 sec)

  1. cni/pkg/repair/netns.go

    	if parsedPodAddr == nil {
    		return "", fmt.Errorf("failed to parse addr: %s", pod.Status.PodIP)
    	}
    
    	fs, err := procfs.NewFS("/host/proc")
    	if err != nil {
    		return "", fmt.Errorf("read procfs: %v", err)
    	}
    	procs, err := fs.AllProcs()
    	if err != nil {
    		return "", fmt.Errorf("read procs: %v", err)
    	}
    	oldest := uint64(math.MaxUint64)
    	best := ""
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 04:07:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/runtime/testdata/testwintls/main.c

        for (int i = 0; i < 65; i++) {
            TlsAlloc();
        }
        HMODULE hlib = LoadLibrary(argv[1]);
        if (hlib == NULL) {
            return 2;
        }
        FARPROC proc = GetProcAddress(hlib, argv[2]);
        if (proc == NULL) {
            return 3;
        }
        if (proc() != 42) {
            return 4;
        }
        return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 15:37:00 UTC 2023
    - 692 bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/process/internal/PathLimitationIntegrationTest.groovy

                proc = builder.build();
                try {
                    proc.start();
                    assertFalse(startFails);
                } catch (ExecException e) {
                    e.printStackTrace()
                    assertTrue(startFails);
                    return;
                }
                proc.getConnection().addIncoming(TestListenerInterface.class, exceptionListener);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/internal/trace/testtrace/validation.go

    				}
    			}
    		case trace.ResourceProc:
    			// Basic state transition validation.
    			id := tr.Resource.Proc()
    			old, new := tr.Proc()
    			if new == trace.ProcUndetermined {
    				e.Errorf("transition to undetermined state for proc %d", id)
    			}
    			if v.seenSync && old == trace.ProcUndetermined {
    				e.Errorf("undetermined proc %d after first global sync", id)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. cmd/metrics-v3-system-process.go

    	processIOReadBytesMD              = NewCounterMD(processIOReadBytes, "Total bytes read by the process from the underlying storage system, /proc/[pid]/io read_bytes")
    	processIOWCharBytesMD             = NewCounterMD(processIOWCharBytes, "Total bytes written by the process to the underlying storage system including page cache, /proc/[pid]/io wchar")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 16:07:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/runtime/pprof/proto_other.go

    //go:build !windows && !darwin
    
    package pprof
    
    import (
    	"errors"
    	"os"
    )
    
    // readMapping reads /proc/self/maps and writes mappings to b.pb.
    // It saves the address ranges of the mappings in b.mem for use
    // when emitting locations.
    func (b *profileBuilder) readMapping() {
    	data, _ := os.ReadFile("/proc/self/maps")
    	parseProcSelfMaps(data, b.addMapping)
    	if len(b.mem) == 0 { // pprof expects a map entry, so fake one.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 928 bytes
    - Viewed (0)
  7. src/runtime/syscall_windows_test.go

    		t.Fatal(e)
    	}
    	return &DLL{DLL: d, t: t}
    }
    
    func (d *DLL) Proc(name string) *syscall.Proc {
    	p, e := d.FindProc(name)
    	if e != nil {
    		d.t.Fatal(e)
    	}
    	return p
    }
    
    func TestStdCall(t *testing.T) {
    	type Rect struct {
    		left, top, right, bottom int32
    	}
    	res := Rect{}
    	expected := Rect{1, 1, 40, 60}
    	a, _, _ := GetDLL(t, "user32.dll").Proc("UnionRect").Call(
    		uintptr(unsafe.Pointer(&res)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/podcgroupns.go

    	}
    }
    
    type PodNetnsFinder interface {
    	FindNetnsForPods(filter map[types.UID]*corev1.Pod) (PodToNetns, error)
    }
    
    type PodNetnsProcFinder struct {
    	proc fs.FS
    }
    
    func NewPodNetnsProcFinder(proc fs.FS) *PodNetnsProcFinder {
    	return &PodNetnsProcFinder{proc: proc}
    }
    
    func isNotNumber(r rune) bool {
    	return r < '0' || r > '9'
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. pkg/kubelet/util/swap/swap_util.go

    }
    
    // gets /proc/swaps's content as an input, returns true if swap is enabled.
    func isSwapOnAccordingToProcSwaps(procSwapsContent []byte) bool {
    	procSwapsContent = bytes.TrimSpace(procSwapsContent) // extra trailing \n
    	procSwapsStr := string(procSwapsContent)
    	procSwapsLines := strings.Split(procSwapsStr, "\n")
    
    	// If there is more than one line (table headers) in /proc/swaps then swap is enabled
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/os/sys_linux.go

    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"runtime"
    	"syscall"
    )
    
    func hostname() (name string, err error) {
    	// Try uname first, as it's only one system call and reading
    	// from /proc is not allowed on Android.
    	var un syscall.Utsname
    	err = syscall.Uname(&un)
    
    	var buf [512]byte // Enough for a DNS name.
    	for i, b := range un.Nodename[:] {
    		buf[i] = uint8(b)
    		if b == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 02 14:41:57 UTC 2018
    - 1K bytes
    - Viewed (0)
Back to top