Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 320 for proc (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/internal/trace/event/requirements.go

    // license that can be found in the LICENSE file.
    
    package event
    
    // SchedReqs is a set of constraints on what the scheduling
    // context must look like.
    type SchedReqs struct {
    	Thread    Constraint
    	Proc      Constraint
    	Goroutine Constraint
    }
    
    // Constraint represents a various presence requirements.
    type Constraint uint8
    
    const (
    	MustNotHave Constraint = iota
    	MayHave
    	MustHave
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 685 bytes
    - Viewed (0)
  5. src/os/executable_procfs.go

    func executable() (string, error) {
    	var procfn string
    	switch runtime.GOOS {
    	default:
    		return "", errors.New("Executable not implemented for " + runtime.GOOS)
    	case "linux", "android":
    		procfn = "/proc/self/exe"
    	case "netbsd":
    		procfn = "/proc/curproc/exe"
    	}
    	path, err := Readlink(procfn)
    
    	// When the executable has been deleted then Readlink returns a
    	// path appended with " (deleted)".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:26:04 UTC 2024
    - 715 bytes
    - Viewed (0)
  6. src/internal/trace/order.go

    		return fmt.Errorf("expected no thread but had one")
    	}
    
    	// Check proc requirements.
    	if reqs.Proc == event.MustHave && ctx.P == NoProc {
    		return fmt.Errorf("expected a proc but didn't have one")
    	} else if reqs.Proc == event.MustNotHave && ctx.P != NoProc {
    		return fmt.Errorf("expected no proc but had one")
    	}
    
    	// Check goroutine requirements.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  7. cluster/log-dump/log-dump.sh

        # take much longer than the others, but it should help.
        proc=$((proc - 1))
        if [[ proc -eq 0 ]]; then
          proc=${max_dump_processes}
          wait
        fi
      done
      # Wait for any remaining processes.
      if [[ proc -gt 0 && proc -lt ${max_dump_processes} ]]; then
        wait
      fi
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 21:15:57 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. src/syscall/exec_linux_test.go

    		}
    		t.Fatal(err)
    	}
    }
    
    func TestUnshare(t *testing.T) {
    	path := "/proc/net/dev"
    	if _, err := os.Stat(path); err != nil {
    		if os.IsNotExist(err) {
    			t.Skip("kernel doesn't support proc filesystem")
    		}
    		if os.IsPermission(err) {
    			t.Skip("unable to test proc filesystem due to permissions")
    		}
    		t.Fatal(err)
    	}
    
    	b, err := os.ReadFile(path)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. 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)
  10. cmd/kubeadm/app/util/runtime/runtime_test.go

    	if runtime.GOOS == "windows" {
    		return
    	}
    
    	const tempPrefix = "test.kubeadm.runtime.isExistingSocket."
    	tests := []struct {
    		name string
    		proc func(*testing.T)
    	}{
    		{
    			name: "Valid domain socket is detected as such",
    			proc: func(t *testing.T) {
    				tmpFile, err := os.CreateTemp("", tempPrefix)
    				if err != nil {
    					t.Fatalf("unexpected error by TempFile: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top