Searched refs:log (Results 1 – 4 of 4) sorted by relevance
/kernel/bpf/ |
D | btf.c | 286 struct bpf_verifier_log log; member 1367 __printf(2, 3) static void __btf_verifier_log(struct bpf_verifier_log *log, in __btf_verifier_log() argument 1373 bpf_verifier_vlog(log, fmt, args); in __btf_verifier_log() 1380 struct bpf_verifier_log *log = &env->log; in btf_verifier_log() local 1383 if (!bpf_verifier_log_needed(log)) in btf_verifier_log() 1387 bpf_verifier_vlog(log, fmt, args); in btf_verifier_log() 1396 struct bpf_verifier_log *log = &env->log; in __btf_verifier_log_type() local 1400 if (!bpf_verifier_log_needed(log)) in __btf_verifier_log_type() 1403 if (log->level == BPF_LOG_KERNEL) { in __btf_verifier_log_type() 1416 __btf_verifier_log(log, "[%u] %s %s%s", in __btf_verifier_log_type() [all …]
|
D | verifier.c | 294 void bpf_verifier_vlog(struct bpf_verifier_log *log, const char *fmt, in bpf_verifier_vlog() argument 299 n = vscnprintf(log->kbuf, BPF_VERIFIER_TMP_LOG_SIZE, fmt, args); in bpf_verifier_vlog() 304 if (log->level == BPF_LOG_KERNEL) { in bpf_verifier_vlog() 305 bool newline = n > 0 && log->kbuf[n - 1] == '\n'; in bpf_verifier_vlog() 307 pr_err("BPF: %s%s", log->kbuf, newline ? "" : "\n"); in bpf_verifier_vlog() 311 n = min(log->len_total - log->len_used - 1, n); in bpf_verifier_vlog() 312 log->kbuf[n] = '\0'; in bpf_verifier_vlog() 313 if (!copy_to_user(log->ubuf + log->len_used, log->kbuf, n + 1)) in bpf_verifier_vlog() 314 log->len_used += n; in bpf_verifier_vlog() 316 log->ubuf = NULL; in bpf_verifier_vlog() [all …]
|
D | bpf_struct_ops.c | 104 void bpf_struct_ops_init(struct btf *btf, struct bpf_verifier_log *log) in bpf_struct_ops_init() argument 179 btf_distill_func_proto(log, btf, in bpf_struct_ops_init()
|
/kernel/ |
D | seccomp.c | 224 bool log; member 897 filter->log = true; in seccomp_attach_filter() 957 bool log = false; in seccomp_log() local 963 log = requested && seccomp_actions_logged & SECCOMP_LOG_TRAP; in seccomp_log() 966 log = requested && seccomp_actions_logged & SECCOMP_LOG_ERRNO; in seccomp_log() 969 log = requested && seccomp_actions_logged & SECCOMP_LOG_TRACE; in seccomp_log() 972 log = requested && seccomp_actions_logged & SECCOMP_LOG_USER_NOTIF; in seccomp_log() 975 log = seccomp_actions_logged & SECCOMP_LOG_LOG; in seccomp_log() 978 log = seccomp_actions_logged & SECCOMP_LOG_KILL_THREAD; in seccomp_log() 982 log = seccomp_actions_logged & SECCOMP_LOG_KILL_PROCESS; in seccomp_log() [all …]
|