Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 322 for proc (0.05 sec)

  1. src/cmd/internal/bio/buf_mmap.go

    // distinct mapped regions per process. As of this writing:
    //
    //	Darwin    unlimited
    //	DragonFly   1000000 (vm.max_proc_mmap)
    //	FreeBSD   unlimited
    //	Linux         65530 (vm.max_map_count) // TODO: query /proc/sys/vm/max_map_count?
    //	NetBSD    unlimited
    //	OpenBSD   unlimited
    var mmapLimit int32 = 1<<31 - 1
    
    func init() {
    	// Linux is the only practically concerning OS.
    	if runtime.GOOS == "linux" {
    		mmapLimit = 30000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/internal/trace/internal/oldtrace/order.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package oldtrace
    
    import "errors"
    
    type orderEvent struct {
    	ev   Event
    	proc *proc
    }
    
    type gStatus int
    
    type gState struct {
    	seq    uint64
    	status gStatus
    }
    
    const (
    	gDead gStatus = iota
    	gRunnable
    	gRunning
    	gWaiting
    
    	unordered = ^uint64(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. prow/integ-suite-kind.sh

    set -u
    # Print commands
    set -x
    
    # shellcheck source=prow/lib.sh
    source "${ROOT}/prow/lib.sh"
    setup_and_export_git_sha
    
    # shellcheck source=common/scripts/kind_provisioner.sh
    source "${ROOT}/common/scripts/kind_provisioner.sh"
    
    TOPOLOGY=SINGLE_CLUSTER
    NODE_IMAGE="gcr.io/istio-testing/kind-node:v1.30.0"
    KIND_CONFIG=""
    CLUSTER_TOPOLOGY_CONFIG_FILE="${ROOT}/prow/config/topology/multicluster.json"
    
    export FAST_VM_BUILDS=true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 05:42:41 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go

    // license that can be found in the LICENSE file.
    
    //go:build linux && arm64
    
    package cpu
    
    import (
    	"errors"
    	"io"
    	"os"
    	"strings"
    )
    
    func readLinuxProcCPUInfo() error {
    	f, err := os.Open("/proc/cpuinfo")
    	if err != nil {
    		return err
    	}
    	defer f.Close()
    
    	var buf [1 << 10]byte // enough for first CPU
    	n, err := io.ReadFull(f, buf[:])
    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. src/runtime/security_test.go

    	tempfilePath := f.Name()
    	f.Close()
    
    	lowPrivUser := "nobody"
    	setSetuid(t, lowPrivUser, helloBin)
    
    	b := bytes.NewBuffer(nil)
    	pr, pw, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	proc, err := os.StartProcess(helloBin, []string{helloBin}, &os.ProcAttr{
    		Env:   []string{"GOTRACEBACK=system", "TEST_OUTPUT=" + tempfilePath},
    		Files: []*os.File{os.Stdin, pw},
    	})
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 18:10:14 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. src/internal/sysinfo/cpuinfo_linux.go

    // license that can be found in the LICENSE file.
    
    package sysinfo
    
    import (
    	"bufio"
    	"bytes"
    	"io"
    	"os"
    	"strings"
    )
    
    func readLinuxProcCPUInfo(buf []byte) error {
    	f, err := os.Open("/proc/cpuinfo")
    	if err != nil {
    		return err
    	}
    	defer f.Close()
    
    	_, err = io.ReadFull(f, buf)
    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:42:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. pkg/util/kernel/version.go

    	return getVersion(os.ReadFile)
    }
    
    // getVersion reads os release file from the give readFile function.
    func getVersion(readFile readFileFunc) (*version.Version, error) {
    	kernelVersionFile := "/proc/sys/kernel/osrelease"
    	fileContent, err := readFile(kernelVersionFile)
    	if err != nil {
    		return nil, fmt.Errorf("failed to read os-release file: %s", err.Error())
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue1435.go

    	expected := filter + expect
    	pid := syscall.Getpid()
    	fs, err := os.ReadDir(fmt.Sprintf("/proc/%d/task", pid))
    	if err != nil {
    		return fmt.Errorf("unable to find %d tasks: %v", pid, err)
    	}
    	expectedProc := fmt.Sprintf("Pid:\t%d", pid)
    	foundAThread := false
    	for _, f := range fs {
    		tf := fmt.Sprintf("/proc/%s/status", f.Name())
    		d, err := os.ReadFile(tf)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. src/runtime/os_linux_arm.go

    	"internal/cpu"
    	"unsafe"
    )
    
    const (
    	_HWCAP_VFP   = 1 << 6  // introduced in at least 2.6.11
    	_HWCAP_VFPv3 = 1 << 13 // introduced in 2.6.30
    )
    
    func vdsoCall()
    
    func checkgoarm() {
    	// On Android, /proc/self/auxv might be unreadable and hwcap won't
    	// reflect the CPU capabilities. Assume that every Android arm device
    	// has the necessary floating point hardware available.
    	if GOOS == "android" {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/runtime/debug_test.go

    func skipUnderDebugger(t *testing.T) {
    	pid := syscall.Getpid()
    	status, err := os.ReadFile(fmt.Sprintf("/proc/%d/status", pid))
    	if err != nil {
    		t.Logf("couldn't get proc tracer: %s", err)
    		return
    	}
    	re := regexp.MustCompile(`TracerPid:\s+([0-9]+)`)
    	sub := re.FindSubmatch(status)
    	if sub == nil {
    		t.Logf("couldn't find proc tracer PID")
    		return
    	}
    	if string(sub[1]) == "0" {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top