summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Since truss also uses kdump's mkioctls script, pass the value of ${CPP}dim2012-04-091-1/+1
| | | | | | there too, similar to r234058. MFC after: 1 week
* It turns out that truss also used kdump's mkioctls script, and expecteddes2011-10-211-1/+2
| | | | | | | | | | | | 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>
* Fix breakage introduced in r211725 and improve functionality of truss onnwhitehorn2010-08-281-1/+19
| | | | 64-bit powerpc by adding 32-bit compatibility features.
* MFtbemd:imp2010-08-231-3/+3
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Teach truss about 32-bit FreeBSD and Linux binaries on amd64. Somejhb2008-05-161-12/+35
| | | | | | | additional work is needed to handle ABI-specific syscall argument parsing, but this gets the basic tracing working. MFC after: 1 week
* Revert CLEANDEPFILES commit per ru@'s request; it does not really solvedes2008-02-051-2/+1
| | | | the problem. The correct fix will follow.
* Normally, when a header file is removed from the build (as i4b headersdes2008-02-031-2/+3
| | | | | | | | | | | | | | | | | | | | 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
* Make use of ptrace(2) instead of procfs in truss(1), eliminatingdelphij2007-04-101-1/+1
| | | | | | | | yet another need of an available /proc/ mount. Tested with: make universe Submitted by: howardsu Reviewed by: alfred
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* decode fcntl and mmap arguments.alfred2004-03-231-0/+2
|
* Use cat(1) instead of cp(1) so as not to break -DNOCLEAN buildsmarcel2003-06-061-2/+2
| | | | when the file permissions of source files don't allow writing.
* Removed extra parentheses.ru2003-02-201-1/+1
|
* Ported to sparc64.jake2002-08-041-5/+3
|
* I now don't seem to be able to reproduce the -DNOCLEAN buildworldru2002-04-111-5/+1
| | | | | | | | | | 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
* Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.markm2002-02-081-3/+0
|
* Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.markm2001-12-111-0/+3
| | | | Use __FBSDID().
* cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace ↵jkh2000-09-141-2/+6
| | | | | | -I/usr/src/usr.bin/kdump/../.. Fix ioctl.c creation to deal with the depend case more properly. Submitted by: Ruslan Ermilov <ru@sunbay.com>
* remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.jkh2000-09-141-1/+1
| | | | Approved by: sef
* Make auto-generated ioctl.c to be always considered out of dateru2000-08-011-1/+1
| | | | | | since it could potentially depend on any ${DESTDIR}/usr/include preprocessor file. This fixes the broken -DNOCLEAN world build I experienced yesterday.
* Fix for the new usage of mkioctlsmarcel1999-12-031-1/+1
|
* ${MACHINE} -> ${MACHINE_ARCH}marcel1999-11-141-1/+3
| | | | | | | | | | | | | | | | All Makefiles now use MACHINE_ARCH for the target architecture. Unification is required for cross-building. Tags added to: sys/boot/Makefile sys/boot/arc/loader/Makefile sys/kern/Makefile usr.bin/cpp/Makefile usr.bin/gcore/Makefile usr.bin/truss/Makefile usr.bin/gcore/Makefile: fixed typo: MACHINDE -> MACHINE_ARCH
* Use MACHINE_ARCH instead of MACHINE to detect x86 arch.kato1998-10-071-1/+1
| | | | Pointed out by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
* Alpha support for truss. I tested this on both bento and beast (thanks,sef1998-10-031-2/+7
| | | | | Jordan, for pointing me at beast!). There should be no change for the i386 version.
* Revert the changes yet again, after some email from Bruce. Sorry.sef1998-01-091-1/+1
|
* Proper way to do the previous mis-commit. Still not quite right, becausesef1998-01-091-1/+1
| | | | | | | some header files (e.g., <err.h>) include <machine/something.h>, and this will not pick up the right header files, so it may be removed eventually anyway. But some people who are not willing to build the right way apparantly want this, so this is for them.
* Get rid of the bogus include -- it is incomplete (as it doesn't handlesef1998-01-091-1/+1
| | | | | | | | anything other than <sys/*.h>), and unnecessary in most cases. (The situations where it is necesary can be dealt with by manually-made symlinks, which is acceptable since they should only occur during testing. Remember: the tree does not compile well if you do not have matching header files installed. Half-baked -I directives don't cover enough of the cases.)
* include sys so it builds on 2.2.xjmg1998-01-071-1/+1
| | | | also, fix misspelling of -1 (as EOF for getopt)
* First cut at printing out ioctl names intelligently. Note that this doesn'tsef1997-12-061-2/+6
| | | | | | | handle linux ioctls (yet?). This uses the mkioctl script from kdump, bless its little heart. Reviewed by: Mike Smith
* Truss program. Requires procfs.sef1997-12-061-0/+23
OpenPOWER on IntegriCloud