• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/ubicom32/files/arch/ubicom32/mach-common/

Lines Matching refs:node

45 static struct profilenode *node = NULL;
50 if (!node) {
53 node->busy = 1;
54 if (!node->enabled) {
55 node->enabled = 1;
56 node->busy = 0;
60 node->busy = 0;
86 ph.clocks = node->clocks;
88 ph.instruction_count[i] = node->inst_count[i];
91 ph.enabled = node->enabled_threads;
92 ph.hrt = node->hrt;
94 ph.profiler_thread = node->profiler_thread;
95 ph.clock_freq = node->clock_freq;
97 ph.cpu_id = node->cpu_id;
98 ph.perf_counters[0] = node->stats[0];
99 ph.perf_counters[1] = node->stats[1];
100 ph.perf_counters[2] = node->stats[2];
101 ph.perf_counters[3] = node->stats[3];
102 ph.ddr_freq = node->ddr_freq;
107 for (i = 0; i < samples && node->count; ++i) {
108 if (copy_to_user(ptr, &node->samples[node->tail], sizeof(struct profile_sample)) != 0) {
111 node->count--;
112 node->tail++;
113 if (node->tail >= node->max_samples) {
114 node->tail = 0;
196 if (stat_count > node->num_counters) {
197 stat_count = node->num_counters;
201 hdr.ultra_sample_time = node->clocks;
210 memcpy(ptr, (void *)(&(node->counters[i])), sizeof(struct profile_counter));
236 if (!node) {
239 node->busy = 1;
240 if (!node->enabled) {
241 node->busy = 0;
244 if (!node->samples) {
245 node->busy = 0;
259 node->busy = 0;
266 if (!node) {
269 node->busy = 1;
270 if (node->enabled) {
271 node->enabled = 0;
272 node->count = 0;
273 node->tail = node->head;
274 node->busy = 0;
277 node->busy = 0;
476 if (node) {
477 seq_printf(m, "%d samples per second. %d virtual counters.\n", node->rate, node->num_counters);
510 node = (struct profilenode *)devtree_find_node("profiler");
511 if (!node) {
519 node->max_samples = PROFILE_MAX_SAMPLES;
520 node->samples = kmalloc(node->max_samples * sizeof(struct profile_sample), GFP_KERNEL);
521 if (!node->samples) {