Skip to content
Snippets Groups Projects
Select Git revision
  • 7f8d4cad1e4e11a45d02bd6e024cc2812963c38a
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

input.c

Blame
  • trace.c 227.09 KiB
    // SPDX-License-Identifier: GPL-2.0
    /*
     * ring buffer based function tracer
     *
     * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com>
     * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com>
     *
     * Originally taken from the RT patch by:
     *    Arnaldo Carvalho de Melo <acme@redhat.com>
     *
     * Based on code from the latency_tracer, that is:
     *  Copyright (C) 2004-2006 Ingo Molnar
     *  Copyright (C) 2004 Nadia Yvette Chambers
     */
    #include <linux/ring_buffer.h>
    #include <generated/utsrelease.h>
    #include <linux/stacktrace.h>
    #include <linux/writeback.h>
    #include <linux/kallsyms.h>
    #include <linux/security.h>
    #include <linux/seq_file.h>
    #include <linux/notifier.h>
    #include <linux/irqflags.h>
    #include <linux/debugfs.h>
    #include <linux/tracefs.h>
    #include <linux/pagemap.h>
    #include <linux/hardirq.h>
    #include <linux/linkage.h>
    #include <linux/uaccess.h>
    #include <linux/vmalloc.h>
    #include <linux/ftrace.h>
    #include <linux/module.h>
    #include <linux/percpu.h>
    #include <linux/splice.h>
    #include <linux/kdebug.h>
    #include <linux/string.h>
    #include <linux/mount.h>
    #include <linux/rwsem.h>
    #include <linux/slab.h>
    #include <linux/ctype.h>
    #include <linux/init.h>
    #include <linux/poll.h>
    #include <linux/nmi.h>
    #include <linux/fs.h>
    #include <linux/trace.h>
    #include <linux/sched/clock.h>
    #include <linux/sched/rt.h>
    #include <linux/fsnotify.h>
    #include <linux/irq_work.h>
    #include <linux/workqueue.h>
    
    #include "trace.h"
    #include "trace_output.h"
    
    /*
     * On boot up, the ring buffer is set to the minimum size, so that
     * we do not waste memory on systems that are not using tracing.
     */
    bool ring_buffer_expanded;
    
    /*
     * We need to change this state when a selftest is running.
     * A selftest will lurk into the ring-buffer to count the
     * entries inserted during the selftest although some concurrent
     * insertions into the ring-buffer such as trace_printk could occurred
     * at the same time, giving false positive or negative results.
     */
    static bool __read_mostly tracing_selftest_running;
    
    /*