- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 322 for proc (0.52 sec)
-
pkg/kubelet/winstats/perfcounter_nodestats.go
// 2. On Linux node, total physical memory is read from MemTotal in /proc/meminfo. // GlobalMemoryStatusEx returns the amount of physical memory that is available // for the operating system to use. The amount returned by GlobalMemoryStatusEx // is closer in parity with Linux // https://www.kernel.org/doc/Documentation/filesystems/proc.txt var statex MemoryStatusEx statex.Length = uint32(unsafe.Sizeof(statex))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 9.2K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
// Success case, where path doesn't have any mounts. { if err = mounts.checkCrossMounts("/path/to/x"); err != nil { t.Fatalf("Expected success, failed instead (%s)", err) } } } // Tests read proc mounts file. func TestReadProcmountInfos(t *testing.T) { successCase := `/dev/0 /path/to/0 type0 flags 0 0 /dev/1 /path/to/1 type1 flags 1 1 /dev/2 /path/to/2 type2 flags,1,2=3 2 2 ` var err error
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
pkg/util/procfs/procfs_linux_test.go
procCgroupEmpty := "" verifyContainerName(procCgroupEmpty, "", true, t) content, err := os.ReadFile("example_proc_cgroup") if err != nil { t.Errorf("Could not read example /proc cgroup file") } verifyContainerName(string(content), "/user/1000.user/c1.session", false, t) procCgroupNoDevice := "2:freezer:docker/kubelet\n5:cpuacct:pkg/kubectl" verifyContainerName(procCgroupNoDevice, "", true, t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 07:13:28 UTC 2022 - 3.1K bytes - Viewed (0) -
src/syscall/mksyscall_libc.pl
if($dynimports !~ /\s+${sysvarname}\s+/) { $dynimports .= "//go:cgo_import_dynamic ${sysvarname} ${sysname} \"$modname\"\n"; # Link symbol to proc address variable. $linknames .= "//go:linkname ${sysvarname} ${sysvarname}\n"; # Library proc address variable. push @vars, $sysvarname; } # Go function header. $out = join(', ', @out); if($out ne "") { $out = " ($out)"; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 11:28:51 UTC 2023 - 8K bytes - Viewed (0) -
src/runtime/runtime-gdb_unix_test.go
} // Make sure core pattern will send core to the current directory. b, err := os.ReadFile("/proc/sys/kernel/core_pattern") if err != nil { t.Fatalf("error reading core_pattern: %v", err) } if string(b) != "core\n" { t.Skipf("Unexpected core pattern %q", string(b)) } coreUsesPID := false b, err = os.ReadFile("/proc/sys/kernel/core_uses_pid") if err == nil { switch string(bytes.TrimSpace(b)) { case "0":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.4K bytes - Viewed (0) -
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) -
src/runtime/race/output_test.go
.*_cgo_gotypes\.go:[0-9]+ \+0x[0-9,a-f]+ _cgoexp_[0-9a-z]+_goCallback\(\) <autogenerated>:1 \+0x[0-9,a-f]+ Goroutine [0-9] \(running\) created at: runtime\.newextram\(\) .*/runtime/proc.go:[0-9]+ \+0x[0-9,a-f]+ ==================`, `================== WARNING: DATA RACE Read at 0x[0-9,a-f]+ by .*: main\..* .*/main\.go:[0-9]+ \+0x[0-9,a-f]+(?s).*
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 25 20:44:25 UTC 2023 - 9.3K bytes - Viewed (0) -
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) -
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) -
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)