On Thu, Aug 22, 2019 at 12:50:49PM +0530, Mamatha Inamdar wrote:Thank you
This Patch is to return error code of perf_new_session function[root@krava perf]# ./perf c2c report -input
on failure instead of NULL
----------------------------------------------
Test Results:
Before Fix:
$ perf c2c report -input
failed to open nput: No such file or directory
$ echo $?
0
------------------------------------------
After Fix:
$ ./perf c2c report -input
failed to open nput: No such file or directory
$ echo $?
254
failed to open nput: No such file or directory
[root@krava perf]# echo $?
255
hum, not sure why I'm getting 255.. but it looks good now
Reviewed-by: Jiri Olsa <jolsa@xxxxxxxxxx>
thanks,
jirka