Skip to content

Commit 67a174a

Browse files
committed
add profiling config
Signed-off-by: Krishnan Winter <krishnan-git@wintermail.me>
1 parent eec7256 commit 67a174a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

build_sdk.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,18 @@ class ConfigInfo:
348348
"KernelBenchmarks": "track_utilisation"
349349
},
350350
),
351+
ConfigInfo(
352+
name="profiling",
353+
debug=True,
354+
kernel_options={
355+
"KernelArmExportPMUUser": True,
356+
"KernelDebugBuild": True,
357+
"KernelPrinting": True,
358+
"KernelVerificationBuild": False,
359+
"KernelBenchmarks": "track_utilisation",
360+
"ProfilerEnable": True
361+
},
362+
)
351363
)
352364

353365

tool/microkit/src/sel4.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub enum MicrokitConfig {
3636
Debug,
3737
Benchmark,
3838
Release,
39+
Profiling,
3940
}
4041

4142
impl MicrokitConfig {
@@ -44,6 +45,7 @@ impl MicrokitConfig {
4445
"debug" => MicrokitConfig::Debug,
4546
"release" => MicrokitConfig::Release,
4647
"benchmark" => MicrokitConfig::Benchmark,
48+
"profiling" => MicrokitConfig::Profiling,
4749
_ => panic!("Invalid microkit configuration provided!"),
4850
}
4951
}

0 commit comments

Comments
 (0)