ftrace 21 drivers/hwtracing/stm/ftrace.c struct trace_export ftrace; ftrace 39 drivers/hwtracing/stm/ftrace.c struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace); ftrace 48 drivers/hwtracing/stm/ftrace.c sf->ftrace.write = stm_ftrace_write; ftrace 50 drivers/hwtracing/stm/ftrace.c return register_ftrace_export(&sf->ftrace); ftrace 57 drivers/hwtracing/stm/ftrace.c unregister_ftrace_export(&sf->ftrace); ftrace 25 kernel/trace/trace_export.c #define TRACE_SYSTEM ftrace ftrace 620 scripts/recordmcount.c const char ftrace[] = "/ftrace.o"; ftrace 621 scripts/recordmcount.c int ftrace_size = sizeof(ftrace) - 1; ftrace 654 scripts/recordmcount.c strcmp(file + (len - ftrace_size), ftrace) == 0) ftrace 133 tools/perf/builtin-ftrace.c static int reset_tracing_files(struct perf_ftrace *ftrace __maybe_unused) ftrace 154 tools/perf/builtin-ftrace.c static int set_tracing_pid(struct perf_ftrace *ftrace) ftrace 159 tools/perf/builtin-ftrace.c if (target__has_cpu(&ftrace->target)) ftrace 162 tools/perf/builtin-ftrace.c for (i = 0; i < perf_thread_map__nr(ftrace->evlist->core.threads); i++) { ftrace 164 tools/perf/builtin-ftrace.c ftrace->evlist->core.threads->map[i]); ftrace 196 tools/perf/builtin-ftrace.c static int set_tracing_cpu(struct perf_ftrace *ftrace) ftrace 198 tools/perf/builtin-ftrace.c struct perf_cpu_map *cpumap = ftrace->evlist->core.cpus; ftrace 200 tools/perf/builtin-ftrace.c if (!target__has_cpu(&ftrace->target)) ftrace 228 tools/perf/builtin-ftrace.c static int set_tracing_filters(struct perf_ftrace *ftrace) ftrace 232 tools/perf/builtin-ftrace.c ret = __set_tracing_filter("set_ftrace_filter", &ftrace->filters); ftrace 236 tools/perf/builtin-ftrace.c ret = __set_tracing_filter("set_ftrace_notrace", &ftrace->notrace); ftrace 240 tools/perf/builtin-ftrace.c ret = __set_tracing_filter("set_graph_function", &ftrace->graph_funcs); ftrace 245 tools/perf/builtin-ftrace.c __set_tracing_filter("set_graph_notrace", &ftrace->nograph_funcs); ftrace 258 tools/perf/builtin-ftrace.c static int set_tracing_depth(struct perf_ftrace *ftrace) ftrace 262 tools/perf/builtin-ftrace.c if (ftrace->graph_depth == 0) ftrace 265 tools/perf/builtin-ftrace.c if (ftrace->graph_depth < 0) { ftrace 266 tools/perf/builtin-ftrace.c pr_err("invalid graph depth: %d\n", ftrace->graph_depth); ftrace 270 tools/perf/builtin-ftrace.c snprintf(buf, sizeof(buf), "%d", ftrace->graph_depth); ftrace 278 tools/perf/builtin-ftrace.c static int __cmd_ftrace(struct perf_ftrace *ftrace, int argc, const char **argv) ftrace 303 tools/perf/builtin-ftrace.c if (reset_tracing_files(ftrace) < 0) { ftrace 312 tools/perf/builtin-ftrace.c if (argc && perf_evlist__prepare_workload(ftrace->evlist, ftrace 313 tools/perf/builtin-ftrace.c &ftrace->target, argv, false, ftrace 318 tools/perf/builtin-ftrace.c if (set_tracing_pid(ftrace) < 0) { ftrace 323 tools/perf/builtin-ftrace.c if (set_tracing_cpu(ftrace) < 0) { ftrace 328 tools/perf/builtin-ftrace.c if (set_tracing_filters(ftrace) < 0) { ftrace 333 tools/perf/builtin-ftrace.c if (set_tracing_depth(ftrace) < 0) { ftrace 338 tools/perf/builtin-ftrace.c if (write_tracing_file("current_tracer", ftrace->tracer) < 0) { ftrace 339 tools/perf/builtin-ftrace.c pr_err("failed to set current_tracer to %s\n", ftrace->tracer); ftrace 368 tools/perf/builtin-ftrace.c perf_evlist__start_workload(ftrace->evlist); ftrace 397 tools/perf/builtin-ftrace.c reset_tracing_files(ftrace); ftrace 404 tools/perf/builtin-ftrace.c struct perf_ftrace *ftrace = cb; ftrace 414 tools/perf/builtin-ftrace.c ftrace->tracer = value; ftrace 451 tools/perf/builtin-ftrace.c struct perf_ftrace ftrace = { ftrace 461 tools/perf/builtin-ftrace.c OPT_STRING('t', "tracer", &ftrace.tracer, "tracer", ftrace 463 tools/perf/builtin-ftrace.c OPT_STRING('p', "pid", &ftrace.target.pid, "pid", ftrace 467 tools/perf/builtin-ftrace.c OPT_BOOLEAN('a', "all-cpus", &ftrace.target.system_wide, ftrace 469 tools/perf/builtin-ftrace.c OPT_STRING('C', "cpu", &ftrace.target.cpu_list, "cpu", ftrace 471 tools/perf/builtin-ftrace.c OPT_CALLBACK('T', "trace-funcs", &ftrace.filters, "func", ftrace 473 tools/perf/builtin-ftrace.c OPT_CALLBACK('N', "notrace-funcs", &ftrace.notrace, "func", ftrace 475 tools/perf/builtin-ftrace.c OPT_CALLBACK('G', "graph-funcs", &ftrace.graph_funcs, "func", ftrace 477 tools/perf/builtin-ftrace.c OPT_CALLBACK('g', "nograph-funcs", &ftrace.nograph_funcs, "func", ftrace 479 tools/perf/builtin-ftrace.c OPT_INTEGER('D', "graph-depth", &ftrace.graph_depth, ftrace 484 tools/perf/builtin-ftrace.c INIT_LIST_HEAD(&ftrace.filters); ftrace 485 tools/perf/builtin-ftrace.c INIT_LIST_HEAD(&ftrace.notrace); ftrace 486 tools/perf/builtin-ftrace.c INIT_LIST_HEAD(&ftrace.graph_funcs); ftrace 487 tools/perf/builtin-ftrace.c INIT_LIST_HEAD(&ftrace.nograph_funcs); ftrace 489 tools/perf/builtin-ftrace.c ret = perf_config(perf_ftrace_config, &ftrace); ftrace 495 tools/perf/builtin-ftrace.c if (!argc && target__none(&ftrace.target)) ftrace 498 tools/perf/builtin-ftrace.c ret = target__validate(&ftrace.target); ftrace 502 tools/perf/builtin-ftrace.c target__strerror(&ftrace.target, ret, errbuf, 512); ftrace 507 tools/perf/builtin-ftrace.c ftrace.evlist = evlist__new(); ftrace 508 tools/perf/builtin-ftrace.c if (ftrace.evlist == NULL) { ftrace 513 tools/perf/builtin-ftrace.c ret = perf_evlist__create_maps(ftrace.evlist, &ftrace.target); ftrace 517 tools/perf/builtin-ftrace.c ret = __cmd_ftrace(&ftrace, argc, argv); ftrace 520 tools/perf/builtin-ftrace.c evlist__delete(ftrace.evlist); ftrace 523 tools/perf/builtin-ftrace.c delete_filter_func(&ftrace.filters); ftrace 524 tools/perf/builtin-ftrace.c delete_filter_func(&ftrace.notrace); ftrace 525 tools/perf/builtin-ftrace.c delete_filter_func(&ftrace.graph_funcs); ftrace 526 tools/perf/builtin-ftrace.c delete_filter_func(&ftrace.nograph_funcs);