builtin-trace.c (c24ff998fc420891f17d73acab6766823d492175) builtin-trace.c (ac9be8ee4ecdeae73c78d84ebfe37009e11cf99d)
1#include <traceevent/event-parse.h>
2#include "builtin.h"
3#include "util/color.h"
4#include "util/evlist.h"
5#include "util/machine.h"
6#include "util/thread.h"
7#include "util/parse-options.h"
8#include "util/strlist.h"

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

688 const char *output_name = NULL;
689 const char *ev_qualifier_str = NULL;
690 const struct option trace_options[] = {
691 OPT_STRING('e', "expr", &ev_qualifier_str, "expr",
692 "list of events to trace"),
693 OPT_STRING('o', "output", &output_name, "file", "output file name"),
694 OPT_STRING('p', "pid", &trace.opts.target.pid, "pid",
695 "trace events on existing process id"),
1#include <traceevent/event-parse.h>
2#include "builtin.h"
3#include "util/color.h"
4#include "util/evlist.h"
5#include "util/machine.h"
6#include "util/thread.h"
7#include "util/parse-options.h"
8#include "util/strlist.h"

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

688 const char *output_name = NULL;
689 const char *ev_qualifier_str = NULL;
690 const struct option trace_options[] = {
691 OPT_STRING('e', "expr", &ev_qualifier_str, "expr",
692 "list of events to trace"),
693 OPT_STRING('o', "output", &output_name, "file", "output file name"),
694 OPT_STRING('p', "pid", &trace.opts.target.pid, "pid",
695 "trace events on existing process id"),
696 OPT_STRING(0, "tid", &trace.opts.target.tid, "tid",
696 OPT_STRING('t', "tid", &trace.opts.target.tid, "tid",
697 "trace events on existing thread id"),
697 "trace events on existing thread id"),
698 OPT_BOOLEAN(0, "all-cpus", &trace.opts.target.system_wide,
698 OPT_BOOLEAN('a', "all-cpus", &trace.opts.target.system_wide,
699 "system-wide collection from all CPUs"),
699 "system-wide collection from all CPUs"),
700 OPT_STRING(0, "cpu", &trace.opts.target.cpu_list, "cpu",
700 OPT_STRING('C', "cpu", &trace.opts.target.cpu_list, "cpu",
701 "list of cpus to monitor"),
701 "list of cpus to monitor"),
702 OPT_BOOLEAN(0, "no-inherit", &trace.opts.no_inherit,
702 OPT_BOOLEAN('i', "no-inherit", &trace.opts.no_inherit,
703 "child tasks do not inherit counters"),
703 "child tasks do not inherit counters"),
704 OPT_UINTEGER(0, "mmap-pages", &trace.opts.mmap_pages,
704 OPT_UINTEGER('m', "mmap-pages", &trace.opts.mmap_pages,
705 "number of mmap data pages"),
705 "number of mmap data pages"),
706 OPT_STRING(0, "uid", &trace.opts.target.uid_str, "user",
706 OPT_STRING('u', "uid", &trace.opts.target.uid_str, "user",
707 "user to profile"),
708 OPT_CALLBACK(0, "duration", &trace, "float",
709 "show only events with duration > N.M ms",
710 trace__set_duration),
711 OPT_BOOLEAN(0, "sched", &trace.sched, "show blocking scheduler events"),
712 OPT_END()
713 };
714 int err;

--- 50 unchanged lines hidden ---
707 "user to profile"),
708 OPT_CALLBACK(0, "duration", &trace, "float",
709 "show only events with duration > N.M ms",
710 trace__set_duration),
711 OPT_BOOLEAN(0, "sched", &trace.sched, "show blocking scheduler events"),
712 OPT_END()
713 };
714 int err;

--- 50 unchanged lines hidden ---