Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 325 for proc (0.04 sec)

  1. pkg/util/procfs/procfs_linux.go

    			pid, err := strconv.Atoi(entry.Name())
    			if err != nil {
    				continue
    			}
    
    			cmdline, err := os.ReadFile(filepath.Join("/proc", entry.Name(), "cmdline"))
    			if err != nil {
    				klog.V(4).Infof("Error reading file %s: %+v", filepath.Join("/proc", entry.Name(), "cmdline"), err)
    				continue
    			}
    
    			// The bytes we read have '\0' as a separator for the command line
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. pkg/util/oom/oom_linux.go

    	return oomAdjuster
    }
    
    func getPids(cgroupName string) ([]int, error) {
    	return cmutil.GetPids(filepath.Join("/", cgroupName))
    }
    
    // Writes 'value' to /proc/<pid>/oom_score_adj. PID = 0 means self
    // Returns os.ErrNotExist if the `pid` does not exist.
    func applyOOMScoreAdj(pid int, oomScoreAdj int) error {
    	if pid < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprog/syscall_windows.go

    	register("StackMemory", StackMemory)
    }
    
    func RaiseException() {
    	const EXCEPTION_NONCONTINUABLE = 1
    	mod := syscall.MustLoadDLL("kernel32.dll")
    	proc := mod.MustFindProc("RaiseException")
    	proc.Call(0xbad, EXCEPTION_NONCONTINUABLE, 0, 0)
    	println("RaiseException should not return")
    }
    
    func ZeroDivisionException() {
    	x := 1
    	y := 0
    	z := x / y
    	println(z)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/fds_test.go

    		if strings.HasPrefix(e, "GODEBUG=") || strings.HasPrefix(e, "GOTRACEBACK=") {
    			continue
    		}
    		env = append(env, e)
    	}
    
    	proc, err := os.StartProcess(fdsBin, []string{fdsBin}, &os.ProcAttr{
    		Env:   env,
    		Files: []*os.File{},
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	ps, err := proc.Wait()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if ps.ExitCode() != 0 {
    		t.Fatalf("testfds failed: %d", ps.ExitCode())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/sys/cpu/hwcap_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cpu
    
    import (
    	"os"
    )
    
    const (
    	_AT_HWCAP  = 16
    	_AT_HWCAP2 = 26
    
    	procAuxv = "/proc/self/auxv"
    
    	uintSize = int(32 << (^uint(0) >> 63))
    )
    
    // For those platforms don't have a 'cpuid' equivalent we use HWCAP/HWCAP2
    // These are initialized in cpu_$GOARCH.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. src/os/exec_unix_test.go

    	if err != nil {
    		t.Skipf("starting test process: %v", err)
    	}
    	defer p.Kill()
    
    	proc, err := FindProcess(p.Pid)
    	if err != nil {
    		t.Errorf("OS reported error for running process: %v", err)
    	}
    	err = proc.Signal(syscall.Signal(0))
    	if err != nil {
    		t.Errorf("OS reported error for running process: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. pkg/util/kernel/version_test.go

    		},
    		{
    			name: "failed to read os-release file",
    			readFileFunc: func(_ string) ([]byte, error) {
    				return nil, errors.New("open /proc/sys/kernel/osrelease: failed to read file")
    			},
    			err:      errors.New("failed to read os-release file: open /proc/sys/kernel/osrelease: failed to read file"),
    			expected: nil,
    		},
    		{
    			name: "version not parsable",
    			readFileFunc: func(_ string) ([]byte, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. pkg/volume/util/fsquota/common/quota_common_linux.go

    // FirstQuota is the quota ID we start with.
    // XXXXXXX Need a better way of doing this...
    var FirstQuota QuotaID = 1048577
    
    // MountsFile is the location of the system mount data
    var MountsFile = "/proc/self/mounts"
    
    // MountParseRegexp parses out /proc/sys/self/mounts
    var MountParseRegexp = regexp.MustCompilePOSIX("^([^ ]*)[ \t]*([^ ]*)[ \t]*([^ ]*)") // Ignore options etc.
    
    // LinuxVolumeQuotaProvider returns an appropriate quota applier
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/assembler/groovy/src/main/asm_i386_masm/sum.s

        .386
        .model    flat
    
    PUBLIC    _sum
    _TEXT     SEGMENT
    _sum    PROC
        mov    eax, DWORD PTR 4[esp]
        add    eax, DWORD PTR 8[esp]
        ret    0
    _sum    ENDP
    _TEXT   ENDS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 184 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprog/syscalls_linux.go

    )
    
    func gettid() int {
    	return syscall.Gettid()
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	// Open the magic proc status file for reading with the syscall package.
    	// We want to identify certain valid errors very precisely.
    	statusFile := fmt.Sprintf("/proc/self/task/%d/status", tid)
    	fd, err := syscall.Open(statusFile, syscall.O_RDONLY, 0)
    	if errno, ok := err.(syscall.Errno); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top