Home
last modified time | relevance | path

Searched refs:rec_argv (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.15/tools/perf/
Dbuiltin-mem.c69 const char **rec_argv; in __cmd_record() local
99 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
100 if (!rec_argv) in __cmd_record()
108 free(rec_argv); in __cmd_record()
112 rec_argv[i++] = "record"; in __cmd_record()
138 rec_argv[i++] = "-W"; in __cmd_record()
140 rec_argv[i++] = "-d"; in __cmd_record()
143 rec_argv[i++] = "--phys-data"; in __cmd_record()
146 rec_argv[i++] = "--data-page-size"; in __cmd_record()
149 ret = perf_mem_events__record_args(rec_argv, &i, rec_tmp, &tmp_nr); in __cmd_record()
[all …]
Dbuiltin-kvm.c1185 const char **rec_argv; in kvm_events_record() local
1211 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in kvm_events_record()
1213 if (rec_argv == NULL) in kvm_events_record()
1217 rec_argv[i] = STRDUP_FAIL_EXIT(record_args[i]); in kvm_events_record()
1220 rec_argv[i++] = "-e"; in kvm_events_record()
1221 rec_argv[i++] = STRDUP_FAIL_EXIT(kvm_events_tp[j]); in kvm_events_record()
1224 rec_argv[i++] = STRDUP_FAIL_EXIT("-o"); in kvm_events_record()
1225 rec_argv[i++] = STRDUP_FAIL_EXIT(kvm->file_name); in kvm_events_record()
1228 rec_argv[i] = argv[j]; in kvm_events_record()
1251 return cmd_record(i, rec_argv); in kvm_events_record()
[all …]
Dbuiltin-lock.c913 const char **rec_argv; in __cmd_record() local
928 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
929 if (!rec_argv) in __cmd_record()
933 rec_argv[i] = strdup(record_args[i]); in __cmd_record()
936 rec_argv[i++] = "-e"; in __cmd_record()
937 rec_argv[i++] = strdup(lock_tracepoints[j].name); in __cmd_record()
941 rec_argv[i] = argv[j]; in __cmd_record()
945 ret = cmd_record(i, rec_argv); in __cmd_record()
946 free(rec_argv); in __cmd_record()
Dbuiltin-c2c.c2913 const char **rec_argv; in perf_c2c__record() local
2943 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in perf_c2c__record()
2944 if (!rec_argv) in perf_c2c__record()
2949 free(rec_argv); in perf_c2c__record()
2953 rec_argv[i++] = "record"; in perf_c2c__record()
2974 rec_argv[i++] = "-W"; in perf_c2c__record()
2976 rec_argv[i++] = "-d"; in perf_c2c__record()
2977 rec_argv[i++] = "--phys-data"; in perf_c2c__record()
2978 rec_argv[i++] = "--sample-cpu"; in perf_c2c__record()
2980 ret = perf_mem_events__record_args(rec_argv, &i, rec_tmp, &rec_tmp_nr); in perf_c2c__record()
[all …]
Dbuiltin-timechart.c1643 const char **rec_argv; in timechart__io_record() local
1720 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in timechart__io_record()
1722 if (rec_argv == NULL) in timechart__io_record()
1726 free(rec_argv); in timechart__io_record()
1730 p = rec_argv; in timechart__io_record()
1771 return cmd_record(rec_argc, rec_argv); in timechart__io_record()
1778 const char **rec_argv; in timechart__record() local
1838 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in timechart__record()
1840 if (rec_argv == NULL) in timechart__record()
1843 p = rec_argv; in timechart__record()
[all …]
Dbuiltin-kmem.c1844 const char **rec_argv; in __cmd_record() local
1852 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
1854 if (rec_argv == NULL) in __cmd_record()
1858 rec_argv[i] = strdup(record_args[i]); in __cmd_record()
1862 rec_argv[i] = strdup(slab_events[j]); in __cmd_record()
1865 rec_argv[i++] = strdup("-g"); in __cmd_record()
1868 rec_argv[i] = strdup(page_events[j]); in __cmd_record()
1872 rec_argv[i] = argv[j]; in __cmd_record()
1874 return cmd_record(i, rec_argv); in __cmd_record()
Dbuiltin-sched.c3351 const char **rec_argv; in __cmd_record() local
3386 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
3388 if (rec_argv == NULL) in __cmd_record()
3392 rec_argv[i] = strdup(record_args[i]); in __cmd_record()
3394 rec_argv[i++] = "-e"; in __cmd_record()
3397 rec_argv[i++] = strdup("sched:sched_waking"); in __cmd_record()
3399 rec_argv[i++] = strdup("sched:sched_wakeup"); in __cmd_record()
3402 rec_argv[i++] = strdup(schedstat_args[j]); in __cmd_record()
3405 rec_argv[i] = argv[j]; in __cmd_record()
3409 return cmd_record(i, rec_argv); in __cmd_record()
Dbuiltin-trace.c2992 const char **rec_argv; local
3012 rec_argv = calloc(rec_argc + 1, sizeof(char *));
3014 if (rec_argv == NULL || filter == NULL)
3019 rec_argv[j++] = record_args[i];
3023 rec_argv[j++] = sc_args[i];
3027 rec_argv[j++] = "raw_syscalls:sys_enter,raw_syscalls:sys_exit";
3029 rec_argv[j++] = "syscalls:sys_enter,syscalls:sys_exit";
3036 rec_argv[j++] = "--filter";
3037 rec_argv[j++] = filter;
3041 rec_argv[j++] = majpf_args[i];
[all …]
/Linux-v5.15/tools/perf/util/
Dmem-events.c184 int perf_mem_events__record_args(const char **rec_argv, int *argv_nr, in perf_mem_events__record_args() argument
204 rec_argv[i++] = "-e"; in perf_mem_events__record_args()
205 rec_argv[i++] = perf_mem_events__name(j, NULL); in perf_mem_events__record_args()
213 rec_argv[i++] = "-e"; in perf_mem_events__record_args()
220 rec_argv[i++] = s; in perf_mem_events__record_args()
Dmem-events.h46 int perf_mem_events__record_args(const char **rec_argv, int *argv_nr,