diff --git a/repos/base-sel4/src/core/include/vm_space.h b/repos/base-sel4/src/core/include/vm_space.h index ad9487fec5..ff6cbeae19 100644 --- a/repos/base-sel4/src/core/include/vm_space.h +++ b/repos/base-sel4/src/core/include/vm_space.h @@ -19,6 +19,7 @@ #include #include #include +#include /* core includes */ #include @@ -33,6 +34,8 @@ class Genode::Vm_space { private: + Session_label _pd_label; + Cap_sel_alloc &_cap_sel_alloc; Page_table_registry &_page_table_registry; @@ -170,7 +173,8 @@ class Genode::Vm_space if (!flush_support) throw; - warning("flush page table entries - mapping cache full"); + warning("flush page table entries - mapping cache full - PD: ", + _pd_label.string()); _page_table_registry.flush_cache(); @@ -270,8 +274,10 @@ class Genode::Vm_space Cnode &core_cnode, Cnode &phys_cnode, unsigned id, - Page_table_registry &page_table_registry) + Page_table_registry &page_table_registry, + const char * label) : + _pd_label(label), _cap_sel_alloc(cap_sel_alloc), _page_table_registry(page_table_registry), _id(id), _pd_sel(pd_sel), diff --git a/repos/base-sel4/src/core/platform.cc b/repos/base-sel4/src/core/platform.cc index 86c55c4e05..9f601f4975 100644 --- a/repos/base-sel4/src/core/platform.cc +++ b/repos/base-sel4/src/core/platform.cc @@ -416,7 +416,8 @@ Platform::Platform() _core_cnode, _phys_cnode, Core_cspace::CORE_VM_ID, - _core_page_table_registry) + _core_page_table_registry, + "core") { /* I/O port allocator (only meaningful for x86) */ _io_port_alloc.add_range(0, 0x10000); diff --git a/repos/base-sel4/src/core/platform_pd.cc b/repos/base-sel4/src/core/platform_pd.cc index 9372361a34..87e1d5926c 100644 --- a/repos/base-sel4/src/core/platform_pd.cc +++ b/repos/base-sel4/src/core/platform_pd.cc @@ -151,7 +151,7 @@ void Platform_pd::flush(addr_t virt_addr, size_t size) } -Platform_pd::Platform_pd(Allocator * md_alloc, char const *, +Platform_pd::Platform_pd(Allocator * md_alloc, char const *label, signed pd_id, bool create) : _id(pd_id_alloc().alloc()), @@ -165,7 +165,8 @@ Platform_pd::Platform_pd(Allocator * md_alloc, char const *, platform_specific()->core_cnode(), platform_specific()->phys_cnode(), _id, - _page_table_registry), + _page_table_registry, + label), _cspace_cnode_1st(platform_specific()->core_cnode().sel(), platform_specific()->core_sel_alloc().alloc(), CSPACE_SIZE_LOG2_1ST,