Skip to content

Commit

Permalink
lstopo/draw: display tasks in yellow when --top is passed
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jun 18, 2018
1 parent be571c3 commit 10ce6bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/lstopo/lstopo.c
Expand Up @@ -89,8 +89,10 @@ static hwloc_obj_t insert_task(hwloc_topology_t topology, hwloc_cpuset_t cpuset,
obj = hwloc_topology_insert_misc_object(topology, group, name);
if (!obj)
fprintf(stderr, "Failed to insert process `%s'\n", name);
else
else {
obj->subtype = strdup("Process");
hwloc_obj_add_info(obj, "lstopoStyle", "Background=#ffff00");
}

return obj;
}
Expand Down

0 comments on commit 10ce6bf

Please sign in to comment.