better aggregation support(based on ptable)

the testcase and sample scripts are also updated.

Signed-off-by: ktap <bookjovi@gmail.com>