mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 09:15:36 +00:00
Move Session_label from os to base
Session_label constructor now takes a bare string rather than a serialized argument buffer. Replace all instances of previous constructor with 'label_from_args' function. Issue #1787
This commit is contained in:
committed by
Norman Feske
parent
88b358c5ef
commit
f8337b511b
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2006-2013 Genode Labs GmbH
|
||||
* Copyright (C) 2006-2016 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
@ -22,6 +22,7 @@
|
||||
#include <base/tslab.h>
|
||||
#include <base/lock.h>
|
||||
#include <base/rpc_server.h>
|
||||
#include <base/session_label.h>
|
||||
|
||||
/* core includes */
|
||||
#include <pager.h>
|
||||
@ -38,13 +39,9 @@ namespace Genode { class Cpu_session_component; }
|
||||
|
||||
class Genode::Cpu_session_component : public Rpc_object<Cpu_session>
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Cpu_thread_component::Session_label Session_label;
|
||||
|
||||
private:
|
||||
|
||||
Session_label _label;
|
||||
Session_label const _label;
|
||||
Rpc_entrypoint *_session_ep;
|
||||
Rpc_entrypoint *_thread_ep;
|
||||
Pager_entrypoint *_pager_ep;
|
||||
|
@ -739,7 +739,7 @@ Platform::Platform() :
|
||||
uint64_t execution_time = 0;
|
||||
Nova::sc_ctrl(sc_sel, execution_time);
|
||||
|
||||
return { Trace::Session_label("kernel"), Trace::Thread_name(name),
|
||||
return { Session_label("kernel"), Trace::Thread_name(name),
|
||||
Trace::Execution_time(execution_time), affinity };
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user