The NetBSD Project

CVS log for src/common/lib/libc/sys/cpuset.c

[BACK] Up to [cvs.NetBSD.org] / src / common / lib / libc / sys

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.19.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 19:37:51 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.19.4.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.4.2: +2 -2 lines
Ooops, restore accidently removed files from merge mishap

Revision 1.19.4.2
Tue Apr 21 18:41:24 2020 UTC (5 years ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.19.4.1: +2 -2 lines
Sync with HEAD

Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 21:41:07 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -6 lines
Sync with HEAD

Revision 1.18.26.1: download - view: text, markup, annotated - select for diffs
Sun May 12 09:21:12 2019 UTC (5 years, 11 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +3 -3 lines
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.21: download - view: text, markup, annotated - select for diffs
Sat May 11 11:53:55 2019 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base, ad-namecache, HEAD
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
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.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:32:57 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +5 -5 lines
Sync with HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Jul 26 00:13:19 2018 UTC (6 years, 8 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -5 lines
Avoid undefined behavior in an cpuset.c

Do not change the signedness bit with a left shift operation.
Switch to unsigned integer to prevent this.

cpuset.c:112:18, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with micro-UBSan in the user mode.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Jan 4 20:57:28 2018 UTC (7 years, 3 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, 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
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -2 lines
Add bunch of missing includes of namespace.h in libc

The NetBSD Standard C Library uses internally some of its functions with
a mangled symbol name, usually "_symbol". The internal functions shall not
use the global (public) symbols.

This change eliminates usage of the global changes of the following symbols:
 - strlcat -> _strlcat
 - sysconf -> __sysconf
 - closedir -> _closedir
 - fparseln -> _fparseln
 - kill -> _kill
 - mkstemp -> _mkstemp
 - reallocarr -> _reallocarr
 - strcasecmp -> _strcasecmp
 - strncasecmp -> _strncasecmp
 - strptime -> _strptime
 - strtok_r -> _strtok_r
 - sysctl -> _sysctl
 - dlopen -> __dlopen
 - dlclose -> __dlclose
 - dlsym -> __dlsym

Sponsored by <The NetBSD Foundation>

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 20 14:02:51 2013 UTC (11 years, 6 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -2 lines
Pull up following revision(s) (requested by dholland in ticket #1883):
	common/lib/libc/sys/cpuset.c: revision 1.16
_cpuset_create: initialize size argument for sysctl call.
From PR/43837 by Sandy Snaman.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:01:40 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +7 -6 lines
sync with head

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Mar 9 15:41:16 2012 UTC (13 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys-20171202, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, khorben-n900, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: netbsd-8
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -6 lines
Casts and type changes to fix portability issues.
- int -> size_t
- adjust width of RHS of shift
- adjust widths of types

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Aug 7 13:33:02 2011 UTC (13 years, 8 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -161 lines
Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel.
Suitable for use during the early boot.  MD and other implementations
should be replaced with this interface.

Discussed on: tech-kern@

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Sep 21 02:03:29 2010 UTC (14 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
_cpuset_create: initialize size argument for sysctl call.
From PR/43837 by Sandy Snaman.

Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:17 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +69 -16 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Apr 25 19:38:25 2009 UTC (16 years ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base10, rmind-uvmplock-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +14 -3 lines
- Add kcpuset_iszero().
- Fix kcpuset_match().

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Mar 15 20:08:43 2009 UTC (16 years, 1 month ago) by rmind
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +47 -5 lines
- Add kcpuset_fill(), kcpuset_set() and kcpuset_match().
- KNF while here.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 14 19:23:18 2009 UTC (16 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +13 -13 lines
make this work with pcc. The previous construct is not valid c99.

Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:54:18 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.10.2.3: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.3: +13 -11 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jul 27 05:47:56 2008 UTC (16 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, 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-RC1, 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, matt-mips64-base2
Branch point for: netbsd-5, jym-xensuspend
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -9 lines
Don't convert cpuid_t through int while testing it for being in range.
(Might truncate it, for one thing. Also, if the shift result is < 0 the
demons have already flown out of our nose.)

Fixes some -Wsign-compare warnings.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 14 01:07:39 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -3 lines
Add few KASSERTs.

Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 24 06:05:40 2008 UTC (16 years, 10 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.10.2.2: preferred, colored
Changes since revision 1.10.2.2: +132 -57 lines
Actually use the version in wrstuden-revivesa-base-1. Compiles better.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 24 04:47:49 2008 UTC (16 years, 10 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.10.2.1: preferred, colored
Changes since revision 1.10.2.1: +179 -0 lines
Add file missed in merge. Patch will add files, but won't make
new directories.

Revision 1.10.2.1
Sun Jun 22 21:49:31 2008 UTC (16 years, 10 months ago) by wrstuden
Branches: wrstuden-revivesa
FILE REMOVED
Changes since revision 1.10: +0 -254 lines
file cpuset.c was added on branch wrstuden-revivesa on 2008-06-24 04:47:49 +0000

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Jun 22 21:49:31 2008 UTC (16 years, 10 months ago) by he
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
Be consistent in how cpuset_nentries is computed in the kernel and
in user-land.  This fixes the user-land part.  Now "cpuctl identify 0"
gives a result instead of getting EINVAL from the set-affinity syscall.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 22 03:24:31 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -4 lines
kcpuset_isset: remove if-check.  It is not reasonable for kernel,
saves few cycles, and it is better for CPU cache.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jun 22 00:05:09 2008 UTC (16 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +125 -60 lines
Separate cpuset and kcpuset, and only use the bits in userland. Requested
by yamt

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:13:31 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +191 -0 lines
sync with head.

Revision 1.7.2.1
Mon Jun 16 13:02:08 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-pf42
FILE REMOVED
Changes since revision 1.7: +0 -191 lines
file cpuset.c was added on branch yamt-pf42 on 2008-06-17 09:13:31 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jun 16 13:02:08 2008 UTC (16 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-base4
Branch point for: yamt-pf42
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
We don't need any of this in standalone mode.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jun 16 02:53:32 2008 UTC (16 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
little more lint

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jun 16 02:30:03 2008 UTC (16 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
make lint happy

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jun 16 01:41:21 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -9 lines
- 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.3: download - view: text, markup, annotated - select for diffs
Sun Jun 15 23:45:51 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -5 lines
cpuset_create: check the return value of calloc().

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jun 15 23:41:39 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +13 -6 lines
- cpuset_create: pass correct argument to sysctl(3).
- Constify few variables.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jun 15 20:33:50 2008 UTC (16 years, 10 months ago) by christos
Branches: MAIN
cpuset related functions, shared between the kernel and userland.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>