Lines Matching defs:file_append
46 def file_append(path, contents):
117 file_append((procdir, 'cpuinfo'), one_cpu)
119 file_append((procdir, 'stat'), 'cpu 0 0 0 0 0 0 0\n')
121 file_append((procdir, 'stat'), 'cpu%d 0 0 0 0 0 0 0\n' % i)
131 file_append((cpudir, 'online'), '0-%d' % (len(cpus) - 1))
132 file_append((cpudir, 'possible'), '0-%d' % (len(cpus) - 1))
151 file_append((nodedir, 'cpumap'), hex_mask(cpu_list))
152 file_append((nodedir, 'meminfo'),
166 file_append((cpudir, 'online'), '1')
167 file_append((cpudir, 'topology', 'physical_package_id'),
169 file_append((cpudir, 'topology', 'core_siblings'),
171 file_append((cpudir, 'topology', 'core_id'), core_id)
172 file_append((cpudir, 'topology', 'thread_siblings'),
187 file_append((indexdir, 'level'), level)
188 file_append((indexdir, 'type'), idu_type)
189 file_append((indexdir, 'size'), "%dK" % (toMemorySize(size)/kibi))
190 file_append((indexdir, 'coherency_line_size'), line_size)
195 file_append((indexdir, 'number_of_sets'), num_sets)
196 file_append((indexdir, 'physical_line_partition'), '1')
197 file_append((indexdir, 'shared_cpu_map'), hex_mask(cpus))