projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf cpumap: Give CPUs their own type
[linux-2.6-microblaze.git]
/
tools
/
perf
/
builtin-c2c.c
diff --git
a/tools/perf/builtin-c2c.c
b/tools/perf/builtin-c2c.c
index
ad1fbea
..
77dd4af
100644
(file)
--- a/
tools/perf/builtin-c2c.c
+++ b/
tools/perf/builtin-c2c.c
@@
-2015,7
+2015,8
@@
static int setup_nodes(struct perf_session *session)
{
struct numa_node *n;
unsigned long **nodes;
{
struct numa_node *n;
unsigned long **nodes;
- int node, cpu, idx;
+ int node, idx;
+ struct perf_cpu cpu;
int *cpu2node;
if (c2c.node_info > 2)
int *cpu2node;
if (c2c.node_info > 2)
@@
-2038,8
+2039,8
@@
static int setup_nodes(struct perf_session *session)
if (!cpu2node)
return -ENOMEM;
if (!cpu2node)
return -ENOMEM;
- for (
cpu = 0; cpu < c2c.cpus_cnt; cpu
++)
- cpu2node[
cpu
] = -1;
+ for (
idx = 0; idx < c2c.cpus_cnt; idx
++)
+ cpu2node[
idx
] = -1;
c2c.cpu2node = cpu2node;
c2c.cpu2node = cpu2node;
@@
-2058,12
+2059,12
@@
static int setup_nodes(struct perf_session *session)
continue;
perf_cpu_map__for_each_cpu(cpu, idx, map) {
continue;
perf_cpu_map__for_each_cpu(cpu, idx, map) {
- set_bit(cpu, set);
+ set_bit(cpu
.cpu
, set);
- if (WARN_ONCE(cpu2node[cpu] != -1, "node/cpu topology bug"))
+ if (WARN_ONCE(cpu2node[cpu
.cpu
] != -1, "node/cpu topology bug"))
return -EINVAL;
return -EINVAL;
- cpu2node[cpu] = node;
+ cpu2node[cpu
.cpu
] = node;
}
}
}
}