Re: [hwloc-devel] lstopo --top

2013-06-21 Thread Brice Goglin
Le 21/06/2013 17:59, Jiri Hladky a écrit : > Hi Brice, > > this would be useful feature for me and I believe also for others! > Currently The attached patch puts Misc object in Orange. See how I modified lstopo.c, you'll see what you have to do. I can easily add the same check to other types. >

Re: [hwloc-devel] lstopo --top

2013-06-21 Thread Jiri Hladky
I have checked API of hwloc_topology_insert_misc_object_by_parent and there is no support for color: hwloc_obj_t hwloc_topology_insert_misc_object_by_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, const char *name) Add a MISC object to the topology. hwloc_obj_t

Re: [hwloc-devel] lstopo --top

2013-06-21 Thread Samuel Thibault
Jiri Hladky, le Thu 20 Jun 2013 22:08:03 +0200, a écrit : > lstopo has obviously some logic how to sort the data inserted > by hwloc_topology_insert_misc_object_by_cpuset. Could be data displayed in the > same order as inserted? hwloc_topology_insert_misc_object_by_parent probably does that, you

Re: [hwloc-devel] lstopo --top

2013-06-21 Thread Brice Goglin
I don't think there's currently any way to do that. Coloring Misc objects with user-given colors shouldn't be hard to do, assuming we have a real need to put that feature in the official hwloc? Brice Le 20/06/2013 21:33, Jiri Hladky a écrit : > > > On Tue, Jun 18, 2013 at 5:32 PM, Samuel