Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 180 for proc (0.15 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. cni/pkg/nodeagent/podcgroupns.go

    	}
    }
    
    type PodNetnsFinder interface {
    	FindNetnsForPods(filter map[types.UID]*corev1.Pod) (PodToNetns, error)
    }
    
    type PodNetnsProcFinder struct {
    	proc fs.FS
    }
    
    func NewPodNetnsProcFinder(proc fs.FS) *PodNetnsProcFinder {
    	return &PodNetnsProcFinder{proc: proc}
    }
    
    func isNotNumber(r rune) bool {
    	return r < '0' || r > '9'
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/internal/trace/event.go

    // starting to run on this thread and/or proc, then this will return
    // NoGoroutine. In this case, the goroutine starting to run will be
    // can be found at Event.StateTransition().Resource.
    func (e Event) Goroutine() GoID {
    	return e.ctx.G
    }
    
    // Proc returns the ID of the proc this event event pertains to.
    //
    // Note that for proc state transitions this always refers to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. src/cmd/trace/gstate.go

    	}
    }
    
    // block indicates that the goroutine has stopped executing on a proc -- specifically,
    // it blocked for some reason.
    func (gs *gState[R]) block(ts trace.Time, stack trace.Stack, reason string, ctx *traceContext) {
    	gs.startBlockReason = reason
    	gs.stop(ts, stack, ctx)
    }
    
    // stop indicates that the goroutine has stopped executing on a proc.
    func (gs *gState[R]) stop(ts trace.Time, stack trace.Stack, ctx *traceContext) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. src/internal/trace/internal/oldtrace/parser.go

    	availableProcs := make([]*proc, len(allProcs))
    	for i := range allProcs {
    		availableProcs[i] = &allProcs[i]
    	}
    	for {
    	pidLoop:
    		for i := 0; i < len(availableProcs); i++ {
    			proc := availableProcs[i]
    
    			for len(proc.events) == 0 {
    				// Call loadBatch in a loop because sometimes batches are empty
    				evs, err := p.loadBatch(proc.pid, proc.buf[:0])
    				proc.buf = evs[:0]
    				if err == io.EOF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  9. src/cmd/trace/gen.go

    			g.ranges[r] = activeRange{ctx.startTime, ev.Stack()}
    		}
    	case trace.EventRangeEnd:
    		// Emit proc-based ranges.
    		ar := g.ranges[r]
    		ctx.Slice(traceviewer.SliceEvent{
    			Name:     r.Name,
    			Ts:       ctx.elapsed(ar.time),
    			Dur:      ev.Time().Sub(ar.time),
    			Resource: uint64(r.Scope.Proc()),
    			Stack:    ctx.Stack(viewerFrames(ar.stack)),
    			EndStack: ctx.Stack(viewerFrames(ev.Stack())),
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/preflight/checks_test.go

    			serviceCidr: "10.96.0.0/16,fda9:d324:354d:1::/112",
    			expStr:      []string{"FileContent--proc-sys-net-ipv4-ip_forward", "FileContent--proc-sys-net-ipv6-conf-default-forwarding"},
    		},
    		{
    			testName:    "single stack ipv4",
    			PodSubnet:   "10.244.0.0/16",
    			serviceCidr: "10.96.0.0/16",
    			expStr:      []string{"FileContent--proc-sys-net-ipv4-ip_forward"},
    		},
    		{
    			testName:    "single stack ipv6",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top