Hi,
I'm trying to use the newest uProf (3.5). Unfortunately, it fails to start as follows:
$ rm -rf uprof_out
$ ./AMDuProfCLI collect -o uprof_out ls
ERROR : Output Directory (uprof_out/AMDuProf-ls-TBP_Apr-19-2022_12-17-53/) does not have write permission.
The mentioned output directory is created, and does have correct permissions
$ ls -al uprof_out
total 12
drwxrwxr-x 3 angainor angainor 4096 Apr 19 12:17 .
drwxrwxr-x 10 angainor angainor 4096 Apr 19 12:17 ..
drwxrwxr-x 2 angainor angainor 4096 Apr 19 12:17 AMDuProf-ls-TBP_Apr-19-2022_12-17-53
The second time I run (the uprof_out directory is not removed) I get another, similar error:
$ ./AMDuProfCLI collect -o uprof_out ls
ERROR : Output Directory (uprof_out/AMDuProf-ls-TBP_Apr-19-2022_12-19-40/) does not exist.
This problem does not show in the 3.4 version, which seems to be significantly different.
Does anyone have any ideas?
Thanks!
EDIT: Solved it. In 3.5 the -o switch is the same as --output-dir, and has to be given as full (not relative) path. In 3.4 it denotes a file name, and the file is created in the current directory.