Thread (13 messages) 13 messages, 2 authors, 2016-08-31

[PATCH V6 5/5] perf tools: adding sink configuration for cs_etm PMU

From: mathieu.poirier@linaro.org (Mathieu Poirier)
Date: 2016-08-29 15:57:29
Also in: lkml

On 28 August 2016 at 08:16, Jiri Olsa [off-list ref] wrote:
On Thu, Aug 25, 2016 at 02:20:45PM -0600, Mathieu Poirier wrote:

SNIP
quoted
      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 ?
That's a debug message that slipped through - it shouldn't be there at all.
jirka
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help