Grep is known to treat "\s" differently:
only in newer versions it is intrepreted as whitespace.
See http://savannah.gnu.org/bugs/?30515 for details
On Tizen the grep verions is 2.5.2 and "\s" is not yet supported as a special
symbol there.
# - with call or callq,
# - directly or via PLT.
cmd = "objdump -d %s | " \
- "grep '^\s\+[0-9a-f]\+:.*\scall\(q\|\)\s\+[0-9a-f]\+ <__sanitizer_cov\(_with_check\|\)\(_trace_pc\|\)\(@plt\|\)>' | " \
- "grep '^\s\+[0-9a-f]\+' -o" % binary
+ "grep '^[[:space:]]\+[0-9a-f]\+:.*[[:space:]]call\(q\|\)[[:space:]]\+[0-9a-f]\+ <__sanitizer_cov\(_with_check\|\)\(_trace_pc\|\)\(@plt\|\)>' | " \
+ "grep '^[[:space:]]\+[0-9a-f]\+' -o" % binary
proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
shell=True)
proc.stdin.close()