The NetBSD Project

CVS log for src/usr.sbin/cpuctl/cpuctl.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / cpuctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 1 10:45:02 2022 UTC (11 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.31: +10 -7 lines
Diff to previous 1.31 (colored)

allow "cpuN" as well as "N" to specific a CPU.

update usage to include a change i made from 2015 to allow multiple
CPUs to be operated on at the same time for most commands.

Revision 1.28.8.2 / (download) - annotate - [select for diffs], Wed Aug 5 15:48:53 2020 UTC (2 years, 5 months ago) by martin
Branch: netbsd-8
Changes since 1.28.8.1: +3 -2 lines
Diff to previous 1.28.8.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1585:

	usr.sbin/cpuctl/Makefile			1.9
	usr.sbin/cpuctl/arch/cpuctl_i386.h		1.5
	usr.sbin/cpuctl/arch/i386.c			1.111-1.113 via patch
	usr.sbin/cpuctl/cpuctl.c			1.31
	usr.sbin/cpuctl/cpuctl.h			1.7
	sys/arch/x86/x86/identcpu_subr.c		1.1-1.7

- Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel
  processors.
- Add 0xa5 and 0xa6 for Comet Lake.
- Rename ci_cpuid_level to ci_max_cpuid and ci_cpuid_extlevel to
  ci_max_ext_cpuid to match x86/include/cpu.h. No functional change.
- Sort some entries.
- Add comment.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Fri Jul 10 11:20:29 2020 UTC (2 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Pull up the following revisions (all via patch) requested by msaitoh in
ticket #995:

	usr.sbin/cpuctl/Makefile			1.9
	usr.sbin/cpuctl/arch/cpuctl_i386.h		1.5
	usr.sbin/cpuctl/arch/i386.c			1.111-1.113
	usr.sbin/cpuctl/cpuctl.c			1.31
	usr.sbin/cpuctl/cpuctl.h			1.7
	sys/arch/x86/x86/identcpu_subr.c		1.1-1.7

- Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel
  processors.
- Add 0xa5 and 0xa6 for Comet Lake.
- Rename ci_cpuid_level to ci_max_cpuid and ci_cpuid_extlevel to
  ci_max_ext_cpuid to match x86/include/cpu.h. No functional change.
- Sort some entries.
- Add comment.

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:47 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.29.4.1: +3 -2 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Sync with HEAD

Revision 1.31 / (download) - annotate - [select for diffs], Tue Apr 21 02:56:37 2020 UTC (2 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored)

Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel processors.

 - If the max CPUID leaf is >= 0x15, take TSC value from CPUID. Some processors
   can take TSC/core crystal clock ratio but core crystal clock frequency
   can't be taken. Intel SDM give us the values for some processors.
 - It also required to change lapic_per_second to make LAPIC timer correctly.
 - Add new file x86/x86/identcpu_subr.c to share common subroutines between
   kernel and userland. Some code in x86/x86/identcpu.c and cpuctl/arch/i386.c
   will be moved to this file in future.
 - Add comment to clarify.

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:29 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.29: +6 -4 lines
Diff to previous 1.29 (colored)

Sync with HEAD

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Sun May 12 09:21:12 2019 UTC (3 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored)

Pull up following revision(s) (requested by maxv in ticket #1260):

	common/lib/libc/sys/cpuset.c: revision 1.21
	usr.sbin/cpuctl/cpuctl.c: revision 1.30

Fix bug, the computation of cpuset_nentries was incorrect, we must do +1
to be able to address the last 32 bits.

On a machine with 80 CPUs, this caused "cpuctl identify >64" to return
garbage.

Check the return value of cpuset_set(), to prevent future surprises.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 11 11:59:21 2019 UTC (3 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: netbsd-9
Changes since 1.29: +6 -4 lines
Diff to previous 1.29 (colored)

Check the return value of cpuset_set(), to prevent future surprises.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jan 16 08:23:18 2018 UTC (5 years ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat
Branch point for: phil-wifi
Changes since 1.28: +3 -4 lines
Diff to previous 1.28 (colored)

implement cpuctl identify for sparc and sparc64.

sparc:
- move enum vactype and struct cacheinfo into cpu.h
- move the cache flags from cpuinfo.flags into CACHEINFO.c_flags
  (this allows the new cache_printf_backend() to see them.)
  remove unused CPUFLG_CACHEIOMMUTABLES and CPUFLG_CACHEDVMA.
- align xmpsg to 64 bytes
- move cache_print() into cache_print.h so it can be shared with
  cpuctl.  it only depends upon a working printf().
- if found, store the CPU node's "name" into cpu_longname.  this
  changes the default output to show the local CPU not the
  generic CPU family.  eg:
  cpu0 at mainbus0: mid 8: Ross,RT625 @ 90 MHz, on-chip FPU
  vs the generic "RT620/625" previously shown.
- for each CPU export these things:
  - name
  - fpuname
  - mid
  - cloc
  - freq
  - psr impl and version
  - mmu impl, version, and number of contexts
  - cacheinfo structure (which changed for the first time ever
    with this commit.)

sparc64:
- add a minimal "cacheinfo" structure to export the i/d/e-cache
  size and linesize.
- store %ver, cpu node "name" and cacheinfo in cpu_info.
- set cpu_info ver, name and cacheinfo in cpu_attach(), and
  export them via sysctl, as well as CPU ID and clock freq

cpuctl:
- add identifycpu_bind() that returns false on !x86 as their
  identify routines do not need to run on a particular CPU to
  obtain its information, and use it to avoid trying to set
  affinity when not needed.
- add sparc and sparc64 cpu identify support using the newly
  exported values.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 16 03:34:50 2015 UTC (7 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.27: +59 -49 lines
Diff to previous 1.27 (colored)

allow most commands to specify more than one cpu.  now you can online or
offline (or identify, or intr/nointr) a list of cpus all together.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 16 02:04:32 2015 UTC (7 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.26: +10 -10 lines
Diff to previous 1.26 (colored)

convert getcpuid() to take char* not char**

Revision 1.26 / (download) - annotate - [select for diffs], Mon Nov 16 02:02:41 2015 UTC (7 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.25: +13 -12 lines
Diff to previous 1.25 (colored)

use stdbool.h

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Fri Jan 16 08:30:50 2015 UTC (8 years ago) by snj
Branch: netbsd-6
Changes since 1.20: +20 -8 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1230):
	usr.sbin/cpuctl/cpuctl.8: revisions 1.9-1.12
	usr.sbin/cpuctl/cpuctl.c: revisions 1.22-1.23 and 1.25 via patch
	usr.sbin/cpuctl/cpuctl.h: revision 1.5 via patch
	usr.sbin/cpuctl/arch/cpuctl_i386.h: revisions 1.1-1.2
	usr.sbin/cpuctl/arch/i386-asm.S: revisions 1.2-1.3
	usr.sbin/cpuctl/arch/i386.c: revisions 1.34, 1.36-1.49, 1.51-1.63 via patch
	usr.sbin/cpuctl/arch/x86_64-asm.S: revisions 1.3-1.4
Update cpuctl(8). Microcode and ARM related changes are not included:
- Change the i386 asm x86_identify() so it returns a value instead of
  writing into global data. Fix a stack alignment fubar that would
  cause a crash on a cirix 486. Refactor identify code to common setup
  for normal identify and ucode identify - which was missing a
  memset().
- The Intel and AMD docs (more or less) agree on how the cpuid
  'extended family' and 'extended model' bits are used to create
  larger values than the original 16bit value allowed for.
  Calculate and save these values 'up-front' and use them throughout.
  Untangle the (backwards) nested switch statement for amd 'model 15'
  cpus.
- Use full model number to index name strings - a lot of 256 element
  arrays don't matter in usespace.
- Add support for the xsave related data from cpuid 8.n.
  Reorder the output so that the 'brand' string - which actually
  identifies the cpu is output first.
- Only complain about binding if we have more than 1 cpu.
- Check cpuid leaf 4 for newer Intel CPU to know the cache information.
- Support prefetch size.
- Print the highest extended info level as the basic info level.
- Update URL of AMD's web page.
- Add code to detect hypervisor. The code was based from FreeBSD and
  ported by Kengo Nakahara.
- Add verbose flag.
- Add newline if ci_tsc_freq is 0 to not to break the output.
- Update Intel's processor family names and models.
- Print some more bits.
- Add shared TLB
- Add prototypes.
- Add comments.
- Make some functions static.
- Sort functions.
- KNF.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Sun Dec 21 19:28:38 2014 UTC (8 years, 1 month ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #336):
	usr.sbin/cpuctl/cpuctl.c: revision 1.25
Fix a bug that an unknown command is printed as "(null)".
Reported by Fredrik Pettai.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 16 04:07:40 2014 UTC (8 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Fix a bug that an unknown command is printed as "(null)".
Reported by Fredrik Pettai.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Nov 20 12:49:13 2014 UTC (8 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

 Fix manual and usage bug. The ucode command can take [cpuno] argument.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:07 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.21.2.1: +18 -6 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:43:02 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.19.2.2: +19 -7 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 23 12:35:33 2013 UTC (9 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.22: +18 -6 lines
Diff to previous 1.22 (colored)

Add verbose flag.
On x86 cpu, cpuctl -v identify dumps the return values of the cpuid
functions. The max levels are taken from CPUID 0 and CPUID 8000_0000.
It's useful for the future CPU.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:42 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

resync with head

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 31 19:47:59 2013 UTC (10 years ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Only complain about binding if we have more than 1 cpu. :)
(we always have more than 0).

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:31 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.19.2.1: +29 -15 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

sync with head

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 29 17:13:22 2012 UTC (10 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.20: +29 -15 lines
Diff to previous 1.20 (colored)

Extend the CPU microcode update framework to support Intel x86 CPUs.
Contrary to the AMD implementation, it doesn't use xcalls to distribute
the update to all CPUs but relies on cpuctl(8) to bind itself to the
right CPU -- to keep it simple and avoid possible problems with
hyperthreading.
Also, it doesn't parse the vendor supplied file to pick the right
part for the present CPU model but relies on userland to prepare
files with specific filenames. I'll commit a pkg for this in a minute
(pkgsrc/sysutils/intel-microcode).
The ioctl interface changed; compatibility is provided (should be
limited to COMPAT_NETBSD6 as soon as this is available).

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:45 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.19: +55 -13 lines
Diff to previous 1.19 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 13 16:05:16 2012 UTC (11 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6
Changes since 1.19: +55 -13 lines
Diff to previous 1.19 (colored)

Support CPU microcode loading via cpuctl(8).
Implemented and enabled via CPU_UCODE kernel config option
for x86 and Xen Dom0.
Tested on different AMD machines with different
CPU families.

ok wiz@ for the manpages
ok releng@
ok core@ via releng@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 27 11:24:21 2011 UTC (11 years, 4 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

Define _PATH_CPUCTL.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 26 06:51:57 2011 UTC (11 years, 4 months ago) by jruoho
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Fix wrong err(3) message (no such thing as IOC_CPU_GETINFO).

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 11 14:54:49 2011 UTC (11 years, 4 months ago) by jdc
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Add a cs_hwid field to cpustate and use this to store the ci_cpuid (hardware
ID).  Report this as the HwID in cpuctl.
OK jruoho@.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 27 22:38:48 2011 UTC (11 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.15: +21 -22 lines
Diff to previous 1.15 (colored)

static + __dead

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:20 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.13: +56 -8 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 23 01:36:56 2009 UTC (13 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Fix -Wsign-compare issue

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 19 14:11:38 2009 UTC (13 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.13: +55 -7 lines
Diff to previous 1.13 (colored)

cpuctl:

- Add interrupt shielding (direct hardware interrupts away from the
  specified CPUs). Not documented just yet but will be soon.

- Redo /dev/cpu time_t compat so no kernel changes are needed.

x86:

- Make intr_establish, intr_disestablish safe to use when !cold.

- Distribute hardware interrupts among the CPUs, instead of directing
  everything to the boot CPU.

- Add MD code for interrupt sheilding. This works in most cases but there is
  a bug where delivery is not accepted by an LAPIC after redistribution. It
  also needs re-balancing to make things fair after interrupts are turned
  back on for a CPU.

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Fri Feb 6 01:10:26 2009 UTC (13 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.10.2.2: +4 -4 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Pull up following revision(s) (requested by rmind in ticket #409):
	usr.sbin/cpuctl/cpuctl.c: revision 1.13
cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 28 22:37:09 2009 UTC (14 years ago) by ad
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Sat Nov 22 16:33:27 2008 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC1
Changes since 1.10.2.1: +10 -8 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored)

Pull up following revision(s) (requested by cegger in ticket #105):
	usr.sbin/cpuctl/cpuctl.c: revision 1.12
redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Sat Nov 22 16:32:24 2008 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.10: +8 -4 lines
Diff to previous 1.10 (colored)

Pull up following revision(s) (requested by cegger in ticket #105):
	usr.sbin/cpuctl/cpuctl.c: revision 1.11
cpu_identify: check ID against number of processors.
Fix for PR/39955.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 19 20:56:08 2008 UTC (14 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.11: +10 -8 lines
Diff to previous 1.11 (colored)

redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 19 11:05:40 2008 UTC (14 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.10: +8 -4 lines
Diff to previous 1.10 (colored)

cpu_identify: check ID against number of processors.
Fix for PR/39955.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 15 08:22:06 2008 UTC (14 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Cosmetic change to previous.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 15 08:08:30 2008 UTC (14 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.8: +2 -5 lines
Diff to previous 1.8 (colored)

Don't map cpu index to hardware id.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:12 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.5: +11 -9 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:22 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.3.2.1: +8 -6 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 16 01:41:21 2008 UTC (14 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.7: +8 -8 lines
Diff to previous 1.7 (colored)

- Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 16 00:33:24 2008 UTC (14 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.6: +7 -5 lines
Diff to previous 1.6 (colored)

Sync with the latest cpuset changes.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:14 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.3: +73 -14 lines
Diff to previous 1.3 (colored)

sync with head.

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 12 14:16:04 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

Clarify output of 'id' column.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 5 17:54:14 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.4: +70 -4 lines
Diff to previous 1.4 (colored)

PR port-amd64/37461 x86 cpu dmesg output is noisy

Port identifycpu() to userspace. The kernel lies and reports on cpuN while
actually using the values from cpu0, but this attempts to bind itself to the
requested CPU if running as root. That doesn't work properly yet due to
kern/38588, but will do once that's fixed.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:15 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.3: +2 -9 lines
Diff to previous 1.3 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 25 15:06:02 2008 UTC (14 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.2: +12 -10 lines
Diff to previous 1.2 (colored)

Use cpu index instead of ID for cpuctl; extend listing to provide both
numbers (but now the ID is only informational).

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:50:06 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.1: +6 -4 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

sync with HEAD

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 9 00:01:33 2008 UTC (15 years ago) by tnn
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Changes since 1.1: +6 -4 lines
Diff to previous 1.1 (colored)

improve usage()

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Sat Aug 4 11:03:06 2007 UTC (15 years, 5 months ago) by ad
Branch: matt-mips64
Changes since 1.1.6.1: +188 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.

Revision 1.1.6.1, Sat Aug 4 11:03:05 2007 UTC (15 years, 5 months ago) by ad
Branch: matt-mips64
Changes since 1.1: +0 -188 lines
FILE REMOVED

file cpuctl.c was added on branch matt-mips64 on 2007-08-04 11:03:06 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 4 11:03:05 2007 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-base, cube-autoconf-base, cube-autoconf
Branch point for: matt-mips64, matt-armv6

Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>