Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 888 for proc (0.04 sec)

  1. src/syscall/dll_windows.go

    		if p.proc == nil {
    			e := p.l.Load()
    			if e != nil {
    				return e
    			}
    			proc, e := p.l.dll.FindProc(p.Name)
    			if e != nil {
    				return e
    			}
    			// Non-racy version of:
    			// p.proc = proc
    			atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&p.proc)), unsafe.Pointer(proc))
    		}
    	}
    	return nil
    }
    
    // mustFind is like Find but panics if search fails.
    func (p *LazyProc) mustFind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. pkg/securitycontext/util.go

    	defaultMaskedPaths = []string{
    		"/proc/asound",
    		"/proc/acpi",
    		"/proc/kcore",
    		"/proc/keys",
    		"/proc/latency_stats",
    		"/proc/timer_list",
    		"/proc/timer_stats",
    		"/proc/sched_debug",
    		"/proc/scsi",
    		"/sys/firmware",
    	}
    	defaultReadonlyPaths = []string{
    		"/proc/bus",
    		"/proc/fs",
    		"/proc/irq",
    		"/proc/sys",
    		"/proc/sysrq-trigger",
    	}
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 15 07:28:24 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/dll_windows.go

    		if p.proc == nil {
    			e := p.l.Load()
    			if e != nil {
    				return e
    			}
    			proc, e := p.l.dll.FindProc(p.Name)
    			if e != nil {
    				return e
    			}
    			// Non-racy version of:
    			// p.proc = proc
    			atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&p.proc)), unsafe.Pointer(proc))
    		}
    	}
    	return nil
    }
    
    // mustFind is like Find but panics if search fails.
    func (p *LazyProc) mustFind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 05 12:36:42 UTC 2020
    - 12K bytes
    - Viewed (0)
  4. src/cmd/trace/threadgen.go

    		}
    	}
    
    	type procArg struct {
    		Proc uint64 `json:"proc,omitempty"`
    	}
    	st := ev.StateTransition()
    	viewerEv := traceviewer.InstantEvent{
    		Resource: uint64(ev.Thread()),
    		Stack:    ctx.Stack(viewerFrames(ev.Stack())),
    		Arg:      procArg{Proc: uint64(st.Resource.Proc())},
    	}
    
    	from, to := st.Proc()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/syscall/exec_unix_test.go

    	c.pipe.Close()
    	if err := c.proc.Wait(); err != nil {
    		c.test.Fatal(err)
    	}
    }
    
    func create(t *testing.T) *command {
    	testenv.MustHaveExec(t)
    
    	proc := exec.Command("cat")
    	stdin, err := proc.StdinPipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	return &command{stdin, proc, t}
    }
    
    func parent() (pid, pgrp int) {
    	return syscall.Getpid(), syscall.Getpgrp()
    }
    
    func TestZeroSysProcAttr(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/AnnotationProcessingCompileTaskTest.groovy

        @Issue("gradle/gradle#8996")
        def "stacktrace contains root cause"() {
            given:
            def proc = new AnnotationProcessorDeclaration(processorClassName, IncrementalAnnotationProcessorType.UNKNOWN)
            def processTask = createProcessingTask(proc)
    
            when:
            processTask.call()
    
            then:
            def e = thrown(Throwable)
            def root = Throwables.getRootCause(e)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. src/internal/trace/resources.go

    	return "Bad"
    }
    
    // ProcState represents the state of a proc.
    //
    // New ProcStates may be added in the future. Users of this type must be robust
    // to that possibility.
    type ProcState uint8
    
    const (
    	ProcUndetermined ProcState = iota // No information is known about the proc.
    	ProcNotExist                      // Proc does not exist.
    	ProcRunning                       // Proc is running.
    	ProcIdle                          // Proc is idle.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/crypto/x509/pem_decrypt_test.go

    		}
    		if block.Type != "RSA PRIVATE KEY" {
    			t.Errorf("unexpected block type; got %q want %q", block.Type, "RSA PRIVATE KEY")
    		}
    		if block.Headers["Proc-Type"] != "4,ENCRYPTED" {
    			t.Errorf("block does not have correct Proc-Type header")
    		}
    		der, err := DecryptPEMBlock(block, password)
    		if err != nil {
    			t.Error("decrypt: ", err)
    			continue
    		}
    		if !bytes.Equal(der, plainDER) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 20:03:55 UTC 2019
    - 8.9K bytes
    - Viewed (0)
  9. src/cmd/trace/jsontrace_test.go

    	procStarted := map[uint64]bool{}
    	for _, e := range data.Events {
    		if e.Name == "proc start" {
    			if procStarted[e.TID] == true {
    				t.Errorf("proc started twice: %d", e.TID)
    			}
    			procStarted[e.TID] = true
    		}
    		if e.Name == "proc stop" {
    			if procStarted[e.TID] == false {
    				t.Errorf("proc stopped twice: %d", e.TID)
    			}
    			procStarted[e.TID] = false
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemInfoOsMemoryInfo.java

    public class MemInfoOsMemoryInfo implements OsMemoryInfo {
        // /proc/meminfo is in kB since Linux 4.0, see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/proc/task_mmu.c?id=39a8804455fb23f09157341d3ba7db6d7ae6ee76#n22
        private static final Pattern MEMINFO_LINE_PATTERN = Pattern.compile("^\\D+(\\d+) kB$");
        private static final String MEMINFO_FILE_PATH = "/proc/meminfo";
    
        private final Matcher meminfoMatcher;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top