tools lib traceevent: Add support for IP address formats

Adds helper for following kernel formats:
  %pi4 print an IPv4 address with leading zeros
  %pI4 print an IPv4 address without leading zeros
  %pi6 print an IPv6 address without colons
  %pI6 print an IPv6 address with colons
  %pI6c print an IPv6 address with colons

IPv6 functions adapted from code in lib/vsprintf.c.

Signed-off-by: David Ahern <dsahern@gmail.com>
perf: Add debug for filters

Signed-off-by: David Ahern <dsahern@gmail.com>
perf session: Return ETIME on timestamp errors

Allows a command to handle flush time errors different than other
failures.

Signed-off-by: David Ahern <dsahern@gmail.com>