if(err != 0) {
errno = err;
lttctl_perror("Create Trace Error");
- return -1;
+ return err;
}
return 0;
senderr:
lttctl_perror("Create Trace Error");
+ err = EPERM;
return err;
}
if(err != 0) {
errno = err;
lttctl_perror("Destroy Trace Channels Error");
- return -1;
+ return err;
}
return 0;
senderr:
lttctl_perror("Destroy Trace Channels Error");
+ err = EPERM;
return err;
}
if(err != 0) {
errno = err;
lttctl_perror("Start Trace Error");
- return -1;
+ return err;
}
return 0;
senderr:
+ err = EPERM;
lttctl_perror("Start Trace Error");
return err;
if(err != 0) {
errno = err;
lttctl_perror("Stop Trace Error");
- return -1;
+ return err;
}
return 0;
senderr:
+ err = EPERM;
lttctl_perror("Stop Trace Error");
return err;
}