Merge pull request #1688 from iovisor/yhs_dev

fix profile.py with latest net-next
diff --git a/tools/bpflist.py b/tools/bpflist.py
index 5fd109c..f73e945 100755
--- a/tools/bpflist.py
+++ b/tools/bpflist.py
@@ -72,8 +72,10 @@
 
 for pdir in os.listdir('/proc'):
     if re.match('\\d+', pdir):
-        find_bpf_fds(int(pdir))
-
+        try:
+            find_bpf_fds(int(pdir))
+        except OSError:
+            continue
 print("%-6s %-16s %-8s %s" % ("PID", "COMM", "TYPE", "COUNT"))
 for (pid, typ), count in sorted(counts.items(), key=lambda t: t[0][0]):
     comm = comm_for_pid(pid)