Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 280 for proc (0.17 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. src/runtime/syscall_windows_test.go

    		t.Fatal(e)
    	}
    	return &DLL{DLL: d, t: t}
    }
    
    func (d *DLL) Proc(name string) *syscall.Proc {
    	p, e := d.FindProc(name)
    	if e != nil {
    		d.t.Fatal(e)
    	}
    	return p
    }
    
    func TestStdCall(t *testing.T) {
    	type Rect struct {
    		left, top, right, bottom int32
    	}
    	res := Rect{}
    	expected := Rect{1, 1, 40, 60}
    	a, _, _ := GetDLL(t, "user32.dll").Proc("UnionRect").Call(
    		uintptr(unsafe.Pointer(&res)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. subprojects/core/src/integTest/groovy/org/gradle/process/internal/WorkerProcessIntegrationTest.groovy

                builder.javaCommand.jvmArgs(jvmArgs)
    
                proc = builder.build()
                try {
                    proc.start()
                    assertFalse(startFails)
                } catch (ExecException e) {
                    if (!startFails) {
                        throw new AssertionError(e)
                    }
                    return
                }
                proc.connection.addIncoming(TestListenerInterface.class, exceptionListener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. pkg/volume/util/hostutil/hostutil_linux.go

    	"github.com/opencontainers/selinux/go-selinux"
    	"golang.org/x/sys/unix"
    	"k8s.io/klog/v2"
    	"k8s.io/mount-utils"
    	utilpath "k8s.io/utils/path"
    )
    
    const (
    	// Location of the mountinfo file
    	procMountInfoPath = "/proc/self/mountinfo"
    )
    
    // HostUtil implements HostUtils for Linux platforms.
    type HostUtil struct {
    }
    
    // NewHostUtil returns a struct that implements the HostUtils interface on
    // linux platforms
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
Back to top