summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-10-31 15:41:29 +0000
committerrwatson <rwatson@FreeBSD.org>2005-10-31 15:41:29 +0000
commitbe4f357149ecc68e1bf349f69f702cad430aec97 (patch)
treefe71f10c01688ab52e9bffd17c7d2ebd7d2c09b4 /sys/amd64
parent5f4072340596bcd7e45343bc44317347b00f07e4 (diff)
downloadFreeBSD-src-be4f357149ecc68e1bf349f69f702cad430aec97.zip
FreeBSD-src-be4f357149ecc68e1bf349f69f702cad430aec97.tar.gz
Normalize a significant number of kernel malloc type names:
- Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/acpica/madt.c2
-rw-r--r--sys/amd64/amd64/io_apic.c2
-rw-r--r--sys/amd64/amd64/mptable.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/acpica/madt.c b/sys/amd64/acpica/madt.c
index 42daf6b..3af0b73 100644
--- a/sys/amd64/acpica/madt.c
+++ b/sys/amd64/acpica/madt.c
@@ -74,7 +74,7 @@ static MULTIPLE_APIC_TABLE *madt;
static vm_paddr_t madt_physaddr;
static vm_offset_t madt_length;
-MALLOC_DEFINE(M_MADT, "MADT Table", "ACPI MADT Table Items");
+MALLOC_DEFINE(M_MADT, "madt_table", "ACPI MADT Table Items");
static enum intr_polarity interrupt_polarity(UINT16 Polarity, UINT8 Source);
static enum intr_trigger interrupt_trigger(UINT16 TriggerMode, UINT8 Source);
diff --git a/sys/amd64/amd64/io_apic.c b/sys/amd64/amd64/io_apic.c
index 32d25e2..423a214 100644
--- a/sys/amd64/amd64/io_apic.c
+++ b/sys/amd64/amd64/io_apic.c
@@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
#define TODO printf("%s: not implemented!\n", __func__)
-static MALLOC_DEFINE(M_IOAPIC, "I/O APIC", "I/O APIC structures");
+static MALLOC_DEFINE(M_IOAPIC, "ioapic", "I/O APIC structures");
/*
* New interrupt support code..
diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c
index 5ce5c79..d860dba 100644
--- a/sys/amd64/amd64/mptable.c
+++ b/sys/amd64/amd64/mptable.c
@@ -141,7 +141,7 @@ static bus_datum *busses;
static int mptable_nioapics, mptable_nbusses, mptable_maxbusid;
static int pci0 = -1;
-static MALLOC_DEFINE(M_MPTABLE, "MP Table", "MP Table Items");
+static MALLOC_DEFINE(M_MPTABLE, "mptable", "MP Table Items");
static enum intr_polarity conforming_polarity(u_char src_bus,
u_char src_bus_irq);
OpenPOWER on IntegriCloud