trace: log_output policy that redirects logs to trace

Issue #3714
This commit is contained in:
Tomasz Gajewski 2020-04-01 01:51:54 +02:00 committed by Christian Helmuth
parent 1d9a2dce94
commit db8ec81e9f
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,46 @@
#include <util/string.h>
#include <trace/policy.h>
using namespace Genode;
size_t max_event_size()
{
return 0;
}
size_t log_output(char *dst, char const *log_message, size_t len)
{
memcpy(dst, (void*)log_message, len);
return len;
}
size_t rpc_call(char *dst, char const *rpc_name, Msgbuf_base const &)
{
return 0;
}
size_t rpc_returned(char *dst, char const *rpc_name, Msgbuf_base const &)
{
return 0;
}
size_t rpc_dispatch(char *dst, char const *rpc_name)
{
return 0;
}
size_t rpc_reply(char *dst, char const *rpc_name)
{
return 0;
}
size_t signal_submit(char *dst, unsigned const)
{
return 0;
}
size_t signal_receive(char *dst, Signal_context const &, unsigned)
{
return 0;
}

View File

@ -0,0 +1,5 @@
TARGET = log_output_policy
TARGET_POLICY = log_output
include $(PRG_DIR)/../policy.inc