return;
}
+/*
+ * Time taken by an UST apps to unregister.
+ */
+void bench_print_ust_unregister(void)
+{
+ double res;
+
+ fprintf(fp, "--- UST unregister time ---\n");
+
+ if (time_ust_unregister_start == 0 || time_ust_unregister_stop == 0) {
+ goto no_data;
+ }
+
+ res = get_bench_time(time_ust_unregister_start, time_ust_unregister_stop);
+ fprintf(fp, "UST unregister time\n");
+ fprintf(fp, "Time: %.20f sec.\n", res);
+ return;
+
+no_data:
+ fprintf(fp, "NO DATA\n");
+ return;
+}
+
/*
* This time value is only coherent is an UST application registered.
*/
void bench_close(void);
void bench_print_boot_process(void);
void bench_print_ust_register(void);
+void bench_print_ust_unregister(void);
void bench_print_ust_notification(void);
double bench_get_create_session(void);
double bench_get_destroy_session(void);
*/
cycles_t time_ust_register_stop;
+/*
+ * * UST unregister time
+ * */
+cycles_t time_ust_unregister_start;
+cycles_t time_ust_unregister_stop;
+
/*
* UST dispatch registration request time
*
#include "ust-app.h"
+#include "benchmark.h"
+
/* Init ust traceable application's list */
static struct ust_app_list ust_app_list = {
.head = CDS_LIST_HEAD_INIT(ust_app_list.head),
{
struct ust_app *lta;
+ tracepoint(ust_unregister_start);
+
ust_app_lock_list();
lta = find_app_by_sock(sock);
if (lta) {
free(lta);
}
ust_app_unlock_list();
+
+ tracepoint(ust_unregister_stop);
}
/*