Refactor slaves probing code block to gain more readibility
Refactor slaves probing code block to gain more readibility

nareshgundla/HiBench,maismail/HiBench,nareshgundla/HiBench,qiansl127/HiBench,qiansl127/HiBench,maismail/HiBench,maismail/HiBench,ConeyLiu/HiBench,ConeyLiu/HiBench,qiansl127/HiBench,qiansl127/HiBench,ConeyLiu/HiBench,ConeyLiu/HiBench,maismail/HiBench,nareshgundla/HiBench,nareshgundla/HiBench