Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 19 of 19) sorted by relevance

/kernel/debug/kdb/
Dkdb_private.h34 #define KDB_DEBUG(flag) (kdb_flags & \ argument
35 (KDB_DEBUG_FLAG_##flag << KDB_DEBUG_FLAG_SHIFT))
86 extern int kallsyms_symbol_next(char *prefix_name, int flag, int buf_size);
147 #define KDB_STATE(flag) (kdb_state & KDB_STATE_##flag) argument
148 #define KDB_STATE_SET(flag) ((void)(kdb_state |= KDB_STATE_##flag)) argument
149 #define KDB_STATE_CLEAR(flag) ((void)(kdb_state &= ~KDB_STATE_##flag)) argument
Dkdb_support.c170 int kallsyms_symbol_next(char *prefix_name, int flag, int buf_size) in kallsyms_symbol_next() argument
176 if (!flag) in kallsyms_symbol_next()
/kernel/trace/
Dtrace_probe.h261 unsigned int flag) in trace_probe_test_flag() argument
263 return !!(tp->event->flags & flag); in trace_probe_test_flag()
267 unsigned int flag) in trace_probe_set_flag() argument
269 tp->event->flags |= flag; in trace_probe_set_flag()
273 unsigned int flag) in trace_probe_clear_flag() argument
275 tp->event->flags &= ~flag; in trace_probe_clear_flag()
Dftrace.c2141 unsigned long flag = 0UL; in ftrace_check_record() local
2160 flag = FTRACE_FL_ENABLED; in ftrace_check_record()
2168 if (flag) { in ftrace_check_record()
2171 flag |= FTRACE_FL_REGS; in ftrace_check_record()
2175 flag |= FTRACE_FL_TRAMP; in ftrace_check_record()
2190 flag |= FTRACE_FL_DIRECT; in ftrace_check_record()
2192 flag |= FTRACE_FL_DIRECT; in ftrace_check_record()
2197 if ((rec->flags & FTRACE_FL_ENABLED) == flag) in ftrace_check_record()
2200 if (flag) { in ftrace_check_record()
2202 flag ^= rec->flags & FTRACE_FL_ENABLED; in ftrace_check_record()
[all …]
Dring_buffer.c4486 static void __set_head_page_flag(struct buffer_page *head, int flag) in __set_head_page_flag() argument
4490 prev->next = (struct list_head *)(((unsigned long)prev->next & ~RB_FLAG_MASK) | flag); in __set_head_page_flag()
4508 ring_buffer_search_footer(struct buffer_page *start, unsigned long flag) in ring_buffer_search_footer() argument
4510 bool search_writer = flag == RB_PAGE_FT_COMMIT; in ring_buffer_search_footer()
4518 if (flag & status) in ring_buffer_search_footer()
Dtrace.c293 struct ring_buffer_event *event, int flag) in trace_process_export() argument
298 if (export->flags & flag) { in trace_process_export()
337 static void ftrace_exports(struct ring_buffer_event *event, int flag) in ftrace_exports() argument
345 trace_process_export(export, event, flag); in ftrace_exports()
DKconfig50 by default, even without setting the REGS flag in the ftrace_ops.
/kernel/
Dpanic.c514 int test_taint(unsigned flag) in test_taint() argument
516 return test_bit(flag, &tainted_mask); in test_taint()
533 void add_taint(unsigned flag, enum lockdep_ok lockdep_ok) in add_taint() argument
538 set_bit(flag, &tainted_mask); in add_taint()
/kernel/kcsan/
Dkcsan_test.c492 long *flag = &test_struct.val[0]; \
505 cmpxchg_acquire(flag, 0, 1) == 0,
506 smp_store_release(flag, 0));
508 cmpxchg_relaxed(flag, 0, 1) == 0,
509 WRITE_ONCE(*flag, 0));
511 __atomic_compare_exchange_n(flag, &v, 1, 0, __ATOMIC_ACQUIRE, __ATOMIC_RELAXED),
512 __atomic_store_n(flag, 0, __ATOMIC_RELEASE));
514 __atomic_compare_exchange_n(flag, &v, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED),
515 __atomic_store_n(flag, 0, __ATOMIC_RELAXED));
/kernel/locking/
Dmutex.c191 static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag) in __mutex_set_flag() argument
193 atomic_long_or(flag, &lock->owner); in __mutex_set_flag()
196 static inline void __mutex_clear_flag(struct mutex *lock, unsigned long flag) in __mutex_clear_flag() argument
198 atomic_long_andnot(flag, &lock->owner); in __mutex_clear_flag()
/kernel/dma/
Dmapping.c497 gfp_t flag, unsigned long attrs) in dma_alloc_attrs() argument
508 flag &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM); in dma_alloc_attrs()
511 cpu_addr = dma_direct_alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
513 cpu_addr = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
DKconfig18 # flag in struct device where applicable
/kernel/sched/
Dsched.h1818 static inline struct sched_domain *highest_flag_domain(int cpu, int flag) in highest_flag_domain() argument
1823 if (!(sd->flags & flag)) in highest_flag_domain()
1831 static inline struct sched_domain *lowest_flag_domain(int cpu, int flag) in lowest_flag_domain() argument
1836 if (sd->flags & flag) in lowest_flag_domain()
Dtopology.c59 unsigned int flag = BIT(idx); in sched_domain_debug_one() local
63 !(sd->child->flags & flag)) in sched_domain_debug_one()
68 !(sd->parent->flags & flag)) in sched_domain_debug_one()
/kernel/bpf/
Dbtf.c5484 u32 type, flag; in btf_ctx_access() local
5487 flag = type_flag(ctx_arg_info->reg_type); in btf_ctx_access()
5489 (flag & PTR_MAYBE_NULL)) { in btf_ctx_access()
5579 u32 *next_btf_id, enum bpf_type_flag *flag) in btf_struct_walk() argument
5794 *flag = tmp_flag; in btf_struct_walk()
5805 if (off + size > mtrue_end && !(*flag & PTR_UNTRUSTED)) { in btf_struct_walk()
5821 u32 *next_btf_id, enum bpf_type_flag *flag) in btf_struct_access() argument
5836 *flag = tmp_flag; in btf_struct_access()
5882 enum bpf_type_flag flag; in btf_struct_ids_match() local
5898 err = btf_struct_walk(log, btf, type, off, 1, &id, &flag); in btf_struct_ids_match()
Dverifier.c1747 enum bpf_type_flag flag) in mark_btf_ld_reg() argument
1754 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg()
2287 struct bpf_reg_state *parent, u8 flag) in mark_reg_read() argument
2305 if ((parent->live & REG_LIVE_READ) == flag || in mark_reg_read()
2318 parent->live |= flag; in mark_reg_read()
2320 if (flag == REG_LIVE_READ64) in mark_reg_read()
4769 enum bpf_type_flag flag = 0; in check_ptr_to_btf_access() local
4805 off, size, atype, &btf_id, &flag); in check_ptr_to_btf_access()
4813 atype, &btf_id, &flag); in check_ptr_to_btf_access()
4823 flag |= PTR_UNTRUSTED; in check_ptr_to_btf_access()
[all …]
/kernel/printk/
Dprintk.c2555 int flag = 0; in console_cpu_notify() local
2557 trace_android_vh_printk_hotplug(&flag); in console_cpu_notify()
2558 if (flag) in console_cpu_notify()
/kernel/module/
Dmain.c162 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module() argument
165 add_taint(flag, lockdep_ok); in add_taint_module()
166 set_bit(flag, &mod->taints); in add_taint_module()
DKconfig30 --force). Forced module loading sets the 'F' (forced) taint flag and