Lines Matching refs:retval
19 int retval; in enable_tracer_by_name() local
25 retval = tracefs_tracer_set(inst, tracer, tracer_name); in enable_tracer_by_name()
26 if (retval < 0) { in enable_tracer_by_name()
43 int retval; in disable_tracer() local
45 retval = tracefs_tracer_set(inst, t); in disable_tracer()
46 if (retval < 0) in disable_tracer()
76 int retval = -1; in save_trace_to_file() local
91 retval = read(in_fd, buffer, sizeof(buffer)); in save_trace_to_file()
92 if (retval <= 0) in save_trace_to_file()
95 retval = write(out_fd, buffer, retval); in save_trace_to_file()
96 if (retval < 0) in save_trace_to_file()
98 } while (retval > 0); in save_trace_to_file()
100 retval = 0; in save_trace_to_file()
105 return retval; in save_trace_to_file()
284 int retval; in trace_event_disable_filter() local
297 retval = tracefs_event_file_write(instance->inst, tevent->system, in trace_event_disable_filter()
299 if (retval < 0) in trace_event_disable_filter()
312 int retval, index, out_fd; in trace_event_save_hist() local
325 retval = strncmp(tevent->trigger, "hist:", strlen("hist:")); in trace_event_save_hist()
326 if (retval) in trace_event_save_hist()
362 int retval; in trace_event_disable_trigger() local
377 retval = tracefs_event_file_write(instance->inst, tevent->system, in trace_event_disable_trigger()
379 if (retval < 0) in trace_event_disable_trigger()
415 int retval; in trace_event_enable_filter() local
431 retval = tracefs_event_file_write(instance->inst, tevent->system, in trace_event_enable_filter()
433 if (retval < 0) { in trace_event_enable_filter()
450 int retval; in trace_event_enable_trigger() local
466 retval = tracefs_event_file_write(instance->inst, tevent->system, in trace_event_enable_trigger()
468 if (retval < 0) { in trace_event_enable_trigger()
486 int retval; in trace_events_enable() local
490 retval = tracefs_event_enable(instance->inst, tevent->system, tevent->event); in trace_events_enable()
491 if (retval < 0) { in trace_events_enable()
497 retval = trace_event_enable_filter(instance, tevent); in trace_events_enable()
498 if (retval) in trace_events_enable()
501 retval = trace_event_enable_trigger(instance, tevent); in trace_events_enable()
502 if (retval) in trace_events_enable()
549 int retval; in trace_set_buffer_size() local
552 retval = tracefs_instance_set_buffer_size(trace->inst, size, -1); in trace_set_buffer_size()
553 if (retval) in trace_set_buffer_size()
556 return retval; in trace_set_buffer_size()