projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add lttv wrapper
[lttv.git]
/
ltt
/
branches
/
poly
/
libltt
/
libltt.c
diff --git
a/ltt/branches/poly/libltt/libltt.c
b/ltt/branches/poly/libltt/libltt.c
index 6cb81c304a2b35ac03c554b66647c4aa4b3963cd..662a05871521d5ac39c78649cfacf44ee4b01d85 100644
(file)
--- a/
ltt/branches/poly/libltt/libltt.c
+++ b/
ltt/branches/poly/libltt/libltt.c
@@
-329,13
+329,14
@@
int lttctl_create_trace(const struct lttctl_handle *h,
if(err != 0) {
errno = err;
lttctl_perror("Create Trace Error");
if(err != 0) {
errno = err;
lttctl_perror("Create Trace Error");
- return
-1
;
+ return
err
;
}
return 0;
senderr:
lttctl_perror("Create Trace Error");
}
return 0;
senderr:
lttctl_perror("Create Trace Error");
+ err = EPERM;
return err;
}
return err;
}
@@
-372,13
+373,14
@@
int lttctl_destroy_trace(const struct lttctl_handle *h,
if(err != 0) {
errno = err;
lttctl_perror("Destroy Trace Channels Error");
if(err != 0) {
errno = err;
lttctl_perror("Destroy Trace Channels Error");
- return
-1
;
+ return
err
;
}
return 0;
senderr:
lttctl_perror("Destroy Trace Channels Error");
}
return 0;
senderr:
lttctl_perror("Destroy Trace Channels Error");
+ err = EPERM;
return err;
}
return err;
}
@@
-417,12
+419,13
@@
int lttctl_start(const struct lttctl_handle *h,
if(err != 0) {
errno = err;
lttctl_perror("Start Trace Error");
if(err != 0) {
errno = err;
lttctl_perror("Start Trace Error");
- return
-1
;
+ return
err
;
}
return 0;
senderr:
}
return 0;
senderr:
+ err = EPERM;
lttctl_perror("Start Trace Error");
return err;
lttctl_perror("Start Trace Error");
return err;
@@
-461,12
+464,13
@@
int lttctl_stop(const struct lttctl_handle *h,
if(err != 0) {
errno = err;
lttctl_perror("Stop Trace Error");
if(err != 0) {
errno = err;
lttctl_perror("Stop Trace Error");
- return
-1
;
+ return
err
;
}
return 0;
senderr:
}
return 0;
senderr:
+ err = EPERM;
lttctl_perror("Stop Trace Error");
return err;
}
lttctl_perror("Stop Trace Error");
return err;
}
This page took
0.022735 seconds
and
4
git commands to generate.