erpt: skeleton sprofile apis

This commit is contained in:
Michael Scire
2021-09-15 21:50:06 -07:00
committed by SciresM
parent 568a3b62eb
commit bd240b23d8
19 changed files with 492 additions and 1 deletions

View File

@@ -16,7 +16,7 @@
"permissions": "0xFFFFFFFFFFFFFFFF"
},
"service_access": ["lm", "fsp-srv", "time:u", "set", "set:sys", "srepo:u", "psc:m", "csrng", "ectx:r"],
"service_host": ["erpt:r", "erpt:c"],
"service_host": ["erpt:r", "erpt:c", "sprof:sp", "sprof:bg"],
"kernel_capabilities": [{
"type": "kernel_flags",
"value": {

View File

@@ -201,6 +201,12 @@ int main(int argc, char **argv)
/* Start the erpt server. */
R_ABORT_UNLESS(erpt::srv::InitializeAndStartService());
/* Initialize the sprofile server. */
sprofile::srv::Initialize();
/* Start the sprofile ipc server. */
sprofile::srv::StartIpcServer();
/* Wait forever. */
erpt::srv::Wait();