~ubuntu-branches/ubuntu/vivid/numactl/vivid-proposed

« back to all changes in this revision

Viewing changes to numactl.c

  • Committer: Package Import Robot
  • Author(s): Ian Wienand
  • Date: 2014-09-09 21:33:32 UTC
  • mfrom: (1.3.12)
  • Revision ID: package-import@ubuntu.com-20140909213332-ph3qt0yq2ffozuky
Tags: 2.0.10~rc2-1
* Upgrade to 2.0.10-rc2
* Remove 001_no_numa.patch; fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                        }
120
120
                        err("sched_get_affinity");
121
121
                }
122
 
                printcpumask("physcpubind", cpubuf);
 
122
                printmask("physcpubind", cpubuf);
123
123
                break;
124
124
        }
125
125
}
130
130
        struct bitmask *membind, *interleave, *cpubind;
131
131
        unsigned long cur;
132
132
        int policy;
133
 
        int numa_num_nodes = numa_num_possible_nodes();
134
133
        
135
134
        if (numa_available() < 0) {
136
135
                show_physcpubind();
166
165
                printf("%ld (interleave next)\n",cur);
167
166
                break;
168
167
        case MPOL_BIND:
169
 
                printf("%d\n", find_first_bit(&membind, numa_num_nodes));
 
168
                printf("%d\n", find_first(membind));
170
169
                break;
171
170
        }
172
171
        if (policy == MPOL_INTERLEAVE) {
242
241
        int prevnode=-1;
243
242
        int skip=0;
244
243
        int maxnode = numa_max_node();
 
244
        
 
245
        if (numa_available() < 0) {
 
246
                printf("No NUMA available on this system\n");
 
247
                exit(1);
 
248
        }
245
249
 
246
250
        for (i=0; i<=maxnode; i++)
247
251
                if (numa_bitmask_isbitset(numa_nodes_ptr, i))