Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 170 for proc (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/encoding/pem/pem.go

    		return err
    	}
    
    	if len(b.Headers) > 0 {
    		const procType = "Proc-Type"
    		h := make([]string, 0, len(b.Headers))
    		hasProcType := false
    		for k := range b.Headers {
    			if k == procType {
    				hasProcType = true
    				continue
    			}
    			h = append(h, k)
    		}
    		// The Proc-Type header must be written first.
    		// See RFC 1421, section 4.6.1.1
    		if hasProcType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/os/exec_plan9.go

    	if e != nil {
    		return nil, &PathError{Op: "fork/exec", Path: name, Err: e}
    	}
    
    	return newPIDProcess(pid), nil
    }
    
    func (p *Process) writeProcFile(file string, data string) error {
    	f, e := OpenFile("/proc/"+itoa.Itoa(p.Pid)+"/"+file, O_WRONLY, 0)
    	if e != nil {
    		return e
    	}
    	defer f.Close()
    	_, e = f.Write([]byte(data))
    	return e
    }
    
    func (p *Process) signal(sig Signal) error {
    	switch p.pidStatus() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/os/pidfd_linux.go

    // execution environment in which the above system calls are restricted by
    // seccomp or a similar technology.
    func checkPidfd() error {
    	// Get a pidfd of the current process (opening of "/proc/self" won't
    	// work for waitid).
    	fd, err := unix.PidFDOpen(syscall.Getpid(), 0)
    	if err != nil {
    		return NewSyscallError("pidfd_open", err)
    	}
    	defer syscall.Close(int(fd))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. src/cmd/trace/goroutinegen.go

    }
    
    func (g *goroutineGenerator) ProcRange(ctx *traceContext, ev *trace.Event) {
    	// TODO(mknyszek): Extend procRangeGenerator to support rendering proc ranges
    	// that overlap with a goroutine's execution.
    }
    
    func (g *goroutineGenerator) ProcTransition(ctx *traceContext, ev *trace.Event) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. cmd/kube-proxy/app/conntrack.go

    		logger.Info("Set sysctl", "entry", entry, "value", value)
    		if err := sys.SetSysctl(entry, value); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // isSysFSWritable checks /proc/mounts to see whether sysfs is 'rw' or not.
    func (rct realConntracker) isSysFSWritable(ctx context.Context) (bool, error) {
    	logger := klog.FromContext(ctx)
    	const permWritable = "rw"
    	const sysfsDevice = "sysfs"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/optimizing-performance/file_system_watching.adoc

    File system watching uses one inotify watch per watched directory.
    You can see the current limit of inotify watches per user by running:
    
    [source,bash]
    ----
    cat /proc/sys/fs/inotify/max_user_watches
    ----
    
    To increase the limit to e.g. 512K watches run the following:
    
    [source,bash]
    ----
    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 26 16:37:56 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/server.go

    		return nil, fmt.Errorf("error initializing the host rules for health checks: %w", err)
    	}
    
    	podNetns := NewPodNetnsProcFinder(os.DirFS(filepath.Join(pconstants.HostMountsPath, "proc")))
    	netServer := newNetServer(ztunnelServer, podNsMap, iptablesConfigurator, podNetns, set)
    
    	// Set some defaults
    	s := &Server{
    		ctx:        ctx,
    		kubeClient: client,
    		isReady:    ready,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top