Fix new session destroy function call
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 4 Oct 2011 14:43:37 +0000 (10:43 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 4 Oct 2011 14:43:37 +0000 (10:43 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
benchmark/bench-sessions.c

index 609500828f89113b120d7aeba1817be5e66a7c8b..83c79c4fd68c4562a313f732691fd7ec8ff3c14e 100644 (file)
@@ -65,6 +65,7 @@ int main(int argc, char **argv)
        int ret, i, nb_iter;
        char **names;
        double value, total = 0;
+       struct ltt_session *session;
 
        if (getuid() != 0) {
                printf("Aborting test. Must be uid 0 to drop_caches\n");
@@ -104,9 +105,10 @@ int main(int argc, char **argv)
 
        fprintf(fp, "--- Destroy tracing session ---\n");
        for (i = 0; i < nb_iter; i++) {
+               session = session_find_by_name(names[i]);
                ret = system("echo 3 >/proc/sys/vm/drop_caches");
                tracepoint(destroy_session_start);
-               ret = session_destroy(names[i]);
+               ret = session_destroy(session);
                tracepoint(destroy_session_end);
                if (ret < 0) {
                        printf("Destroy session went wrong. Aborting\n");
This page took 0.055545 seconds and 4 git commands to generate.