Everywhere: Core dump => Coredump

We all know what a coredump is, and it feels more natural to refer to
it as a coredump (most code already does), so let's be consistent.
This commit is contained in:
Andreas Kling 2021-08-22 14:51:04 +02:00
parent a930877f31
commit bcd2025311
Notes: sideshowbarker 2024-07-18 05:22:42 +09:00
21 changed files with 73 additions and 72 deletions

View file

@ -11,7 +11,7 @@
#include <AK/Types.h>
#include <Kernel/API/Syscall.h>
#include <Kernel/Arch/x86/InterruptDisabler.h>
#include <Kernel/CoreDump.h>
#include <Kernel/Coredump.h>
#include <Kernel/Debug.h>
#ifdef ENABLE_KERNEL_COVERAGE_COLLECTION
# include <Kernel/Devices/KCOVDevice.h>
@ -406,7 +406,7 @@ void Process::crash(int signal, FlatPtr ip, bool out_of_memory)
ProtectedDataMutationScope scope { *this };
m_protected_values.termination_signal = signal;
}
set_dump_core(!out_of_memory);
set_should_generate_coredump(!out_of_memory);
address_space().dump_regions();
VERIFY(is_user_process());
die();
@ -561,10 +561,10 @@ KResultOr<NonnullOwnPtr<KString>> Process::get_syscall_path_argument(Syscall::St
bool Process::dump_core()
{
VERIFY(is_dumpable());
VERIFY(should_core_dump());
VERIFY(should_generate_coredump());
dbgln("Generating coredump for pid: {}", pid().value());
auto coredump_path = String::formatted("/tmp/coredump/{}_{}_{}", name(), pid().value(), kgettimeofday().to_truncated_seconds());
auto coredump = CoreDump::create(*this, coredump_path);
auto coredump = Coredump::create(*this, coredump_path);
if (!coredump)
return false;
return !coredump->write().is_error();
@ -615,7 +615,7 @@ void Process::finalize()
dbgln_if(PROCESS_DEBUG, "Finalizing process {}", *this);
if (is_dumpable()) {
if (m_should_dump_core)
if (m_should_generate_coredump)
dump_core();
if (m_perf_event_buffer) {
dump_perfcore();