Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 78 for proc (0.05 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    				return path[found+len(want):]
    			}
    		}
    	}
    	// Trim configured trim prefixes.
    	trimPaths := append(filepath.SplitList(filepath.ToSlash(trimPath)), "/proc/self/cwd/./", "/proc/self/cwd/")
    	for _, trimPath := range trimPaths {
    		if !strings.HasSuffix(trimPath, "/") {
    			trimPath += "/"
    		}
    		if strings.HasPrefix(sPath, trimPath) {
    			return path[len(trimPath):]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. src/runtime/os_plan9.go

    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		if mp.procid != 0 && mp.procid != pid {
    			postnote(mp.procid, buf[:])
    		}
    	}
    	getg().m.locks--
    }
    
    var procdir = []byte("/proc/")
    var notefile = []byte("/note\x00")
    
    func postnote(pid uint64, msg []byte) int {
    	var buf [128]byte
    	var tmp [32]byte
    	n := copy(buf[:], procdir)
    	n += copy(buf[n:], itoa(tmp[:], pid))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. hack/lib/golang.sh

    kube::golang::get_physmem() {
      local mem
    
      # Linux kernel version >=3.14, in kb
      if mem=$(grep MemAvailable /proc/meminfo | awk '{ print $2 }'); then
        echo $(( mem / 1048576 ))
        return
      fi
    
      # Linux, in kb
      if mem=$(grep MemTotal /proc/meminfo | awk '{ print $2 }'); then
        echo $(( mem / 1048576 ))
        return
      fi
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net.go

    	// this can happen if the pod was dynamically added to the mesh after it was created.
    	// in that case, try finding the netns using procfs.
    	if err := s.rescanPod(pod); err != nil {
    		log.Errorf("error scanning proc: error was %s", err)
    		return nil, err
    	}
    	// try again. we can still get here if the pod is in the process of being created.
    	// in this case the CNI will be invoked soon and provide us with the netns.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/services/NativeServices.java

                return false;
            }
    
            // Musl libc maps /lib/ld-musl-aarch64.so.1 into memory, let's try to find it
            try {
                File mapFilesDir = new File("/proc/self/map_files");
                if (!mapFilesDir.isDirectory()) {
                    return false;
                }
                File[] files = mapFilesDir.listFiles();
                if (files == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. src/runtime/syscall_windows.go

    	index map[winCallbackKey]int
    	n     int
    }
    
    func cbsLock() {
    	lock(&cbs.lock)
    	// compileCallback is used by goenvs prior to completion of schedinit.
    	// raceacquire involves a racecallback to get the proc, which is not
    	// safe prior to scheduler initialization. Thus avoid instrumentation
    	// until then.
    	if raceenabled && mainStarted {
    		raceacquire(unsafe.Pointer(&cbs.lock))
    	}
    }
    
    func cbsUnlock() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. pkg/volume/fc/fc.go

    	// corruption.
    	paths, err := util.GetReliableMountRefs(mounter, mountPath)
    	if io.IsInconsistentReadError(err) {
    		klog.Errorf("Failed to read mount refs from /proc/mounts for %s: %s", mountPath, err)
    		klog.Errorf("Kubelet cannot unmount volume at %s, please unmount it manually", mountPath)
    		return volume.ReconstructedVolume{}, err
    	}
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. pkg/volume/iscsi/iscsi.go

    	// corruption.
    	paths, err := ioutil.GetReliableMountRefs(mounter, mountPath)
    	if io.IsInconsistentReadError(err) {
    		klog.Errorf("Failed to read mount refs from /proc/mounts for %s: %s", mountPath, err)
    		klog.Errorf("Kubelet cannot unmount volume at %s, please unmount it and all mounts of the same device manually.", mountPath)
    		return volume.ReconstructedVolume{}, err
    	}
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux.go

    	munmap: munmap,
    }
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    func Munmap(b []byte) (err error) {
    	return mapper.Munmap(b)
    }
    
    //sys	Madvise(b []byte, advice int) (err error)
    //sys	Mprotect(b []byte, prot int) (err error)
    //sys	Mlock(b []byte) (err error)
    //sys	Munlock(b []byte) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  10. src/os/exec/exec_test.go

    	var stdout, stderr strings.Builder
    	c.Stdout = &stdout
    	c.Stderr = &stderr
    	c.ExtraFiles = []*os.File{tf}
    	if runtime.GOOS == "illumos" {
    		// Some facilities in illumos are implemented via access
    		// to /proc by libc; such accesses can briefly occupy a
    		// low-numbered fd.  If this occurs concurrently with the
    		// test that checks for leaked descriptors, the check can
    		// become confused and report a spurious leaked descriptor.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top