From owner-cvs-all@FreeBSD.ORG Fri Jul 25 17:51:20 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8493A1065685; Fri, 25 Jul 2008 17:51:20 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7D42C8FC0C; Fri, 25 Jul 2008 17:51:20 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m6PHpKcI022215; Fri, 25 Jul 2008 17:51:20 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6PHpKP7022214; Fri, 25 Jul 2008 17:51:20 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200807251751.m6PHpKP7022214@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 25 Jul 2008 17:46:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/lib/libc/sys Makefile.inc Symbol.map cpuset.2 cpuset_getaffinity.2 src/sys/compat/freebsd32 freebsd32_misc.c syscalls.master src/sys/conf files src/sys/kern init_main.c kern_cpuset.c kern_thread.c makesyscalls.sh sched_4bsd.c ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 17:51:20 -0000 jhb 2008-07-25 17:46:01 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) lib/libc/sys Makefile.inc Symbol.map sys/compat/freebsd32 freebsd32_misc.c syscalls.master sys/conf files sys/kern init_main.c kern_thread.c makesyscalls.sh sched_4bsd.c sched_ule.c syscalls.master sys/sys _types.h priv.h proc.h sched.h types.h Added files: (Branch: RELENG_7) lib/libc/sys cpuset.2 cpuset_getaffinity.2 sys/kern kern_cpuset.c sys/sys cpuset.h usr.bin/cpuset Makefile cpuset.1 cpuset.c Log: SVN rev 180808 on 2008-07-25 17:46:01Z by jhb MFC: Add cpuset, an api for thread to cpu binding and cpu resource grouping and assignment. This is mostly synched up with what is in HEAD with the following exceptions: - I didn't MFC any of the interrupt binding stuff as it requires other changes and I figured this change was large enough as it is. - The sched_affinity() implementation for ULE in HEAD depends on the newer CPU topology stuff as well as other changes in ULE. Rather than backport all of that, I implemented sched_affinity() using the existing CPU topology and ULE code in 7.x. Thus, any bugs in the ULE affinity stuff in 7 are purely my fault and not Jeff's. Note that, just as in HEAD, cpusets currently don't work on SCHED_4BSD (the syscalls will succeed, but they don't have any effect). Tested by: brooks, ps Revision Changes Path 1.127.2.4 +4 -2 src/lib/libc/sys/Makefile.inc 1.9.2.5 +15 -0 src/lib/libc/sys/Symbol.map 1.2.2.1 +226 -0 src/lib/libc/sys/cpuset.2 (new) 1.2.2.1 +157 -0 src/lib/libc/sys/cpuset_getaffinity.2 (new) 1.67.2.4 +57 -0 src/sys/compat/freebsd32/freebsd32_misc.c 1.91.2.4 +20 -0 src/sys/compat/freebsd32/syscalls.master 1.1243.2.30 +1 -0 src/sys/conf/files 1.283.2.5 +2 -0 src/sys/kern/init_main.c 1.13.2.1 +1002 -0 src/sys/kern/kern_cpuset.c (new) 1.255.2.5 +5 -1 src/sys/kern/kern_thread.c 1.68.2.1 +1 -1 src/sys/kern/makesyscalls.sh 1.106.2.4 +7 -0 src/sys/kern/sched_4bsd.c 1.214.2.5 +100 -44 src/sys/kern/sched_ule.c 1.233.2.3 +15 -0 src/sys/kern/syscalls.master 1.23.2.1 +3 -0 src/sys/sys/_types.h 1.7.2.1 +185 -0 src/sys/sys/cpuset.h (new) 1.15.2.5 +1 -0 src/sys/sys/priv.h 1.491.2.6 +2 -1 src/sys/sys/proc.h 1.33.2.1 +2 -1 src/sys/sys/sched.h 1.96.2.1 +4 -0 src/sys/sys/types.h 1.2.2.1 +6 -0 src/usr.bin/cpuset/Makefile (new) 1.3.2.1 +175 -0 src/usr.bin/cpuset/cpuset.1 (new) 1.5.2.1 +320 -0 src/usr.bin/cpuset/cpuset.c (new)