common: add basic trace set/iterator and event