/* Updates the probe callback corresponding to a range of tracepoints.  */
void tracepoint_update_probe_range(struct tracepoint *begin, struct tracepoint *end)
/* Updates the probe callback corresponding to a range of tracepoints.  */
void tracepoint_update_probe_range(struct tracepoint *begin, struct tracepoint *end)
{
	struct tracepoint *iter;
	struct tracepoint_entry *mark_entry;
	if (!begin)
		return;
	mutex_lock(&tracepoints_mutex);
	for (iter = begin; iter < end; iter++) {
		mark_entry = get_tracepoint(iter->name);
		if (mark_entry) {
			set_tracepoint(&mark_entry, iter,
					!!mark_entry->refcount);
		} else {
			disable_tracepoint(iter);
		}
	}
	mutex_unlock(&tracepoints_mutex);
}