Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readLinuxProcCPUInfo (0.13 sec)

  1. src/internal/sysinfo/cpuinfo_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package sysinfo
    
    import (
    	"bufio"
    	"bytes"
    	"io"
    	"os"
    	"strings"
    )
    
    func readLinuxProcCPUInfo(buf []byte) error {
    	f, err := os.Open("/proc/cpuinfo")
    	if err != nil {
    		return err
    	}
    	defer f.Close()
    
    	_, err = io.ReadFull(f, buf)
    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:42:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go

    // license that can be found in the LICENSE file.
    
    //go:build linux && arm64
    
    package cpu
    
    import (
    	"errors"
    	"io"
    	"os"
    	"strings"
    )
    
    func readLinuxProcCPUInfo() error {
    	f, err := os.Open("/proc/cpuinfo")
    	if err != nil {
    		return err
    	}
    	defer f.Close()
    
    	var buf [1 << 10]byte // enough for first CPU
    	n, err := io.ReadFull(f, buf[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go

    		// cause a SIGILL and we'll die. So for older kernels, parse /proc/cpuinfo
    		// instead.
    		//
    		// See golang/go#57336.
    		if linuxKernelCanEmulateCPUID() {
    			readARM64Registers()
    		} else {
    			readLinuxProcCPUInfo()
    		}
    		return
    	}
    
    	// HWCAP feature bits
    	ARM64.HasFP = isSet(hwCap, hwcap_FP)
    	ARM64.HasASIMD = isSet(hwCap, hwcap_ASIMD)
    	ARM64.HasEVTSTRM = isSet(hwCap, hwcap_EVTSTRM)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top