summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/monitor/mon-object.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-29 21:52:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-29 21:52:21 +0000
commit6c06288f6452da96fa630f1482aeaaba5d217531 (patch)
treeb12309ae199663c23f0ba74a71fdba4f32fb1036 /cpukit/libmisc/monitor/mon-object.c
parent2008-01-29 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-6c06288f6452da96fa630f1482aeaaba5d217531.tar.bz2
2008-01-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/src/exd_tsk.c, itron/src/task.c, libmisc/capture/capture.c, libmisc/monitor/mon-config.c, libmisc/monitor/mon-driver.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-mpci.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-symbols.c, posix/src/cancelrun.c, posix/src/pthreadexit.c, rtems/Makefile.am, rtems/preinstall.am, rtems/include/rtems.h, rtems/include/rtems/rtems/support.h, rtems/inline/rtems/rtems/tasks.inl, rtems/src/eventmp.c, rtems/src/msgmp.c, rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/rtemsobjectgetname.c, rtems/src/semmp.c, rtems/src/signalmp.c, rtems/src/taskdelete.c, rtems/src/taskmp.c, rtems/src/timerserver.c, score/Makefile.am, score/include/rtems/score/object.h, score/inline/rtems/score/object.inl, score/src/Unlimited.txt, score/src/objectgetnameasstring.c, score/src/threadqextractwithproxy.c: Add new Object Services collection. This changed the name of a few previously public but undocumented services and added a some new services. * rtems/include/rtems/rtems/object.h, rtems/src/rtemsbuildid.c, rtems/src/rtemsbuildname.c, rtems/src/rtemsobjectapimaximumclass.c, rtems/src/rtemsobjectapiminimumclass.c, rtems/src/rtemsobjectgetapiclassname.c, rtems/src/rtemsobjectgetapiname.c, rtems/src/rtemsobjectgetclassicname.c, rtems/src/rtemsobjectgetclassinfo.c, rtems/src/rtemsobjectidapimaximum.c, rtems/src/rtemsobjectidapiminimum.c, rtems/src/rtemsobjectidgetapi.c, rtems/src/rtemsobjectidgetclass.c, rtems/src/rtemsobjectidgetindex.c, rtems/src/rtemsobjectidgetnode.c, rtems/src/rtemsobjectsetname.c, score/src/objectapimaximumclass.c, score/src/objectgetinfo.c, score/src/objectgetinfoid.c, score/src/objectsetname.c: New files. * rtems/src/rtemsidtoname.c: Removed.
Diffstat (limited to '')
-rw-r--r--cpukit/libmisc/monitor/mon-object.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/cpukit/libmisc/monitor/mon-object.c b/cpukit/libmisc/monitor/mon-object.c
index 05c0d30afd..3087b4abb2 100644
--- a/cpukit/libmisc/monitor/mon-object.c
+++ b/cpukit/libmisc/monitor/mon-object.c
@@ -140,14 +140,18 @@ rtems_monitor_id_fixup(
{
uint32_t node;
- node = rtems_get_node(id);
+ node = rtems_object_id_get_node(id);
if (node == 0)
{
- if (rtems_get_class(id) != OBJECTS_CLASSIC_NO_CLASS)
- type = rtems_get_class(id);
-
- id = _Objects_Build_id(
- OBJECTS_CLASSIC_API, type, default_node, rtems_get_index(id));
+ if (rtems_object_id_get_class(id) != OBJECTS_CLASSIC_NO_CLASS)
+ type = rtems_object_id_get_class(id);
+
+ id = rtems_build_id(
+ OBJECTS_CLASSIC_API,
+ type,
+ default_node,
+ rtems_object_id_get_index(id)
+ );
}
return id;
}
@@ -189,7 +193,8 @@ rtems_monitor_object_canonical_next_remote(
request.argument0 = (uint32_t ) type;
request.argument1 = (uint32_t ) id;
- status = rtems_monitor_server_request(rtems_get_node(id), &request, &response);
+ status = rtems_monitor_server_request(
+ rtems_object_id_get_node(id), &request, &response);
if (status != RTEMS_SUCCESSFUL)
goto failed;
@@ -370,7 +375,7 @@ rtems_monitor_object_cmd(
{
id = (rtems_id) strtoul(argv[arg], 0, 16);
id = rtems_monitor_id_fixup(id, default_node, type);
- type = (rtems_monitor_object_type_t) rtems_get_class(id);
+ type = (rtems_monitor_object_type_t) rtems_object_id_get_class(id);
/*
* Allow the item type to change in the middle
@@ -395,7 +400,7 @@ not_found: fprintf(stdout,"Invalid or unsupported type %d\n", type);
rtems_monitor_object_dump_1(info, id, verbose);
- default_node = rtems_get_node(id);
+ default_node = rtems_object_id_get_node(id);
last_type = type;
}