aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-13perf header: Write bpf_prog (infos|btfs)_cnt to data fileThomas Falcon1-8/+2
2025-07-25perf header: Clean up use of perf_envIan Rogers1-76/+98
2025-07-25perf evlist: Change env variable to sessionIan Rogers1-1/+1
2025-07-25perf build-id: Change sprintf functions to snprintfIan Rogers1-1/+1
2025-07-24libperf evsel: Rename own_cpus to pmu_cpusIan Rogers1-2/+2
2025-07-03perf header: Fix pipe mode header dumpingIan Rogers1-1/+14
2025-06-25perf header: Don't write empty BPF/BTF infoIan Rogers1-2/+8
2025-06-25perf header: Display message if BPF/BTF info is emptyIan Rogers1-0/+6
2025-06-25perf header: Allow tracing of attr eventsIan Rogers1-0/+8
2025-06-25perf header: In pipe mode dump features without --header/-IIan Rogers1-14/+8
2025-06-20perf record: collect BPF metadata from new programsBlake Jones1-0/+1
2025-06-20perf header: remove unecessary core id testAnubhav Shelat1-16/+0
2025-03-24perf report: Fix a memory leak for perf_env on AMDNamhyung Kim1-0/+2
2025-02-24perf header: Switch mem topology to io_dir__readdirIan Rogers1-15/+16
2024-12-10perf header: Fix one memory leakage in process_bpf_prog_info()Zhongqiu Han1-1/+4
2024-12-10perf header: Fix one memory leakage in process_bpf_btf()Zhongqiu Han1-1/+2
2024-11-16perf header: Pass a perf_cpu rather than a PMU to get_cpuid_strIan Rogers1-1/+21
2024-11-16perf header: Refactor get_cpuid to take a CPU for ARMIan Rogers1-4/+5
2024-11-16perf header: Move is_cpu_online to numa benchIan Rogers1-51/+0
2024-11-08perf build: Include libtraceevent headers directly indicated by pkg-configYicong Yang1-1/+1
2024-08-30perf header: Remove repipe optionIan Rogers1-14/+5
2024-08-30perf inject: Overhaul handling of pipe filesIan Rogers1-6/+6
2024-08-29perf header: Allow attributes to be written after dataIan Rogers1-39/+67
2024-08-29perf header: Fail read if header sections overlapIan Rogers1-0/+18
2024-08-12perf tool: Constify tool pointersIan Rogers1-3/+3
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-4/+4
2024-01-03perf env: Avoid recursively taking env->bpf_progs.lockIan Rogers1-4/+4
2023-12-13perf header: Fix one memory leakage in perf_event__fprintf_event_update()Yicong Yang1-2/+3
2023-11-27perf header: Fix segfault on build_mem_topology() error pathAdrian Hunter1-1/+3
2023-11-10perf header: Additional note on AMD IBS for max_precise pmu capArnaldo Carvalho de Melo1-0/+8
2023-11-06perf header: Support num and width of branch countersKan Liang1-3/+15
2023-10-12perf header: Fix various error path memory leaksIan Rogers1-26/+34
2023-08-29perf tools: Convert to perf_record_header_attr_id()Namhyung Kim1-1/+1
2023-08-29perf tools: Handle old data in PERF_RECORD_ATTRNamhyung Kim1-5/+6
2023-08-29perf tools: Allow to use cpuinfo on LoongArchYanteng Si1-0/+2
2023-08-25perf pmu: Remove logic for PMU name being NULLIan Rogers1-7/+1
2023-08-25perf header: Fix missing PMU capsIan Rogers1-15/+16
2023-06-12perf header: Avoid out-of-bounds readIan Rogers1-1/+1
2023-06-12perf header: Ensure bitmaps are freedIan Rogers1-2/+10
2023-05-28perf header: Make nodes dynamic in write_mem_topology()Ian Rogers1-16/+25
2023-05-27perf pmus: Remove perf_pmus__has_hybridIan Rogers1-1/+1
2023-05-27perf pmus: Allow just core PMU scanningIan Rogers1-4/+1
2023-05-27perf pmu: Separate pmu and pmusIan Rogers1-7/+8
2023-05-27perf header: Avoid hybrid PMU list in write_pmu_capsIan Rogers1-8/+11
2023-05-23perf: Extract building cache level for a CPU into separate functionK Prateek Nayak1-23/+39
2023-03-13perf evlist: Remove nr_groupsIan Rogers1-2/+1
2022-12-14perf build: Use libtraceevent from the systemIan Rogers1-0/+19
2022-12-05perf tools: Use dedicated non-atomic clear/set bit helpersSean Christopherson1-4/+4
2022-10-04perf events: Prefer union over variable length arrayIan Rogers1-16/+8
2022-07-18Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-0/+14
2022-06-26perf inject: Adjust output data offset for backward compatibilityRaul Silvera1-0/+14
2022-06-24perf header: Record non-CPU PMU capabilitiesRavi Bangoria1-71/+89
2022-06-24perf header: Store PMU caps in an array of stringsRavi Bangoria1-29/+34
2022-06-24perf header: Pass "cpu" pmu name while printing capsRavi Bangoria1-9/+3
2022-06-23perf script: Add some missing event dumpsAdrian Hunter1-0/+3
2022-05-23perf inject: Keep some features sections from input fileAdrian Hunter1-0/+8
2022-05-23perf header: Add ability to keep feature sectionsAdrian Hunter1-8/+46
2022-04-14perf bench: Fix numa testcase to check if CPU used to bind task is onlineAthira Rajeev1-0/+51
2022-03-22perf header: Fix spelling mistake "could't" -> "couldn't"Colin Ian King1-1/+1
2022-03-12perf tools: Set build-id using build-id header on new mmap recordsJames Clark1-0/+1
2022-01-12perf cpumap: Give CPUs their own typeIan Rogers1-3/+3
2021-12-06perf header: Fix memory leaks when processing feature headersIan Rogers1-5/+10
2021-11-18perf evsel: Fix memory leaks relating to unitIan Rogers1-3/+5
2021-11-13perf cputopo: Match thread_siblings to topology ABI nameIan Rogers1-3/+3
2021-11-13perf cputopo: Match die_siblings to topology ABI nameIan Rogers1-4/+4
2021-11-13perf cputopo: Update to use pakage_cpusIan Rogers1-3/+3
2021-11-01perf bpf: Pull in bpf_program__get_prog_info_linear()Dave Marchevsky1-6/+7
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+2
2021-09-08tools: rename bitmap_alloc() to bitmap_zalloc()Andy Shevchenko1-2/+2
2021-08-31perf header: Fix spelling mistake "cant'" -> "can't"Colin Ian King1-1/+1
2021-08-02perf tools: Pass a fd to perf_file_header__read_pipe()Namhyung Kim1-6/+6
2021-07-09libperf: Move 'nr_groups' from tools/perf to evlist::nr_groupsJiri Olsa1-2/+2
2021-07-09libperf: Move 'leader' from tools/perf to perf_evsel::leaderJiri Olsa1-2/+2
2021-07-09libperf: Move 'idx' from tools/perf to perf_evsel::idxJiri Olsa1-5/+5
2021-05-17perf header: Support HYBRID_CPU_PMU_CAPS featureJin Yao1-19/+143
2021-05-17perf header: Support HYBRID_TOPOLOGY featureJin Yao1-0/+87
2021-05-12perf inject: Add facility to do in place updateAdrian Hunter1-0/+5
2021-03-23perf tools: Fix various typos in commentsIngo Molnar1-9/+9
2021-03-06perf tools: Cast (struct timeval).tv_sec when printingPierre Gondois1-2/+2
2021-02-18perf tools: Simplify the calculation of variablesJiapeng Chong1-1/+1
2021-01-15perf inject: Correct event attribute sizesAl Grant1-0/+8
2020-11-30perf evlist: Use the right prefix for 'struct evlist' header methodsArnaldo Carvalho de Melo1-10/+5
2020-11-30perf evlist: Use the right prefix for 'struct evlist' sample id lookup methodsArnaldo Carvalho de Melo1-1/+1
2020-11-30perf evlist: Use the right prefix for 'struct evlist' 'find' methodsArnaldo Carvalho de Melo1-3/+2
2020-11-30perf evsel: Convert last 'struct evsel' methods to the right evsel__ prefixArnaldo Carvalho de Melo1-3/+2
2020-11-16perf data: Allow to use stdio functions for pipe modeNamhyung Kim1-4/+4
2020-11-04perf env: Conditionally compile BPF support code on having HAVE_LIBBPF_SUPPORTArnaldo Carvalho de Melo1-13/+8
2020-10-14perf tools: Add size to 'struct perf_record_header_build_id'Jiri Olsa1-3/+7
2020-10-14perf tools: Pass build_id object to dso__set_build_id()Jiri Olsa1-1/+3
2020-10-14perf tools: Pass build_id object to build_id__sprintf()Jiri Olsa1-2/+1
2020-10-14perf tools: Use build_id object in dsoJiri Olsa1-1/+1
2020-08-13perf tools: Fix module symbol processingJiri Olsa1-2/+1
2020-08-13perf tools: Rename 'enum dso_kernel_type' to 'enum dso_space_type'Jiri Olsa1-6/+6
2020-08-06perf tools: Move clockid_res_ns under clock structJiri Olsa1-4/+4
2020-08-06perf header: Store clock references for -k/--clockid optionJiri Olsa1-0/+113
2020-05-28perf session: Try to read pipe data from fileJiri Olsa1-4/+12
2020-05-28perf tools: Do not seek in pipe fd during tracing data processingJiri Olsa1-4/+14
2020-05-05perf evsel: Rename perf_evsel__is_*() to evsel__is*()Arnaldo Carvalho de Melo1-4/+2
2020-05-05perf evsel: Rename *perf_evsel__*name() to *evsel__*name()Arnaldo Carvalho de Melo1-4/+3
2020-04-18perf header: Support CPU PMU capabilitiesKan Liang1-0/+108
2020-03-09perf header: Add check for unexpected use of reserved membrs in event attrKan Liang1-0/+37
2020-01-15perf header: Use last modification time for timestampMichael Petlan1-1/+1
2019-12-11perf header: Fix false warning when there are no duplicate cache entriesMichael Petlan1-15/+6
2019-12-11perf arch: Make the default get_cpuid() return compatible errorArnaldo Carvalho de Melo1-1/+1
2019-10-15perf tools: Fix resource leak of closedir() on the error pathsYunfeng Ye1-1/+3
2019-09-25perf evsel: Introduce evsel_fprintf.hArnaldo Carvalho de Melo1-0/+1
2019-09-25libperf: Move 'page_size' global variable to libperfJiri Olsa1-1/+1
2019-09-25libperf: Add perf_evlist__id_add() functionJiri Olsa1-2/+2
2019-09-25libperf: Add perf_evsel__alloc_id/perf_evsel__free_id functionsJiri Olsa1-2/+2
2019-09-25libperf: Move 'ids' from 'struct evsel' to 'struct perf_evsel'Jiri Olsa1-7/+7
2019-09-25libperf: Move 'id' from 'struct evsel' to 'struct perf_evsel'Jiri Olsa1-5/+5
2019-09-20perf tools: Fix segfault in cpu_cache_level__read()Jiri Olsa1-1/+1
2019-09-20perf tools: Move event synthesizing routines to separate .c fileArnaldo Carvalho de Melo1-390/+3
2019-09-20perf tools: Move event synthesizing routines to separate headerArnaldo Carvalho de Melo1-0/+1
2019-09-20perf tools: Remove util.h from where it is not neededArnaldo Carvalho de Melo1-1/+2
2019-08-31perf dsos: Move the dsos struct and its methods to separate source filesArnaldo Carvalho de Melo1-0/+1
2019-08-29perf tools: Remove perf.h from source files not needing itArnaldo Carvalho de Melo1-1/+0
2019-08-29perf header: Move CPUINFO_PROC to the only file where it is usedArnaldo Carvalho de Melo1-0/+18
2019-08-29perf header: Replace MAX_NR_CPUS with cpu__max_cpu()Kyle Meyer1-3/+4
2019-08-29libperf: Rename the PERF_RECORD_ structs to have a "perf" prefixJiri Olsa1-27/+27
2019-08-28libperf: Add PERF_RECORD_EVENT_UPDATE 'struct event_update_event' to perf/eve...Jiri Olsa1-1/+1
2019-08-28perf evlist: Remove needless util.h from evlist.hArnaldo Carvalho de Melo1-0/+1
2019-08-14perf record: Support aarch64 random socket_id assignmentTan Xiaojun1-1/+3
2019-07-29libperf: Move nr_members from perf's evsel to libperf's perf_evselJiri Olsa1-6/+6
2019-07-29libperf: Add own_cpus to struct perf_evselJiri Olsa1-5/+5
2019-07-29libperf: Add perf_cpu_map__new()/perf_cpu_map__read() functionsJiri Olsa1-1/+2
2019-07-29libperf: Move perf_event_attr field from perf's evsel to libperf's perf_evselJiri Olsa1-14/+14
2019-07-29libperf: Add nr_entries to struct perf_evlistJiri Olsa1-2/+2
2019-07-29libperf: Include perf_evlist in evlist objectJiri Olsa1-2/+2
2019-07-29perf evlist: Rename perf_evlist__add() to evlist__add()Jiri Olsa1-2/+2
2019-07-29perf evsel: Rename perf_evsel__new() to evsel__new()Jiri Olsa1-2/+2
2019-07-29perf evlist: Rename perf_evlist__delete() to evlist__delete()Jiri Olsa1-2/+2
2019-07-29perf evlist: Rename perf_evlist__new() to evlist__new()Jiri Olsa1-2/+2
2019-07-29perf evlist: Rename struct perf_evlist to struct evlistJiri Olsa1-43/+43
2019-07-29perf evsel: Rename struct perf_evsel to struct evselJiri Olsa1-29/+29
2019-07-29perf cpu_map: Rename struct cpu_map to struct perf_cpu_mapJiri Olsa1-2/+2
2019-07-29perf header: Fix use of unitialized value warningNumfor Mbiziwo-Tiapo1-1/+1
2019-07-29perf header: Fix divide by zero error if f_header.attr_size==0Vince Weaver1-0/+7
2019-07-23perf tools: Fix proper buffer size for feature processingJiri Olsa1-1/+1
2019-07-09perf tools: Use zfree() where applicableArnaldo Carvalho de Melo1-3/+3
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo1-1/+1
2019-07-08Merge remote-tracking branch 'tip/perf/core' into perf/urgentArnaldo Carvalho de Melo1-15/+96
2019-07-06perf header: Assign proper ff->ph in perf_event__synthesize_features()Song Liu1-0/+1
2019-07-01perf tools: Ditch rtrim(), use strim() from tools/libArnaldo Carvalho de Melo1-3/+3
2019-06-25perf header: Use skip_spaces() in __write_cpudesc()Arnaldo Carvalho de Melo1-3/+2
2019-06-25tools perf: Move from sane_ctype.h obtained from git to the Linux's originalArnaldo Carvalho de Melo1-1/+1
2019-06-25perf tools: Increase MAX_NR_CPUS and MAX_CACHESKyle Meyer1-1/+1
2019-06-10perf header: Rename "sibling cores" to "sibling sockets"Kan Liang1-1/+1
2019-06-10perf header: Add die information in CPU topologyKan Liang1-6/+88
2019-05-15perf record: Implement COMPRESSED event record and its attributesAlexey Budankov1-0/+53
2019-04-16perf header: Fix lock/unlock imbalances when processing BPF/BTF infoGustavo A. R. Silva1-9/+13
2019-03-21perf bpf: Show more BPF program info in print_bpf_prog_info()Song Liu1-2/+3
2019-03-19perf bpf: Save BTF information as headers to perf.dataSong Liu1-1/+100
2019-03-19perf bpf: Save bpf_prog_info information as headers to perf.dataSong Liu1-1/+152
2019-03-11perf header: Add DIR_FORMAT feature to describe directory dataJiri Olsa1-1/+43
2019-02-25perf tools: Add perf_exe() helper to find perf binaryAndi Kleen1-9/+3
2019-02-19perf tools: Add numa_topology objectJiri Olsa1-93/+26
2019-02-19perf tools: Add cpu_topology objectJiri Olsa1-146/+4
2019-02-19perf header: Fix wrong node write in NUMA_TOPOLOGY featureJiri Olsa1-1/+1
2019-02-14perf header: Remove unused 'cpu_nr' field from 'struct cpu_topo'Jiri Olsa1-2/+0
2019-02-14perf header: Get rid of write_it labelJiri Olsa1-4/+2
2018-12-18perf header: Fix up argument to ctime()Arnaldo Carvalho de Melo1-1/+3
2018-12-17perf header: Fix unchecked usage of strncpy()Arnaldo Carvalho de Melo1-1/+1
2018-12-17perf header: Fix unchecked usage of strncpy()Arnaldo Carvalho de Melo1-1/+1
2018-12-17perf tools: Fix diverse comment typosIngo Molnar1-1/+1
2018-12-17tools lib traceevent, perf tools: Rename 'struct tep_event_format' to 'struct...Tzvetomir Stoyanov1-1/+1
2018-11-21perf pmu: Move *_cpuid_str() weak functions to header.cKan Liang1-0/+39
2018-10-18perf record: Encode -k clockid frequency into Perf traceAlexey Budankov1-0/+23
2018-09-19tools lib traceevent, perf tools: Rename struct event_format to struct tep_ev...Tzvetomir Stoyanov (VMware)1-1/+1
2018-09-19perf tools: Remove perf_tool from event_op2Jiri Olsa1-9/+7
2018-08-30perf tools: Switch 'session' argument to 'evlist' in perf_event__synthesize_a...Jiri Olsa1-3/+3
2018-08-13tools lib traceevent, perf tools: Rename pevent find APIsTzvetomir Stoyanov (VMware)1-1/+1
2018-08-10tools lib traceevent, perf tools: Rename struct pevent to struct tep_handleTzvetomir Stoyanov (VMware)1-2/+2
2018-08-08perf tools: Drop unneeded bitmap_zero() callsYury Norov1-3/+0
2018-07-24perf tools: Synthesize GROUP_DESC feature in pipe modeJiri Olsa1-1/+1
2018-06-25perf tools: Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE]Ravi Bangoria1-1/+1
2018-06-25perf record: Support s390 random socket_id assignmentThomas Richter1-1/+9
2018-06-06perf record: Enable arbitrary event names thru name= modifierAlexey Budankov1-2/+18
2018-06-04perf tools: Ditch the symbol_conf.nr_events globalArnaldo Carvalho de Melo1-4/+0
2018-04-13perf record: Change warning for missing sysfs entry to debugThomas Richter1-1/+2
2018-03-16perf report: Support forced leader feature in pipe modeJiri Olsa1-1/+10
2018-03-08perf tools: Add MEM_TOPOLOGY feature to perf data fileJiri Olsa1-0/+305
2018-03-08perf report: Display perf.data header infoJiri Olsa1-1/+6
2018-01-08perf header: Add infrastructure to record first and last sample timeJin Yao1-0/+60
2017-12-27perf perf: Remove duplicate includesPravin Shedge1-2/+0
2017-11-29perf record: Synthesize unit/scale/... in event updateAndi Kleen1-0/+68
2017-11-07Merge branch 'linus' into perf/core, to fix conflictsIngo Molnar1-0/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-30perf tools: Add struct perf_data_fileJiri Olsa1-1/+1
2017-10-30perf tools: Rename struct perf_data_file to perf_dataJiri Olsa1-10/+10
2017-08-17perf tools: Use default CPUINFO_PROC where it fitsArnaldo Carvalho de Melo1-3/+0
2017-07-18perf header: Add event desc to pipe-mode headerDavid Carrillo-Cisneros1-2/+17
2017-07-18perf tools: Add feature header record to pipe-modeDavid Carrillo-Cisneros1-0/+98
2017-07-18perf header: Change FEAT_OP* macrosDavid Carrillo-Cisneros1-28/+44
2017-07-18perf header: Add a buffer to struct feat_fdDavid Carrillo-Cisneros1-5/+70
2017-07-18perf header: Make write_pmu_mappings pipe-mode friendlyDavid Carrillo-Cisneros1-10/+11
2017-07-18perf header: Use struct feat_fd in read header recordsDavid Carrillo-Cisneros1-51/+50
2017-07-18perf header: Don't pass struct perf_file_section to process_##_featDavid Carrillo-Cisneros1-34/+24
2017-07-18perf header: Use struct feat_fd to process header recordsDavid Carrillo-Cisneros1-85/+79
2017-07-18perf header: Use struct feat_fd for printDavid Carrillo-Cisneros1-55/+47