OSDN Git Service

perf jevents: Tidy error handling
authorJohn Garry <john.garry@huawei.com>
Thu, 22 Oct 2020 11:02:26 +0000 (19:02 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 4 Nov 2020 12:42:41 +0000 (09:42 -0300)
commitfa1b41a74d1136cbdd6960f36d7b9c7aa35c8139
tree2a0837f30ad77a70a71cf40b613c7aa2c04cf276
parentc5e6bc23355a3b33ffc170f92e315102f1e6a59c
perf jevents: Tidy error handling

There is much duplication in the error handling for directory transvering
for prcessing JSONs.

Factor out the common code to tidy a bit.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-By: Kajol Jain<kjain@linux.ibm.com>
Link: https://lore.kernel.org/r/1603364547-197086-2-git-send-email-john.garry@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/pmu-events/jevents.c