tools: resource-monitor: Add hal-api-foo test code
[platform/core/system/pass.git] / tools / resource-monitor / resource-monitor.c
index 47dba1e..8ce6856 100644 (file)
@@ -32,6 +32,8 @@
 
 #include "resource-monitor.h"
 
+#include <hal/hal-foo.h>
+
 #define BUFF_MAX       255
 #define MAX_RESOURCE   100
 #define MAX_ATTR       64
@@ -528,6 +530,8 @@ static void resource_monitor(void)
        int count = 0;
        int i, j;
 
+       hal_foo_get_backend();
+
        while (1) {
                if (g_data.max != -1 && g_data.max <= count++)
                        break;
@@ -551,7 +555,13 @@ static void resource_monitor(void)
                        printf("\n");
                }
                sleep(g_data.secs);
+
+               printf("hal_foo_start() : %d\n", hal_foo_start());
+               printf("hal_foo_stop()  : %d\n", hal_foo_stop());
        }
+
+       hal_foo_put_backend();
+
        resource_monitor_exit(0);
 }