Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Commits
7c907119
Commit
7c907119
authored
4 years ago
by
Florian Schmaus
Browse files
Options
Downloads
Plain Diff
Merge branch 'tests' into 'master'
Tests See merge request
!22
parents
2e3cd780
23a00cd5
No related branches found
Branches containing commit
No related tags found
1 merge request
!22
Tests
Pipeline
#51824
passed
4 years ago
Stage: smoke-test
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.clang-tidy
+2
-0
2 additions, 0 deletions
.clang-tidy
emper/Debug.hpp
+2
-10
2 additions, 10 deletions
emper/Debug.hpp
emper/Runtime.cpp
+14
-4
14 additions, 4 deletions
emper/Runtime.cpp
tests/meson.build
+1
-0
1 addition, 0 deletions
tests/meson.build
with
19 additions
and
14 deletions
.clang-tidy
+
2
−
0
View file @
7c907119
...
...
@@ -14,6 +14,8 @@ Checks: >
-readability-magic-numbers,
WarningsAsErrors: >
bugprone-*,
modernize-*,
clang-*,
readability-*,
performance-*,
This diff is collapsed.
Click to expand it.
emper/Debug.hpp
+
2
−
10
View file @
7c907119
...
...
@@ -79,30 +79,22 @@ void worker_log(const std::string& prefix, const std::string& message);
template
<
LogSubsystem
logSubsystem
>
class
Logger
{
private:
static
constexpr
LogLevel
getLevelFor
(
LogSubsystem
system
)
{
static
constexpr
auto
getLevelFor
(
LogSubsystem
system
)
->
LogLevel
{
switch
(
system
)
{
case
LogSubsystem
::
PS
:
return
ALL
;
case
LogSubsystem
::
F
:
return
ALL
;
case
LogSubsystem
::
C
:
return
ALL
;
case
LogSubsystem
::
CM
:
return
ALL
;
case
LogSubsystem
::
DISP
:
return
ALL
;
case
LogSubsystem
::
SCHED
:
return
ALL
;
case
LogSubsystem
::
RUNTI
:
return
ALL
;
case
LogSubsystem
::
U_B_MPSC_Q
:
return
ALL
;
default:
return
ALL
;
}
}
static
constexpr
char
const
*
getTagFor
(
LogSubsystem
system
)
{
static
constexpr
auto
getTagFor
(
LogSubsystem
system
)
->
char
const
*
{
switch
(
system
)
{
case
LogSubsystem
::
PS
:
return
"PS "
;
...
...
This diff is collapsed.
Click to expand it.
emper/Runtime.cpp
+
14
−
4
View file @
7c907119
...
...
@@ -10,16 +10,19 @@
#include
<sys/sysinfo.h>
// for get_nprocs
#include
<cstdlib>
// for rand, srand, abort
#include
<memory>
// for __shared_ptr_access, shared_ptr
#include
<cstring>
#include
<memory>
// for __shared_ptr_access, shared_ptr
#include
<string>
// for string
#include
"Common.hpp"
// for DIE_MSG_ERRNO, DIE, DIE_MSG
#include
"ContextManager.hpp"
// for ContextManager
#include
"Debug.hpp"
// for DBG, ABORT, LOGD, LOGE
#include
"Dispatcher.hpp"
// for Dispatcher
#include
"Emper.hpp"
#include
"Fiber.hpp"
// for Fiber
#include
"RuntimeStrategy.hpp"
// for RuntimeStrategy
#include
"RuntimeStrategyStats.hpp"
// for RuntimeStrategyStats
#include
"Fiber.hpp"
// for Fiber
#include
"RuntimeStrategy.hpp"
// for RuntimeStrategy
#include
"RuntimeStrategyStats.hpp"
// for RuntimeStrategyStats
#include
"lib/DebugUtil.hpp"
#include
"strategies/ws/WsStrategy.hpp"
// for WsStrategy, WsStrategy::INST...
#ifndef NDEBUG
...
...
@@ -87,6 +90,13 @@ Runtime::Runtime(workerid_t workerCount, RuntimeStrategy& strategy, unsigned int
DIE_MSG
(
"could not register printStats() with at_exit()"
);
}
}
const
std
::
string
stacktraceOnAbortsEnvVar
(
"EMPER_STACKTRACE_ON_ABORTS"
);
const
char
*
envValueEnableStacktraces
=
std
::
getenv
(
stacktraceOnAbortsEnvVar
.
c_str
());
if
(
envValueEnableStacktraces
&&
!
std
::
strcmp
(
envValueEnableStacktraces
,
"true"
))
{
DBG
(
stacktraceOnAbortsEnvVar
<<
" set to 'true': Enabling stacktrace on abort"
);
enableStacktraceOnAborts
();
}
}
Runtime
::~
Runtime
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/meson.build
+
1
−
0
View file @
7c907119
...
...
@@ -39,6 +39,7 @@ test_env = environment(
# memory will be initialized with 0x01, and that free'ed memory
# will be set to 0xFE (I think).
'MALLOC_PERTURB_'
:
'1'
,
'EMPER_STACKTRACE_ON_ABORTS'
:
'true'
,
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment