#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
296047 |
|
25-Feb-2016 |
oshogbo |
Convert casperd(8) daemon to the libcasper. After calling the cap_init(3) function Casper will fork from it's original process, using pdfork(2). Forking from a process has a lot of advantages: 1. We have the same cwd as the original process. 2. The same uid, gid and groups. 3. The same MAC labels. 4. The same descriptor table. 5. The same routing table. 6. The same umask. 7. The same cpuset(1). From now services are also in form of libraries. We also removed libcapsicum at all and converts existing program using Casper to new architecture.
Discussed with: pjd, jonathan, ed, drysdale@google.com, emaste Partially reviewed by: drysdale@google.com, bdrewery Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D4277
|
#
294849 |
|
26-Jan-2016 |
jhb |
Add support to libsysdecode for decoding system call names.
A new sysdecode_syscallname() function accepts a system call code and returns a string of the corresponding name (or NULL if the code is unknown). To support different process ABIs, the new function accepts a value from a new sysdecode_abi enum as its first argument to select the ABI in use. Current ABIs supported include FREEBSD (native binaries), FREEBSD32, LINUX, LINUX32, and CLOUDABI64. Note that not all ABIs are supported by all platforms. In general, a given ABI is only supported if a platform can execute binaries for that ABI.
To simplify the implementation, libsysdecode's build reuses the existing pre-generated files from the kernel source tree rather than duplicating new copies of said files during the build.
kdump(1) and truss(1) now use these functions to map system call identifiers to names. For kdump(1), a new 'syscallname()' function consolidates duplicated code from ktrsyscall() and ktrsyscallret(). The Linux ABI no longer requires custom handling for ktrsyscall() and linux_ktrsyscall() has been removed as a result.
Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D4823
|
#
292622 |
|
22-Dec-2015 |
jhb |
Move the mkioctls script to libsysdecode and use it to generate a sysdecode_ioctlname() function. This function matches the behavior of the truss variant in that it returns a pointer to a string description for known ioctls. The caller is responsible for displaying unknown ioctl requests. For kdump this meant moving the logic to handle unknown ioctl requests out of the generated function and into an ioctlname() function in kdump.c instead.
Differential Revision: https://reviews.freebsd.org/D4610
|
#
292236 |
|
15-Dec-2015 |
jhb |
Start on a new library (libsysdecode) that provides routines for decoding system call information such as system call arguments. Initially this will consist of pulling duplicated code out of truss and kdump though it may prove useful for other utilities in the future.
This commit moves the shared utrace(2) record parser out of kdump into the library and updates kdump and truss to use it. One difference from the previous version is that the library version treats unknown events that start with the "RTLD" signature as unknown events. This simplifies the interface and allows the consumer to decide how to handle all non-recognized events. Instead, this function only generates a string description for known malloc() and RTLD records.
Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D4537
|
#
291330 |
|
25-Nov-2015 |
bdrewery |
Replace DPSRCS that work fine in SRCS.
This is so that 'make depend' is not a required build step in these files.
DPSRCS is overall unneeded. DPSRCS already contains SRCS, so anything which can safely be in SRCS should be. DPSRCS is mostly just a way to generate files that should not be linked into the final PROG/LIB. For headers and grammars it is safe for them to be in SRCS since they will be excluded during linking and installation.
The only remaining uses of DPSRCS are for generating .c or .o files that must be built before 'make depend' can run 'mkdep' on the SRCS c files list. A semi-proper example is in tests/sys/kern/acct/Makefile where a checked-in .c file has an #include on a generated .c file. The generated .c file should not be linked into the final PROG though since it is #include'd. The more proper way here is just to build/link it in though without DPSRCS. Another example is in sys/modules/linux/Makefile where a shell script runs to parse a DPSRCS .o file that should not be linked into the module. Beyond those, the need for DPSRCS is largely unneeded, redundant, and forces 'make depend' to be ran. Generally, these Makefiles should avoid the need for DPSRCS and define proper dependencies for their files as well.
An example of an improper usage and why this matters is in usr.bin/netstat. nl_defs.h was only in DPSRCS and so was not generated during 'make all', but only during 'make depend'. The files including it lacked proper depenencies on it, which forced running 'make depend' to workaround that bug. The 'make depend' target should mostly be used for incremental build help, not to produce a working build. This specific example was broken in the meta build until r287905 since it does not run 'make depend'.
The gnu/lib/libreadline/readline case is fine since bsd.lib.mk has 'OBJS: SRCS:M*.h' when there is no .depend file.
Sponsored by: EMC / Isilon Storage Division MFC after: 1 week
|
#
288957 |
|
06-Oct-2015 |
bdrewery |
truss: Add support for utrace(2).
This uses the kdump(1) utrace support code directly until a common library is created.
This allows malloc(3) tracing with MALLOC_CONF=utrace:true and rtld tracing with LD_UTRACE=1. Unknown utrace(2) data is just printed as hex.
PR: 43819 [inspired by] Reviewed by: jhb MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D3819
|
#
284407 |
|
15-Jun-2015 |
rodrigc |
Add ioctl.c, linux_syscalls.c, linux32_syscalls.c to beforedepend target.
These files need to be generated before mkdep is run.
|
#
284370 |
|
14-Jun-2015 |
sjg |
Create proper targets for linux*syscalls.c
|
#
284268 |
|
11-Jun-2015 |
sjg |
Use INCLUDEDIR rather than hard coded /usr/include
Differential Revision: D2748 Reviewed by: brooks imp
|
#
283430 |
|
24-May-2015 |
dchagin |
Teach kdump to understand both linux emulation.
Differential Revision: https://reviews.freebsd.org/D1079 Reviewed by: emaste
|
#
276758 |
|
06-Jan-2015 |
dchagin |
kdump: eliminate new clang warnings.
MFC after: 1 week
|
#
275042 |
|
25-Nov-2014 |
bapt |
Convert to usr.bin/ to LIBADD Reduce overlinking
|
#
265420 |
|
06-May-2014 |
imp |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
#
261797 |
|
12-Feb-2014 |
glebius |
Fix world build WITHOUT_PF.
Sponsored by: Nginx, Inc.
|
#
259440 |
|
15-Dec-2013 |
pjd |
Include bsd.own.mk for MK_CASPER to work.
Reported by: nwhitehorn
|
#
259434 |
|
15-Dec-2013 |
pjd |
Make use of Casper's system.pwd and system.grp services when the -r option is given to convert uids and gids to user names and group names even when running in capability mode sandbox.
While here log on stderr when we successfully enter the sandbox.
Sponsored by: The FreeBSD Foundation
|
#
234058 |
|
09-Apr-2012 |
dim |
In kdump's mkioctls script, use '${CPP}' instead of hardcodedly using 'gcc -E'. This fixes building when WITH_CLANG_IS_CC is in effect.
Report by: Niclas Zeising <zeising@daemonic.se> MFC after: 1 week
|
#
226608 |
|
21-Oct-2011 |
des |
It turns out that truss also used kdump's mkioctls script, and expected ioctlname() to return a pointer to the name rather than print it. This did not show up in testing because truss had its own prototype for ioctlname(), so it would build fine and run fine as long as the program being traced did not issue an ioctl.
Teach mkioctls to generate different versions of ioctlname() based on its first command-line argument.
Pointed out by: Garrett Cooper <yanegomi@gmail.com>
|
#
226344 |
|
13-Oct-2011 |
des |
Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE} instead of $(uname -m).
Pointed out by: nyan@
|
#
226329 |
|
12-Oct-2011 |
des |
Make kdump compile cleanly at WARNS level 6, with one exception: the ipfilter headers contain a duplicated function declaration. Turn off -Werror to allow kdump to compile in spite of this.
It would be neat to be able to turn off -Werror on a file-by-file basis...
PR: bin/161478 Submitted by: Garrett Cooper <yanegomi@gmail.com>
|
#
226158 |
|
08-Oct-2011 |
des |
Fix the dependency issue properly by a) moving kdump_subr.c to the front of the SRCS list and b) listing kdump_subr.h in DPSRCS.
|
#
226145 |
|
08-Oct-2011 |
des |
1) Some of the #defines or enums for which we auto-generate naming functions may be wider than int, so use intmax_t throughout. Also add missing casts in printf() calls.
2) Clean up some of the auto-generated code to improve readability.
3) Auto-generate kdump_subr.h. Note that this requires a semi-ugly hack in the Makefile to make sure it is generated before make(1) tries to build kdump.c, or preprocess it for 'make depend'.
MFC after: 3 weeks
|
#
219138 |
|
01-Mar-2011 |
dchagin |
Teach kdump to decode linux syscalls names too.
Fix bug introduced in my previous commit: the kernel always dump native signal numbers, so no need to check the ABI in ktrpsig().
Suggested by: jhb MFC after: 1 Month.
|
#
201386 |
|
02-Jan-2010 |
ed |
Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
|
#
175980 |
|
05-Feb-2008 |
des |
Revert CLEANDEPFILES commit per ru@'s request; it does not really solve the problem. The correct fix will follow.
|
#
175937 |
|
03-Feb-2008 |
des |
Normally, when a header file is removed from the build (as i4b headers were recently), a simple 'make cleandepend; make depend' is sufficient to keep the tree buildable after a cvs update when doing incremental builds.
However, kdump and truss use a script which searches for header files that define ioctls, and generates C code that includes them. This script will usually not need updating when a header file is removed, so the normal dependency mechanism will not realize that it needs to be re-run. One is therefore left with code that references dead files but will only be removed by a full 'make clean', which defeats the purpose of incremental builds.
To work around this, modify the cleandepend target in bsd.dep.mk to also remove any files listed in a new variable named CLEANDEPFILES, and modify kdump's and truss's Makefiles accordingly.
MFC after: 2 weeks
|
#
158766 |
|
20-May-2006 |
netchild |
Change kdump to print more useful information, i.e. it changes from 32229 telnet CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0) 32229 telnet CALL open(0x2807bc28,0,0x1b6) 32229 telnet CALL socket(0x2,0x2,0) to 32229 telnet CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0) 32229 telnet CALL open(0x2807bc28,O_RDONLY,<unused>0x1b6) 32229 telnet CALL socket(PF_INET,SOCK_DGRAM,0)
David wanted to implement the suggestions which came up at the review from arch@ too, but real life rejected this proposal. So I commit what we already got and let another volunteer pick the remaining work from the ideas list.
Submitted by: "David Kirchner" <dpk@dpk.net> Suggested by: FreeBSD ideas list page Reviewed by: arch
|
#
100559 |
|
23-Jul-2002 |
ru |
Dependencies are delimited by space not tab.
|
#
98557 |
|
21-Jun-2002 |
markm |
Better fix for style.
Suggested by: ru (but modified a bit by markm)
|
#
98553 |
|
21-Jun-2002 |
markm |
Style tidy-up.
|
#
94432 |
|
11-Apr-2002 |
ru |
I now don't seem to be able to reproduce the -DNOCLEAN buildworld breakage with ioctl.c. The .depend file should track dependencies just fine, and the worst we can have is to miss new ioctls.
But I still think it's a good idea to have -DNOCLEAN build produce the same ioctl.c as it would without -DNOCLEAN.
Prodded for a long time by: bde
|
#
65848 |
|
14-Sep-2000 |
jkh |
Fix ioctl.c creation to deal with the depend case more properly.
Submitted by: Ruslan Ermilov <ru@sunbay.com>
|
#
65829 |
|
14-Sep-2000 |
jkh |
remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.
Approved by: sef
|
#
64102 |
|
01-Aug-2000 |
ru |
Make auto-generated ioctl.c to be always considered out of date since it could potentially depend on any ${DESTDIR}/usr/include preprocessor file. This fixes the broken -DNOCLEAN world build I experienced yesterday.
|
#
54081 |
|
03-Dec-1999 |
marcel |
Avoid hardcoding any paths and variables. The include directory must now be specified on the command line. Accept a '-s' option which controls whether a switch-statement is to be used instead of a series of if-statements.
Replace cpp with gcc -E.
Discussed with: bde
|
#
54029 |
|
02-Dec-1999 |
marcel |
Make sure DESTDIR is set in the environment of mkioctls. This fixes the breakage people have encountered at certain times (for example when the altq_*.h files were removed).
$FreeBSD$ tag added.
|
#
4722 |
|
21-Nov-1994 |
phk |
-I${.CURDIR}/../..
|
#
1591 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|
#
1590 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Usr.bin Sources
|