/* Returns whether a next tracepoint has been found (1) or not (0). Will return the first tracepoint in the range if the input tracepoint is NULL.  */
int tracepoint_get_iter_range(struct tracepoint **tracepoint, struct tracepoint *begin, struct tracepoint *end)
/* Returns whether a next tracepoint has been found (1) or not (0). Will return the first tracepoint in the range if the input tracepoint is NULL.  */
int tracepoint_get_iter_range(struct tracepoint **tracepoint, struct tracepoint *begin, struct tracepoint *end)
{
	if (!*tracepoint && begin != end) {
		*tracepoint = begin;
		return 1;
	}
	if (*tracepoint >= begin && *tracepoint < end)
		return 1;
	return 0;
}