auxtrace.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | auxtrace.c (a818c563ae16640e00389a39e7b0e7ae4bd3d64c) |
---|---|
1/* 2 * auxtrace.c: AUX area trace support 3 * Copyright (c) 2013-2015, Intel Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * --- 878 unchanged lines hidden (view full) --- 887 if (dump_trace) 888 fprintf(stdout, " type: %u\n", type); 889 890 switch (type) { 891 case PERF_AUXTRACE_INTEL_PT: 892 return intel_pt_process_auxtrace_info(event, session); 893 case PERF_AUXTRACE_INTEL_BTS: 894 return intel_bts_process_auxtrace_info(event, session); | 1/* 2 * auxtrace.c: AUX area trace support 3 * Copyright (c) 2013-2015, Intel Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * --- 878 unchanged lines hidden (view full) --- 887 if (dump_trace) 888 fprintf(stdout, " type: %u\n", type); 889 890 switch (type) { 891 case PERF_AUXTRACE_INTEL_PT: 892 return intel_pt_process_auxtrace_info(event, session); 893 case PERF_AUXTRACE_INTEL_BTS: 894 return intel_bts_process_auxtrace_info(event, session); |
895 case PERF_AUXTRACE_CS_ETM: |
|
895 case PERF_AUXTRACE_UNKNOWN: 896 default: 897 return -EINVAL; 898 } 899} 900 901s64 perf_event__process_auxtrace(struct perf_tool *tool, 902 union perf_event *event, --- 32 unchanged lines hidden (view full) --- 935 synth_opts->instructions = true; 936 synth_opts->branches = true; 937 synth_opts->transactions = true; 938 synth_opts->errors = true; 939 synth_opts->period_type = PERF_ITRACE_DEFAULT_PERIOD_TYPE; 940 synth_opts->period = PERF_ITRACE_DEFAULT_PERIOD; 941 synth_opts->callchain_sz = PERF_ITRACE_DEFAULT_CALLCHAIN_SZ; 942 synth_opts->last_branch_sz = PERF_ITRACE_DEFAULT_LAST_BRANCH_SZ; | 896 case PERF_AUXTRACE_UNKNOWN: 897 default: 898 return -EINVAL; 899 } 900} 901 902s64 perf_event__process_auxtrace(struct perf_tool *tool, 903 union perf_event *event, --- 32 unchanged lines hidden (view full) --- 936 synth_opts->instructions = true; 937 synth_opts->branches = true; 938 synth_opts->transactions = true; 939 synth_opts->errors = true; 940 synth_opts->period_type = PERF_ITRACE_DEFAULT_PERIOD_TYPE; 941 synth_opts->period = PERF_ITRACE_DEFAULT_PERIOD; 942 synth_opts->callchain_sz = PERF_ITRACE_DEFAULT_CALLCHAIN_SZ; 943 synth_opts->last_branch_sz = PERF_ITRACE_DEFAULT_LAST_BRANCH_SZ; |
944 synth_opts->initial_skip = 0; |
|
943} 944 945/* 946 * Please check tools/perf/Documentation/perf-script.txt for information 947 * about the options parsed here, which is introduced after this cset, 948 * when support in 'perf script' for these options is introduced. 949 */ 950int itrace_parse_synth_opts(const struct option *opt, const char *str, --- 108 unchanged lines hidden (view full) --- 1059 val = strtoul(p, &endptr, 10); 1060 p = endptr; 1061 if (!val || 1062 val > PERF_ITRACE_MAX_LAST_BRANCH_SZ) 1063 goto out_err; 1064 synth_opts->last_branch_sz = val; 1065 } 1066 break; | 945} 946 947/* 948 * Please check tools/perf/Documentation/perf-script.txt for information 949 * about the options parsed here, which is introduced after this cset, 950 * when support in 'perf script' for these options is introduced. 951 */ 952int itrace_parse_synth_opts(const struct option *opt, const char *str, --- 108 unchanged lines hidden (view full) --- 1061 val = strtoul(p, &endptr, 10); 1062 p = endptr; 1063 if (!val || 1064 val > PERF_ITRACE_MAX_LAST_BRANCH_SZ) 1065 goto out_err; 1066 synth_opts->last_branch_sz = val; 1067 } 1068 break; |
1069 case 's': 1070 synth_opts->initial_skip = strtoul(p, &endptr, 10); 1071 if (p == endptr) 1072 goto out_err; 1073 p = endptr; 1074 break; |
|
1067 case ' ': 1068 case ',': 1069 break; 1070 default: 1071 goto out_err; 1072 } 1073 } 1074out: --- 319 unchanged lines hidden --- | 1075 case ' ': 1076 case ',': 1077 break; 1078 default: 1079 goto out_err; 1080 } 1081 } 1082out: --- 319 unchanged lines hidden --- |