trace_selftest.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) trace_selftest.c (f2cc020d7876de7583feb52ec939a32419cf9468)
1// SPDX-License-Identifier: GPL-2.0
2/* Include in trace.c */
3
4#include <uapi/linux/sched/types.h>
5#include <linux/stringify.h>
6#include <linux/kthread.h>
7#include <linux/delay.h>
8#include <linux/slab.h>

--- 864 unchanged lines hidden (view full) ---

873int
874trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
875{
876 unsigned long save_max = tr->max_latency;
877 unsigned long count;
878 int ret;
879
880 /*
1// SPDX-License-Identifier: GPL-2.0
2/* Include in trace.c */
3
4#include <uapi/linux/sched/types.h>
5#include <linux/stringify.h>
6#include <linux/kthread.h>
7#include <linux/delay.h>
8#include <linux/slab.h>

--- 864 unchanged lines hidden (view full) ---

873int
874trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
875{
876 unsigned long save_max = tr->max_latency;
877 unsigned long count;
878 int ret;
879
880 /*
881 * Now that the big kernel lock is no longer preemptable,
881 * Now that the big kernel lock is no longer preemptible,
882 * and this is called with the BKL held, it will always
883 * fail. If preemption is already disabled, simply
884 * pass the test. When the BKL is removed, or becomes
885 * preemptible again, we will once again test this,
886 * so keep it in.
887 */
888 if (preempt_count()) {
889 printk(KERN_CONT "can not test ... force ");

--- 45 unchanged lines hidden (view full) ---

935int
936trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr)
937{
938 unsigned long save_max = tr->max_latency;
939 unsigned long count;
940 int ret;
941
942 /*
882 * and this is called with the BKL held, it will always
883 * fail. If preemption is already disabled, simply
884 * pass the test. When the BKL is removed, or becomes
885 * preemptible again, we will once again test this,
886 * so keep it in.
887 */
888 if (preempt_count()) {
889 printk(KERN_CONT "can not test ... force ");

--- 45 unchanged lines hidden (view full) ---

935int
936trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr)
937{
938 unsigned long save_max = tr->max_latency;
939 unsigned long count;
940 int ret;
941
942 /*
943 * Now that the big kernel lock is no longer preemptable,
943 * Now that the big kernel lock is no longer preemptible,
944 * and this is called with the BKL held, it will always
945 * fail. If preemption is already disabled, simply
946 * pass the test. When the BKL is removed, or becomes
947 * preemptible again, we will once again test this,
948 * so keep it in.
949 */
950 if (preempt_count()) {
951 printk(KERN_CONT "can not test ... force ");

--- 245 unchanged lines hidden ---
944 * and this is called with the BKL held, it will always
945 * fail. If preemption is already disabled, simply
946 * pass the test. When the BKL is removed, or becomes
947 * preemptible again, we will once again test this,
948 * so keep it in.
949 */
950 if (preempt_count()) {
951 printk(KERN_CONT "can not test ... force ");

--- 245 unchanged lines hidden ---