Thread (14 messages) flat view 14 messages, 4 authors, 2016-11-17

[PATCH v4 1/5] arm64: perf: Basic uncore counter support for Cavium ThunderX SOC

From: Will Deacon <hidden>
Date: 2016-11-17 18:10:40
Also in: lkml

On Fri, Nov 11, 2016 at 11:30:29AM +0100, Jan Glauber wrote:
On Tue, Nov 08, 2016 at 11:50:10PM +0000, Will Deacon wrote:
quoted
On Sat, Oct 29, 2016 at 01:55:29PM +0200, Jan Glauber wrote:
quoted
+/* node attribute depending on number of NUMA nodes */
+static ssize_t node_show(struct device *dev, struct device_attribute *attr,
+			 char *page)
+{
+	if (NODES_SHIFT)
+		return sprintf(page, "config:16-%d\n", 16 + NODES_SHIFT - 1);
If NODES_SHIFT is 1, you'll end up with "config:16-16", which might confuse
userspace.
So should I use "config:16" in that case? Is it OK to use this also for
NODES_SHIFT=0 ?
If you only need one bit, then "config:16" is the right thing to do.

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help