int result, sock;
unsigned int subbuf_size, subbuf_num;
unsigned int new_subbuf_size, new_subbuf_num;
- struct marker_status *marker_status, *ms_ptr;
+ struct ust_marker_status *marker_status, *ms_ptr;
char *old_socket_path, *new_socket_path;
char *tmp_ustd_socket = "/tmp/tmp_ustd_socket";
char *trace = "auto";
result = 0;
for (ms_ptr = marker_status; ms_ptr->channel; ms_ptr++) {
if (!strcmp(ms_ptr->channel, "ust") &&
- !strcmp(ms_ptr->marker, "bar")) {
+ !strcmp(ms_ptr->ust_marker, "bar")) {
result = 1;
}
}
free(old_socket_path);
/* Enable, disable markers */
- tap_ok(!ustctl_set_marker_state(sock, trace, "ust", "bar", 1),
- "ustctl_set_marker_state - existing marker ust bar");
+ tap_ok(!ustctl_set_ust_marker_state(sock, trace, "ust", "bar", 1),
+ "ustctl_set_ust_marker_state - existing marker ust bar");
/* Create and allocate a trace */
tap_ok(!ustctl_create_trace(sock, trace), "ustctl_create_trace");
* Activate a non-existent marker, this should be possible as the marker
* can be loaded at a later time.
*/
- tap_ok(ustctl_set_marker_state(sock, trace, "ustl", "blar", 1) == 0,
+ tap_ok(ustctl_set_ust_marker_state(sock, trace, "ustl", "blar", 1) == 0,
"Enable non-existent marker ustl blar");
printf("##### Tests that definetly should work are completed #####\n");
printf("############## Start expected failure cases ##############\n");
- tap_ok(ustctl_set_marker_state(sock, trace, "ust","bar", 1),
+ tap_ok(ustctl_set_ust_marker_state(sock, trace, "ust","bar", 1),
"Enable already enabled marker ust/bar");
tap_ok(EEXIST == errno,