1 /* Copyright (c) 2010-2019. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "src/instr/instr_private.hpp"
9 #include "src/msg/msg_private.hpp"
13 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_msg, instr, "MSG instrumentation");
15 /* MSG_task_put related functions */
16 void TRACE_msg_task_put_start(msg_task_t task)
18 XBT_DEBUG("PUT,in %p, %lld, %s", task, task->get_counter(), task->get_tracing_category().c_str());
20 if (TRACE_actor_is_enabled()) {
21 container_t process_container = simgrid::instr::Container::by_name(instr_pid(MSG_process_self()));
22 std::string key = std::string("p") + std::to_string(task->get_counter());
23 simgrid::instr::Container::get_root()->get_link("ACTOR_TASK_LINK")->start_event(process_container, "SR", key);