Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 432 for proc (0.04 sec)

  1. 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)
  2. src/internal/trace/testdata/testprog/stress.go

    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	defer trace.Stop()
    
    	procs := runtime.GOMAXPROCS(10)
    	time.Sleep(50 * time.Millisecond) // test proc stop/start events
    
    	go func() {
    		runtime.LockOSThread()
    		for {
    			select {
    			case <-done:
    				return
    			default:
    				runtime.Gosched()
    			}
    		}
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemInfoOsMemoryInfoTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.process.internal.health.memory
    
    import spock.lang.Specification
    
    class MemInfoOsMemoryInfoTest extends Specification {
        def "parses memory from /proc/meminfo on Linux 3.x"() {
            given:
            def snapshot = new MemInfoOsMemoryInfo().getOsSnapshotFromMemInfo(meminfoLinux3())
    
            expect:
            snapshot.physicalMemory.free == 32_343_658_496L
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateAssemblerBaseNamesTestApp.groovy

        }
    
        protected def getAsmSource(String methodName) {
            if (toolChain.isVisualCpp()) {
                return """
    .386
    .model    flat
    
    PUBLIC    _${methodName}
    _TEXT     SEGMENT
    _${methodName}    PROC
    mov    eax, DWORD PTR 4[esp]
    add    eax, DWORD PTR 8[esp]
    ret    0
    _${methodName}    ENDP
    _TEXT   ENDS
    END
    """
            }else{
                return """
    .text
    .globl  _${methodName}
    _${methodName}:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-create-syscall-with-p.go

    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	t.ExpectFailure(".*expected a proc but didn't have one.*")
    
    	g := t.Generation(1)
    
    	// A C thread calls into Go and acquires a P. It returns
    	// back to C, destroying the G. It then comes back to Go
    	// on the same thread and again returns to C.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-fail-first-gen-first.go

    	t.RawEvent(go122.EvEventBatch, nil, 2 /*gen*/, 0 /*thread ID*/, 0 /*timestamp*/, 50 /*batch length (invalid)*/)
    
    	// We should fail at the first issue, not the second one.
    	t.ExpectFailure("expected a proc but didn't have one")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. test/interface/fake.go

    	sys·ifaceeq(0x2aa7c0, 0x0, 0x0, 0x0, 0x2aa7c0, ...)
    main·main+0x190 /Users/rsc/goX/src/cmd/gc/x.go:10
    	main·main()
    mainstart+0xf /Users/rsc/goX/src/runtime/amd64/asm.s:53
    	mainstart()
    sys·Goexit /Users/rsc/goX/src/runtime/proc.c:124
    	sys·Goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.8K bytes
    - Viewed (0)
  8. src/syscall/syscall_windows_test.go

    	h, err := syscall.LoadLibrary("kernel32.dll")
    	if err != nil {
    		abort("LoadLibrary", err)
    	}
    	defer syscall.FreeLibrary(h)
    	proc, err := syscall.GetProcAddress(h, "GetVersion")
    	if err != nil {
    		abort("GetProcAddress", err)
    	}
    	r, _, _ := syscall.Syscall(uintptr(proc), 0, 0, 0, 0)
    	major := byte(r)
    	minor := uint8(r >> 8)
    	build := uint16(r >> 16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:33:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/reset/unmount_linux.go

    	}
    	return res
    }
    
    // unmountKubeletDirectory unmounts all paths that contain KubeletRunDirectory
    func unmountKubeletDirectory(kubeletRunDirectory string, flags []string) error {
    	raw, err := os.ReadFile("/proc/mounts")
    	if err != nil {
    		return err
    	}
    
    	if !strings.HasSuffix(kubeletRunDirectory, "/") {
    		// trailing "/" is needed to ensure that possibly mounted /var/lib/kubelet is skipped
    		kubeletRunDirectory += "/"
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 10:58:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. src/internal/poll/fd_io_plan9.go

    }
    
    // Cancel interrupts the I/O operation, causing
    // the Wait function to return.
    func (aio *asyncIO) Cancel() {
    	aio.mu.Lock()
    	defer aio.mu.Unlock()
    	if aio.pid == -1 {
    		return
    	}
    	f, e := syscall.Open("/proc/"+itoa.Itoa(aio.pid)+"/note", syscall.O_WRONLY)
    	if e != nil {
    		return
    	}
    	syscall.Write(f, []byte("hangup"))
    	syscall.Close(f)
    }
    
    // Wait for the I/O operation to complete.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 14 17:56:50 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top