[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160828141616.GB32293@krava>
Date: Sun, 28 Aug 2016 16:16:16 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Mathieu Poirier <mathieu.poirier@...aro.org>
Cc: peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
alexander.shishkin@...ux.intel.com, jolsa@...nel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH V6 5/5] perf tools: adding sink configuration for cs_etm
PMU
On Thu, Aug 25, 2016 at 02:20:45PM -0600, Mathieu Poirier wrote:
SNIP
> return NULL;
> }
> +
> +static FILE *cs_device__open_file(const char *name)
> +{
> + struct stat st;
> + char path[PATH_MAX];
> + const char *sysfs;
> +
> + sysfs = sysfs__mountpoint();
> + if (!sysfs)
> + return NULL;
> +
> + snprintf(path, PATH_MAX,
> + "%s" CS_BUS_DEVICE_PATH "%s", sysfs, name);
> +
> + printf("path: %s\n", path);
should this be pr_info ?
jirka
Powered by blists - more mailing lists