#
dc36d6f9 |
|
23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
lib: Remove ancient SCCS tags. Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
|
#
d0b2dbfa |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
#
fe532f1a |
|
30-Dec-2021 |
Warner Losh <imp@FreeBSD.org> |
libkvm: Remove mips support libkvm references files in sys/mips, so remove it ahead of removing sys/mips. Sponsored by: Netflix
|
#
7cc42f6d |
|
30-Sep-2020 |
Kyle Evans <kevans@FreeBSD.org> |
Do a sweep and remove most WARNS=6 settings Repeating the default WARNS here makes it slightly more difficult to experiment with default WARNS changes, e.g. if we did something absolutely bananas and introduced a WARNS=7 and wanted to try lifting the default to that. Drop most of them; there is one in the blake2 kernel module, but I suspect it should be dropped -- the default WARNS in the rest of the build doesn't currently apply to kernel modules, and I haven't put too much thought into whether it makes sense to make it so.
|
#
38cf2a43 |
|
06-Feb-2020 |
Leandro Lupori <luporl@FreeBSD.org> |
Implement kvm_kerndisp This change adds a new libkvm function, kvm_kerndisp(), that can be used to retrieve the kernel displacement, that is the difference between the kernel's base virtual address at run time and the kernel base virtual address specified in the kernel image file. This will be used by kgdb, to properly relocate kernel symbols, when needed. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D23285
|
#
58aa35d4 |
|
03-Feb-2020 |
Warner Losh <imp@FreeBSD.org> |
Remove sparc64 kernel support Remove all sparc64 specific files Remove all sparc64 ifdefs Removee indireeect sparc64 ifdefs
|
#
d3c34fc0 |
|
09-Dec-2019 |
Leandro Lupori <luporl@FreeBSD.org> |
[PPC64] Initial libkvm minidump implementation This change adds PowerPC64 support for minidumps on libkvm. Address translation, page walk, and data retrieval were tested and seem to be working correctly. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D21555
|
#
a7b5a3d48 |
|
05-Sep-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
pkgbase: Put a lot of binaries and lib in FreeBSD-runtime All of them are needed to be able to boot to single user and be able to repair a existing FreeBSD installation so put them directly into FreeBSD-runtime. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21503
|
#
5e58ed82 |
|
05-Mar-2019 |
Mark Johnston <markj@FreeBSD.org> |
Add riscv minidump support to libkvm. Submitted by: Mitchell Horne <mhorne063@gmail.com> Differential Revision: https://reviews.freebsd.org/D19171
|
#
993d074b |
|
22-May-2018 |
John Baldwin <jhb@FreeBSD.org> |
Use __SCCSID for SCCS IDs in libkvm sources. Rather than using #ifdef's around a static char array, use the existing helper macro from <sys/cdefs.h> for SCCS IDs. To preserve existing behavior, add -DNO__SCCSID to CFLAGS to not include SCCS IDs in the built library by default. Reviewed by: brooks, dab (older version) Reviewed by: rgrimes Differential Revision: https://reviews.freebsd.org/D15459
|
#
8c099357 |
|
02-Aug-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Add HAS_TESTS to all Makefiles that use the SUBDIR.${MK_TESTS}+= tests idiom
|
#
10f81a9b |
|
28-Mar-2017 |
Enji Cooper <ngie@FreeBSD.org> |
lib/libkvm: start adding basic tests for kvm(3) - kvm_close: add a testcase to verify support for errno = EINVAL / -1 (see D10065) when kd == NULL is provided to the libcall. - kvm_geterr: -- Add a negative testcase for kd == NULL returning "" (see D10022). -- Add two positive testcases: --- test the error case using kvm_write on a O_RDONLY descriptor. --- test the "no error" case using kvm_read(3) and kvm_nlist(3) as helper routines and by injecting a bogus error message via _kvm_err (an internal API) _kvm_err was used as there isn't a formalized way to clear the error output, and because kvm_nlist always returns ENOENT with the NULL terminator today. - kvm_open, kvm_open2: -- Add some basic negative tests for kvm_open(3) and kvm_open2(3). Testing positive cases with a specific `corefile`/`execfile`/`resolver` requires more work and would require user intervention today in order to reliably test this out. Reviewed by: markj MFC after: 2 months Sponsored by: Dell EMC Isilon Differential Revision: D10024
|
#
25e76a1d |
|
21-Mar-2017 |
Enji Cooper <ngie@FreeBSD.org> |
libkvm: bump WARNS to 6 after recent commits done to resolve warnings issues MFC after: 1 month Tested with: make tinderbox; clang 4.0.0 (amd64), gcc 4.2.1/6.3.0 (amd64) Sponsored by: Dell EMC Isilon
|
#
197eca22 |
|
17-Jul-2016 |
Will Andrews <will@FreeBSD.org> |
libkvm: Put private kvm routines in kvm_private.c.
|
#
7aad67e9 |
|
30-Apr-2016 |
Enji Cooper <ngie@FreeBSD.org> |
Remove kvm_getfiles(3) This libcall has been broken since (at least) r174989/8.0-RELEASE. Bump SHLIB_MAJOR for the change Differential Revision: https://reviews.freebsd.org/D6052 Relnotes: yes Reviewed by: jhb, markj Sponsored by: EMC / Isilon Storage Division
|
#
a70cba95 |
|
04-Feb-2016 |
Glen Barber <gjb@FreeBSD.org> |
First pass through library packaging. Sponsored by: The FreeBSD Foundation
|
#
7f911abe |
|
27-Nov-2015 |
John Baldwin <jhb@FreeBSD.org> |
Add support to libkvm for reading vmcores from other architectures. - Add a kvaddr_type to represent kernel virtual addresses instead of unsigned long. - Add a struct kvm_nlist which is a stripped down version of struct nlist that uses kvaddr_t for n_value. - Add a kvm_native() routine that returns true if an open kvm descriptor is for a native kernel and memory image. - Add a kvm_open2() function similar to kvm_openfiles(). It drops the unused 'swapfile' argument and adds a new function pointer argument for a symbol resolving function. Native kernels still use _fdnlist() from libc to resolve symbols if a resolver function is not supplied, but cross kernels require a resolver. - Add a kvm_nlist2() function similar to kvm_nlist() except that it uses struct kvm_nlist instead of struct nlist. - Add a kvm_read2() function similar to kvm_read() except that it uses kvaddr_t instead of unsigned long for the kernel virtual address. - Add a new kvm_arch switch of routines needed by a vmcore backend. Each backend is responsible for implementing kvm_read2() for a given vmcore format. - Use libelf to read headers from ELF kernels and cores (except for powerpc cores). - Add internal helper routines for the common page offset hash table used by the minidump backends. - Port all of the existing kvm backends to implement a kvm_arch switch and to be cross-friendly by using private constants instead of ones that vary by platform (e.g. PAGE_SIZE). Static assertions are present when a given backend is compiled natively to ensure the private constants match the real ones. - Enable all of the existing vmcore backends on all platforms. This means that libkvm on any platform should be able to perform KVA translation and read data from a vmcore of any platform. Tested on: amd64, i386, sparc64 (marius) Differential Revision: https://reviews.freebsd.org/D3341
|
#
18b2ee82 |
|
15-Jun-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Revert r284417 it is not necessary anymore
|
#
4232f826 |
|
15-Jun-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Enforce overwritting SHLIBDIR Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many
|
#
73279d41 |
|
22-Mar-2014 |
Andrew Turner <andrew@FreeBSD.org> |
Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental. This targets the existing ARMv6 and ARMv7 SoCs that contain a VFP unit. This is an optional coprocessors may not be present in all devices, however it appears to be in all current SoCs we support. armv6hf targets the VFP variant of the ARM EABI and our copy of gcc is too old to support this. Because of this there are a number of WITH/WITHOUT options that are unsupported and must be left as the default value. The options and their required value are: * WITH_ARM_EABI * WITHOUT_GCC * WITHOUT_GNUCXX In addition, without an external toolchain, the following need to be left as their default: * WITH_CLANG * WITH_CLANG_IS_CC As there is a different method of passing float and double values to functions the ABI is incompatible with existing armv6 binaries. To use this a full rebuild of world is required. Because no floating point values are passed into the kernel an armv6 kernel with VFP enabled will work with an armv6hf userland and vice versa.
|
#
f864e2ab |
|
13-Jan-2014 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Re-apply the part of r260022 that was reverted by r260030 with one significant difference: for LIB32 builds both TARGET_ARCH and MACHINE_ARCH are defined. TARGET_ARCH confusingly holds the architecture of the host (e.g. amd64), while MACHINE_ARCH holds the architecture were trying to build (e.g. i386). With both set and different, r260022 changed the behaviour to interpret the condition as building a cross-amd64 libkvm on i386, when obviously we're trying to build an i386 version on amd64. When COMPAT_32BIT is defined, we're building LIB32 and ignore the value of TARGET_ARCH as we did before.
|
#
71694e55 |
|
28-Dec-2013 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Revert part of r260022: LIB32 builds were broken by it.
|
#
3f6558c4 |
|
28-Dec-2013 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Allow building a cross libkvm by setting TARGET_ARCH. The library so produced will be called libkvm-${ARCH} instead of libkvm. This allows installing it alongside the native version. For symbol lookups, use ps_pglobal_lookup() instead of __fdnlist() when building a cross libkvm. It is assumed that the cross tool that uses the cross libkvm also provides an implementation for this proc_services function. Note that this commit does not change any of the architecture-specific code for cross-compilation.
|
#
374931bd |
|
10-Jul-2013 |
Mikolaj Golub <trociny@FreeBSD.org> |
In r227839, when removing libkvm dependency on procfs(5), kvm_uread() function, used for reading from /proc/pid/mem, was removed too. But the function declaration remained in kvm.h public header and the soname was not bumped. Remove kvm_uread() from kvm.h and bump the soname. Reported by: rmh Discussed on: arch
|
#
8d13912c |
|
11-Apr-2013 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Fix typo.
|
#
2a213404 |
|
10-Apr-2013 |
Gleb Smirnoff <glebius@FreeBSD.org> |
o Provide function kvm_read_zpcpu() to access UMA_ZONE_PCPU allocations. o Provide function kvm_counter_u64_fetch() to fetch valut of a counter(9). Sponsored by: Nginx, Inc.
|
#
4b547324 |
|
13-May-2011 |
Attilio Rao <attilio@FreeBSD.org> |
Disconnect sun4v architecture from the three. Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re
|
#
de788839 |
|
23-Jan-2011 |
Ulrich Spörlein <uqs@FreeBSD.org> |
libkvm: fix process runtime calculation on crashdumps Fix a long standing bug, where the procs ticks where assumed to be in us. Instead, read cpu_tick_frequency from the kernel and use the same logic to convert runtime. This is still too optimistic in that it assumes cpu_tick_frequency is available and fixed. Since this function is only called on crashdumps, I think we can live with that. Testing has shown the values to be correct for different kern.hz inside Virtualbox. Bump WARNS. Alignment issues on some archs mean this is still at 3. Reviewed by: bde
|
#
99b7f1da |
|
06-Nov-2010 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
Add minidump support for MIPS
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
b12277d1 |
|
28-Aug-2010 |
Nathan Whitehorn <nwhitehorn@FreeBSD.org> |
Repair some build breakage introduced in r211725 and garbage collect some code made obsolete in the same commit.
|
#
25faff34 |
|
23-Aug-2010 |
Warner Losh <imp@FreeBSD.org> |
MFtbemd: Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
ccd8bad0 |
|
28-Feb-2010 |
Robert Watson <rwatson@FreeBSD.org> |
A first cut at teaching libkvm how to deal with dynamic per-CPU storage (DPCPU): A new API, kvm_dpcpu_setcpu(3), selects the active CPU for the purposes of DPCPU. Calls to kvm_nlist(3) will automatically translate DPCPU symbols and return a pointer to the current CPU's version of the data. Consumers needing to read the same symbol on several CPUs will invoke a series of setcpu/nlist calls, one per CPU of interest. This addition makes it possible for tools like netstat(1) to query the values of DPCPU variables during crashdump analysis, and is based on similar code handling virtualized global variables. MFC after: 1 week Sponsored by: Juniper Networks, Inc.
|
#
daaf5759 |
|
02-Jan-2010 |
Ed Schouten <ed@FreeBSD.org> |
Build lib/ with WARNS=6 by default. Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
|
#
7cf8b4b9 |
|
23-Jul-2009 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
Make libkvm work on live systems and crashdumps with and without VIMAGE virtualization in the kernel. If we cannot resolve a symbol try to see if we can find it with prefix of the virtualized subsystem, currently only "vnet_entry" by identifying either the vnet of the current process for a live system or the vnet of proc0 (or of dumptid if compiled in a non-default way). The way this is done currently allows us to only touch libkvm but no single application. Once we are going to virtualize more subsystems we will have to review this decision for better scaling. Submitted by: rwatson (initial version of kvm_vnet.c, lots of ideas) Reviewed by: rwatson Approved by: re (kib)
|
#
8e321b79 |
|
06-Nov-2008 |
Rafal Jaworowski <raj@FreeBSD.org> |
Support kernel crash mini dumps on ARM architecture. Obtained from: Juniper Networks, Semihalf
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
f110b23b |
|
19-Aug-2008 |
John Baldwin <jhb@FreeBSD.org> |
Add a new routine kvm_getcptime(3) for fetching the equivalent of 'kern.cp_time'. For a live kernel it uses the sysctl. For a crashdump, it first checks to see if the kernel has a 'cp_time' global symbol. If it does, it uses that. If that doesn't work, when it uses the recently added kvm_getmaxcpu(3) and kvm_getpcpu(3) routines to walk all the CPUs and sum up their counters. MFC after: 1 week
|
#
794a9a6c |
|
19-Aug-2008 |
John Baldwin <jhb@FreeBSD.org> |
Add two new routines to libkvm for working with per-CPU data: kvm_getmaxcpu() and kvm_getpcpu(). MFC after: 1 week
|
#
cab68f57 |
|
08-Oct-2006 |
Kip Macy <kmacy@FreeBSD.org> |
unbreak build for sparc64 etc. TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg
|
#
ddd53429 |
|
08-Oct-2006 |
Kip Macy <kmacy@FreeBSD.org> |
buildworld fixes for sun4v not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg
|
#
e9ca6fe4 |
|
20-Apr-2006 |
Peter Wemm <peter@FreeBSD.org> |
Teach libkvm how to read minidumps. It turns out that minidumps are far more convenient for libkvm to work with because of the page table block at the beginning. As a result, the MD code is smaller. libkvm will automatically detect old vs mini dumps on i386 and amd64. libkvm will handle i386 PAE and non-PAE modes. There is a PAE flag in the i386 minidump header to signal the width of the entries in the page table block. Other convenient values are also present, such as kernbase and the direct map addresses on amd64.
|
#
4f4a104e |
|
18-Aug-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
style.Makefile(5)
|
#
41d8423f |
|
17-Aug-2003 |
Gordon Tetlow <gordon@FreeBSD.org> |
Stage 3 of dynamic root support. Make all the libraries needed to run binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified.
|
#
3ab9a9d0 |
|
18-May-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
Removed -I${.CURDIR}/.../sys from CFLAGS.
|
#
4a558355 |
|
27-Mar-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
MAN[1-9] -> MAN.
|
#
d77052e5 |
|
21-Mar-2001 |
Peter Wemm <peter@FreeBSD.org> |
Find <libkvm.h> in the source tree. This helps standalone builds.
|
#
d05257b0 |
|
14-Jan-2000 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
Replace beforeinstall target with new variables used by .mk system. Reviewed by: marcel, and make world
|
#
59c9cd2b |
|
04-Oct-1999 |
Peter Wemm <peter@FreeBSD.org> |
Install <kvm.h> from here (after repo copy) so it's all in one package.
|
#
8bb84da7 |
|
23-Jan-1999 |
Bruce Evans <bde@FreeBSD.org> |
Fixed unsorting of SRCS and MAN3 in previous commit. Sorted MLINKS.
|
#
e92324a2 |
|
22-Jan-1999 |
Matthew Dillon <dillon@FreeBSD.org> |
Implement kvm_getswapinfo() libkvm function. Will be used by pstat, top, and systat.
|
#
d7feb25b |
|
09-Sep-1998 |
KATO Takenori <kato@FreeBSD.org> |
Change ${MACHINE} into ${MACHINE_ARCH} to support MACHINE=pc98.
|
#
30a72f72 |
|
26-Aug-1997 |
Bruce Evans <bde@FreeBSD.org> |
-I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.
|
#
688034bb |
|
18-Jul-1997 |
Satoshi Asami <asami@FreeBSD.org> |
Add ${DESTDIR} in front of absolute path.
|
#
5500fdcd |
|
02-Jul-1997 |
Bruce Evans <bde@FreeBSD.org> |
Import Lite2's src/lib, except for non-i386 machine-dependent directories, libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch.
|
#
ab532cff |
|
04-Aug-1994 |
Garrett Wollman <wollman@FreeBSD.org> |
Make it work with our make macros.
|
#
58f0484f |
|
26-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite Lib Sources
|