Home
last modified time | relevance | path

Searched refs:free (Results 1 – 25 of 2646) sorted by relevance

12345678910>>...106

/kernel/linux/linux-5.10/tools/perf/util/
Dparse-events.y49 free(list_evsel); in free_list_evsel()
92 %destructor { free ($$); } <str>
117 %destructor { free ($$.sys); free ($$.event); } <tracepoint_name>
121 %destructor { free ($$.ranges); } <array>
183 free($3);
200 free($1);
240 free($2);
256 free($1);
287 free(list); \
288 free($1); \
[all …]
Dexpr.c55 free(data_ptr); in expr__add_id()
56 free(old_key); in expr__add_id()
57 free(old_data); in expr__add_id()
77 free(data_ptr); in expr__add_id_val()
78 free(old_key); in expr__add_id_val()
79 free(old_data); in expr__add_id_val()
96 free(data_ptr); in expr__add_ref()
123 free(data_ptr); in expr__add_ref()
128 free(old_key); in expr__add_ref()
129 free(old_data); in expr__add_ref()
[all …]
Dllvm-utils.c107 free(env); in search_program()
178 free(buf); in read_from_pipe()
189 free(buf); in read_from_pipe()
260 free(autoconf_path); in detect_kbuild_dir()
270 free(autoconf_path); in detect_kbuild_dir()
429 free(obj_path); in llvm__dump_obj()
571 free(command_echo); in llvm__compile_bpf()
572 free(command_out); in llvm__compile_bpf()
573 free(kbuild_dir); in llvm__compile_bpf()
574 free(kbuild_include_opts); in llvm__compile_bpf()
[all …]
/kernel/linux/linux-5.10/fs/ubifs/
Dlprops.c30 return lprops->free; in get_heap_comp_val()
32 return lprops->free + lprops->dirty; in get_heap_comp_val()
402 if (lprops->free == c->leb_size) { in ubifs_categorize_lprops()
407 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops()
415 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops()
419 lprops->dirty > lprops->free) in ubifs_categorize_lprops()
421 if (lprops->free > 0) in ubifs_categorize_lprops()
522 int free, int dirty, int flags, in ubifs_change_lp() argument
532 lprops->lnum, free, dirty, flags); in ubifs_change_lp()
544 ubifs_assert(c, free == LPROPS_NC || free >= 0); in ubifs_change_lp()
[all …]
Dfind.c54 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable()
96 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb()
102 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb()
137 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty()
153 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty()
180 ubifs_assert(c, lprops->free + lprops->dirty >= min_space); in scan_for_dirty()
183 lprops->free + lprops->dirty == c->leb_size)); in scan_for_dirty()
277 sum = idx_lp->free + idx_lp->dirty; in ubifs_find_dirty_leb()
294 if (lp->dirty + lp->free < min_space) in ubifs_find_dirty_leb()
300 if (idx_lp->free + idx_lp->dirty >= lp->free + lp->dirty) in ubifs_find_dirty_leb()
[all …]
/kernel/liteos_a/apps/lms/src/
Dsample_usr_lms.c64 free(buf); in LmsMallocTest()
78 free(buf); in LmsReallocTest()
84 free(buf1); in LmsReallocTest()
98 free(buf); in LmsCallocTest()
112 free(buf); in LmsVallocTest()
127 free(buf); in LmsAlignedAllocTest()
141 free(buf); in LmsMemsetTest()
156 free(buf); in LmsMemcpyTest()
170 free(buf); in LmsMemmoveTest()
186 free(buf); in LmsStrcpyTest()
[all …]
/kernel/linux/linux-5.10/kernel/trace/
Dsynth_event_gen_test.c70 goto free; in test_gen_synth_cmd()
76 goto free; in test_gen_synth_cmd()
80 goto free; in test_gen_synth_cmd()
84 goto free; in test_gen_synth_cmd()
88 goto free; in test_gen_synth_cmd()
123 free: in test_gen_synth_cmd()
129 goto free; in test_gen_synth_cmd()
156 goto free; in test_empty_synth_event()
162 goto free; in test_empty_synth_event()
166 goto free; in test_empty_synth_event()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
Dtest_core.c126 free(cg_test); in test_cgcore_destroy()
232 free(cg_test_d); in test_cgcore_populated()
256 free(cg_test_d); in test_cgcore_populated()
257 free(cg_test_c); in test_cgcore_populated()
258 free(cg_test_b); in test_cgcore_populated()
259 free(cg_test_a); in test_cgcore_populated()
325 free(child); in test_cgcore_invalid_domain()
326 free(parent); in test_cgcore_invalid_domain()
327 free(grandparent); in test_cgcore_invalid_domain()
364 free(child); in test_cgcore_parent_becomes_threaded()
[all …]
Dtest_kmem.c85 free(cg); in test_kmem_basic()
110 free(tinfo); in alloc_kmem_smp()
121 free(tinfo); in alloc_kmem_smp()
139 free(child); in cg_run_in_subcgroups()
145 free(child); in cg_run_in_subcgroups()
150 free(child); in cg_run_in_subcgroups()
205 free(parent); in test_kmem_memcg_deletion()
257 free(tinfo); in spawn_1000_threads()
266 free(tinfo); in spawn_1000_threads()
292 free(cg); in test_kmem_kernel_stacks()
[all …]
/kernel/linux/linux-5.10/scripts/coccinelle/free/
Dkfree.cocci2 /// Find a use after free.
19 @free@
32 expression free.E,E2;
55 expression free.E;
79 expression free.E, subE<=free.E, E2;
83 position free.p1!=loop.ok,p2!={print.p,sz.p};
121 p1 << free.p1;
129 p1 << free.p1;
133 msg = "ERROR: reference preceded by free on line %s" % (p1[0].line)
/kernel/linux/linux-5.10/tools/iio/
Diio_utils.c49 free(current); in iioutils_break_up_name()
66 free(current); in iioutils_break_up_name()
172 free(filename); in iioutils_get_type()
190 free(filename); in iioutils_get_type()
197 free(builtname_generic); in iioutils_get_type()
199 free(builtname); in iioutils_get_type()
201 free(scan_el_dir); in iioutils_get_type()
270 free(filename); in iioutils_get_param_float()
277 free(builtname_generic); in iioutils_get_param_float()
279 free(builtname); in iioutils_get_param_float()
[all …]
/kernel/linux/linux-5.10/tools/lib/traceevent/
Devent-plugin.c89 free(op_val); in update_option_value()
127 free(name); in tep_plugin_list_options()
138 free(list[count]); in tep_plugin_list_options()
139 free(list); in tep_plugin_list_options()
155 free(list[i]); in tep_plugin_free_options_list()
157 free(list); in tep_plugin_free_options_list()
208 free(plugin); in update_option()
251 free(reg); in tep_plugin_remove_options()
343 free(op->value); in tep_plugin_add_option()
352 free(plugin); in tep_plugin_add_option()
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_extfree_item.c418 struct xfs_extent_free_item *free) in xfs_extent_free_log_item() argument
434 extp->ext_start = free->xefi_startblock; in xfs_extent_free_log_item()
435 extp->ext_len = free->xefi_blockcount; in xfs_extent_free_log_item()
447 struct xfs_extent_free_item *free; in xfs_extent_free_create_intent() local
454 list_for_each_entry(free, items, xefi_list) in xfs_extent_free_create_intent()
455 xfs_extent_free_log_item(tp, efip, free); in xfs_extent_free_create_intent()
477 struct xfs_extent_free_item *free; in xfs_extent_free_finish_item() local
480 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_finish_item()
482 free->xefi_startblock, in xfs_extent_free_finish_item()
483 free->xefi_blockcount, in xfs_extent_free_finish_item()
[all …]
/kernel/liteos_a/fs/vfs/vfs_cmd/
Dvfs_shellcmd.c104 free(fullpath_bak); in osShellCmdDoChdir()
114 free(fullpath_bak); in osShellCmdDoChdir()
121 free(fullpath_bak); in osShellCmdDoChdir()
148 free(fullpath); in osShellCmdLs()
216 free(fullpath); in osShellCmdDoCatShow()
244 free(fullpath); in osShellCmdCat()
251 free(fullpath); in osShellCmdCat()
265 free(fullpath); in osShellCmdCat()
339 free(fullpath); in osShellCmdMount()
376 free(fullpath); in osShellCmdMount()
[all …]
/kernel/liteos_m/components/shell/src/cmds/
Dvfs_shellcmd.c96 free(fullpathBak); in OsShellCmdDoChdir()
109 free(fullpathBak); in OsShellCmdDoChdir()
116 free(fullpathBak); in OsShellCmdDoChdir()
135 free(fullpath); in OsLsGetFullpath()
147 free(fullpath); in OsLsGetFullpath()
184 free(path); in OsLs()
193 free(path); in OsLs()
209 free(fullpathBak); in OsLs()
213 free(path); in OsLs()
240 free(fullpath); in OsShellCmdLs()
[all …]
/kernel/liteos_a/testsuites/unittest/container/full/
DIt_pid_container_006.cpp51 free(pstk); in ChildFun()
59 free(pstk); in ChildFun()
65 free(pstk); in ChildFun()
73 free(pstk); in ChildFun()
77 free(pstk); in ChildFun()
89 free(pstk); in ItPidContainer006()
DIt_pid_container_004.cpp47 free(pstk); in ChildFunClone2()
51 free(pstk); in ChildFunClone2()
68 free(pstk); in ChildFunClone1()
82 free(pstk); in ChildFunClone1()
86 free(pstk); in ChildFunClone1()
97 free(pstk); in ItPidContainer004()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
Dvsp1_dl.c106 struct list_head free; member
138 struct list_head free; member
161 struct list_head free; member
222 struct list_head free; member
285 INIT_LIST_HEAD(&pool->free); in vsp1_dl_body_pool_create()
296 list_add_tail(&dlb->free, &pool->free); in vsp1_dl_body_pool_create()
336 if (!list_empty(&pool->free)) { in vsp1_dl_body_get()
337 dlb = list_first_entry(&pool->free, struct vsp1_dl_body, free); in vsp1_dl_body_get()
338 list_del(&dlb->free); in vsp1_dl_body_get()
366 list_add_tail(&dlb->free, &dlb->pool->free); in vsp1_dl_body_put()
[all …]
/kernel/linux/linux-5.10/scripts/kconfig/
Dpreprocess.c58 free(e->name); in env_del()
59 free(e->value); in env_del()
60 free(e); in env_del()
293 free(v->value); in variable_add()
318 free(new_value); in variable_add()
327 free(v->name); in variable_del()
328 free(v->value); in variable_del()
329 free(v); in variable_del()
416 goto free; in eval_clause()
421 goto free; in eval_clause()
[all …]
/kernel/linux/linux-5.10/fs/reiserfs/
Ditem_ops.c68 static int sd_check_left(struct virtual_item *vi, int free, in sd_check_left() argument
75 static int sd_check_right(struct virtual_item *vi, int free) in sd_check_right() argument
158 static int direct_check_left(struct virtual_item *vi, int free, in direct_check_left() argument
163 bytes = free - free % 8; in direct_check_left()
167 static int direct_check_right(struct virtual_item *vi, int free) in direct_check_right() argument
169 return direct_check_left(vi, free, 0, 0); in direct_check_right()
296 static int indirect_check_left(struct virtual_item *vi, int free, in indirect_check_left() argument
301 bytes = free - free % UNFM_P_SIZE; in indirect_check_left()
305 static int indirect_check_right(struct virtual_item *vi, int free) in indirect_check_right() argument
307 return indirect_check_left(vi, free, 0, 0); in indirect_check_right()
[all …]
/kernel/linux/linux-5.10/drivers/nvdimm/
Dlabel.c309 unsigned long **free, u32 *nslot) in preamble_index() argument
317 *free = (unsigned long *) nsindex->free; in preamble_index()
335 unsigned long **free, u32 *nslot) in preamble_current() argument
338 free, nslot); in preamble_current()
343 unsigned long **free, u32 *nslot) in preamble_next() argument
346 free, nslot); in preamble_next()
377 unsigned long *free; in nd_label_reserve_dpa() local
380 if (!preamble_current(ndd, &nsindex, &free, &nslot)) in nd_label_reserve_dpa()
383 for_each_clear_bit_le(slot, free, nslot) { in nd_label_reserve_dpa()
498 if (test_bit_le(i, nsindex->free)) { in nd_label_data_init()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dfastmap-wl.c45 wl_tree_add(e, &ubi->free); in return_unused_peb()
79 if (!ubi->free.rb_node || (ubi->free_count - ubi->beb_rsvd_pebs < 1)) in ubi_wl_get_fm_peb()
83 e = find_anchor_wl_entry(&ubi->free); in ubi_wl_get_fm_peb()
85 e = find_mean_wl_entry(ubi, &ubi->free); in ubi_wl_get_fm_peb()
90 self_check_in_wl_tree(ubi, e, &ubi->free); in ubi_wl_get_fm_peb()
94 rb_erase(&e->u.rb, &ubi->free); in ubi_wl_get_fm_peb()
117 if (!ubi->free.rb_node) in has_enough_free_count()
147 wl_tree_add(ubi->fm_anchor, &ubi->free); in ubi_refill_pools()
178 e = find_wl_entry(ubi, &ubi->free, WL_FREE_MAX_DIFF); in ubi_refill_pools()
179 self_check_in_wl_tree(ubi, e, &ubi->free); in ubi_refill_pools()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
Denic_clsf.c81 enic->rfs_h.free = enic->rfs_h.max; in enic_rfs_flw_tbl_init()
101 enic->rfs_h.free++; in enic_rfs_flw_tbl_free()
148 enic->rfs_h.free++; in enic_flow_may_expire()
207 i = --enic->rfs_h.free; in enic_rx_flow_steer()
210 enic->rfs_h.free++; in enic_rx_flow_steer()
217 enic->rfs_h.free++; in enic_rx_flow_steer()
226 enic->rfs_h.free++; in enic_rx_flow_steer()
245 enic->rfs_h.free++; in enic_rx_flow_steer()
253 i = --enic->rfs_h.free; in enic_rx_flow_steer()
255 enic->rfs_h.free++; in enic_rx_flow_steer()
[all …]
/kernel/liteos_a/apps/shell/src/
Dshcmd.c47 free((cmdParsed->paramArray[i])); in OsFreeCmdPara()
65 free(tempStr); in OsStrSeparateTabStrGet()
73 free(tempStr); in OsStrSeparateTabStrGet()
83 free(tempStr); in OsStrSeparateTabStrGet()
89 free(tempStr); in OsStrSeparateTabStrGet()
353 free(dirOpen); in OsTabMatchFile()
363 free(dirOpen); in OsTabMatchFile()
367 free(dirOpen); in OsTabMatchFile()
372 free(dirOpen); in OsTabMatchFile()
442 free(outputBak); in OsCmdKeyShift()
[all …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/
Djevents.c323 free(topic); in add_topic()
412 #define FREE_EVENT_FIELD(field) free(es->field)
444 free(es); in free_arch_std_events()
461 free(es); in save_arch_std_events()
578 free(code); in json_events()
583 free(code); in json_events()
683 free(event); in json_events()
684 free(je.desc); in json_events()
685 free(je.name); in json_events()
686 free(je.long_desc); in json_events()
[all …]

12345678910>>...106