Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 284 for proc (0.56 sec)

  1. 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)
  2. src/runtime/pprof/proto.go

    	file    string  // The object this entry is loaded from.
    	buildID string  // A string that uniquely identifies a particular program version with high probability.
    
    	funcs symbolizeFlag
    	fake  bool // map entry was faked; /proc/self/maps wasn't available
    }
    
    // symbolizeFlag keeps track of symbolization result.
    //
    //	0                  : no symbol lookup was performed
    //	1<<0 (lookupTried) : symbol lookup was performed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/cpu.go

    	"os"
    	"strings"
    )
    
    // Initialized reports whether the CPU features were initialized.
    //
    // For some GOOS/GOARCH combinations initialization of the CPU features depends
    // on reading an operating specific file, e.g. /proc/self/auxv on linux/arm
    // Initialized will report false if reading the file fails.
    var Initialized bool
    
    // CacheLinePad is used to pad structs to avoid false sharing.
    type CacheLinePad struct{ _ [cacheLineSize]byte }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy

            1 * remoteSha1.withContentIfPresent(_) >> { Transformer t ->
                ExternalResourceReadResult.of(1, t.transform(new ByteArrayInputStream("proc".bytes)))
            }
            1 * repository.withProgressLogging() >> progressLoggingRepo
            1 * progressLoggingRepo.resource(location, true) >> remoteResource
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 17:19:47 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  5. 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)
  6. src/os/pipe_test.go

    	limit := 1
    	if !read {
    		// Get the amount we have to write to overload a pipe
    		// with no reader.
    		limit = 131073
    		if b, err := os.ReadFile("/proc/sys/fs/pipe-max-size"); err == nil {
    			if i, err := strconv.Atoi(strings.TrimSpace(string(b))); err == nil {
    				limit = i + 1
    			}
    		}
    		t.Logf("using pipe write limit of %d", limit)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  7. 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)
  8. pkg/volume/util/fsquota/quota_linux.go

    		// mount point
    		//
    		// IsNotMountPoint proved much more troublesome; it actually
    		// scans the mounts, and when a lot of mount/unmount
    		// activity takes place, it is not able to get a consistent
    		// view of /proc/self/mounts, causing it to time out and
    		// report incorrectly.
    		isNotMount, err := m.IsLikelyNotMountPoint(path)
    		if err != nil {
    			return "/", err
    		}
    		if !isNotMount {
    			return path, nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/cc_test.go

    }
    
    // requireOvercommit skips t if the kernel does not allow overcommit.
    func requireOvercommit(t *testing.T) {
    	t.Helper()
    
    	overcommit.Once.Do(func() {
    		var out []byte
    		out, overcommit.err = os.ReadFile("/proc/sys/vm/overcommit_memory")
    		if overcommit.err != nil {
    			return
    		}
    		overcommit.value, overcommit.err = strconv.Atoi(string(bytes.TrimSpace(out)))
    	})
    
    	if overcommit.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertFalse(Files.equal(asciiFile, temp));
    
        assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile)));
    
        // 0-length files have special treatment (/proc, etc.)
        assertTrue(Files.equal(asciiFile, new BadLengthFile(asciiFile, 0)));
      }
    
      public void testNewReader() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.2K bytes
    - Viewed (0)
Back to top