From 52b66d1262254a8d1d6e7ab48a602f23a7dc6beb Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 23 May 2019 18:31:07 +0200 Subject: [PATCH] fix some typo in the comments, just to launch a rebuild on servers Having jenkins all white after restart is annoying --- src/mc/AddressSpace.hpp | 2 +- src/mc/Session.hpp | 5 ++--- src/mc/inspect/ObjectInformation.cpp | 7 +++---- src/mc/inspect/ObjectInformation.hpp | 13 ++++++------- src/mc/sosp/PageStore.hpp | 4 ++-- src/mc/sosp/PageStore_test.cpp | 2 +- 6 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/mc/AddressSpace.hpp b/src/mc/AddressSpace.hpp index a7658e6a8f..86ebd26cae 100644 --- a/src/mc/AddressSpace.hpp +++ b/src/mc/AddressSpace.hpp @@ -136,7 +136,7 @@ public: this->read_bytes(buffer.getBuffer(), sizeof(T), ptr, process_index); } - /** Read a given data structure from the addres space + /** Read a given data structure from the address space * * This version returns by value. */ diff --git a/src/mc/Session.hpp b/src/mc/Session.hpp index 342e37cc85..ddc75db02b 100644 --- a/src/mc/Session.hpp +++ b/src/mc/Session.hpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2016-2019. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2016-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -60,7 +59,7 @@ public: /** Create a new session by forking * * This sets up the environment for the model-checked process - * (environoment variables, sockets, etc.). + * (environment variables, sockets, etc.). * * The code is expected to `exec` the model-checker program. */ diff --git a/src/mc/inspect/ObjectInformation.cpp b/src/mc/inspect/ObjectInformation.cpp index 7d3229ca74..e98f5c7be6 100644 --- a/src/mc/inspect/ObjectInformation.cpp +++ b/src/mc/inspect/ObjectInformation.cpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2014-2019. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -19,7 +18,7 @@ namespace mc { * (there is no offset) i.e. * \f$\text{virtual address} = \{dwarf address}\f$ * - * For a shared object, the addreses are offset from the begining + * For a shared object, the addresses are offset from the begining * of the shared object (the base address of the mapped shared * object must be used as offset * i.e. \f$\text{virtual address} = \text{shared object base address} @@ -31,7 +30,7 @@ void* ObjectInformation::base_address() const if (this->executable()) return nullptr; - // For an a shared-object (ET_DYN, including position-independant executables) + // For an a shared-object (ET_DYN, including position-independent executables) // the base address is its lowest address: void* result = this->start_exec; if (this->start_rw != nullptr && result > (void*)this->start_rw) diff --git a/src/mc/inspect/ObjectInformation.hpp b/src/mc/inspect/ObjectInformation.hpp index 6bf27ff791..de0abe8d37 100644 --- a/src/mc/inspect/ObjectInformation.hpp +++ b/src/mc/inspect/ObjectInformation.hpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2007-2019. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -107,7 +106,7 @@ public: /** Whether this module is an executable * * More precisely we check if this is an ET_EXE ELF. These ELF files - * use fixed addresses instead of base-addres relative addresses. + * use fixed addresses instead of base-address relative addresses. * Position independant executables are in fact ET_DYN. */ bool executable() const { return this->flags & simgrid::mc::ObjectInformation::Executable; } @@ -117,7 +116,7 @@ public: * All the location information in ELF and DWARF are expressed as an offsets * from this base address: * - * - location of the functions and globale variables; + * - location of the functions and global variables; * * - the DWARF instruction `OP_addr` pushes this on the DWARF stack. **/ @@ -146,10 +145,10 @@ public: */ void remove_global_variable(const char* name); - /** Remove a loval variables (in order to ignore it) + /** Remove a local variables (in order to ignore it) * - * @param name Name of the globale variable - * @param scope Namespaceed name of the function (or null for all functions) + * @param name Name of the local variable + * @param scope scopes name name of the function (myproject::Foo::count) or null for all functions */ void remove_local_variable(const char* name, const char* scope); }; diff --git a/src/mc/sosp/PageStore.hpp b/src/mc/sosp/PageStore.hpp index 58515137da..08493661e0 100644 --- a/src/mc/sosp/PageStore.hpp +++ b/src/mc/sosp/PageStore.hpp @@ -36,7 +36,7 @@ namespace mc { * * We want to keep this memory region aligned on the memory pages (so * that we might be able to create non-linear memory mappings on those - * pages in the future) and be able to expand it without coyping the + * pages in the future) and be able to expand it without copying the * data (there will be a lot of pages here): we will be able to * efficiently expand the memory mapping using `mremap()`, moving it * to another virtual address if necessary. @@ -130,7 +130,7 @@ public: * store. * * This will be the case if a page if soft clean: we know that is has not - * changed since the previous cnapshot/restoration and we can avoid + * changed since the previous snapshot/restoration and we can avoid * hashing the page, comparing byte-per-byte to candidates. * */ void ref_page(size_t pageno); diff --git a/src/mc/sosp/PageStore_test.cpp b/src/mc/sosp/PageStore_test.cpp index 220065181d..c9fbe6f0ca 100644 --- a/src/mc/sosp/PageStore_test.cpp +++ b/src/mc/sosp/PageStore_test.cpp @@ -39,7 +39,7 @@ public: static void new_content(void* buf, std::size_t size); }; -// static member datat initialization +// static member data initialization std::size_t helper_tests::pagesize = 0; std::unique_ptr helper_tests::store = nullptr; void* helper_tests::data = nullptr; -- 2.20.1