X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftrace.h;h=e7aee024f030d1a889bcb324578fd636c39eab33;hb=6786ce1ce14feb4d02854a0c04bc0cce505be46e;hp=99f34f72bccde4c718e563c32f58674236916ce3;hpb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/trace.h b/include/trace.h index 99f34f7..e7aee02 100644 --- a/include/trace.h +++ b/include/trace.h @@ -39,7 +39,7 @@ struct trace_output_func { /* A header at the start of the trace output buffer */ struct trace_output_hdr { enum trace_chunk_type type; /* Record type */ - uint32_t rec_count; /* Number of records */ + size_t rec_count; /* Number of records */ }; /* Print statistics about traced function calls */ @@ -55,9 +55,9 @@ void trace_print_stats(void); * @param buff Buffer in which to place data, or NULL to count size * @param buff_size Size of buffer * @param needed Returns number of bytes used / needed - * @return 0 if ok, -1 on error (buffer exhausted) + * Return: 0 if ok, -1 on error (buffer exhausted) */ -int trace_list_functions(void *buff, int buff_size, unsigned *needed); +int trace_list_functions(void *buff, size_t buff_size, size_t *needed); /* Flags for ftrace_record */ enum ftrace_flags { @@ -77,7 +77,7 @@ struct trace_call { uint32_t flags; /* Flags and timestamp */ }; -int trace_list_calls(void *buff, int buff_size, unsigned int *needed); +int trace_list_calls(void *buff, size_t buff_size, size_t *needed); /** * Turn function tracing on and off