aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-inject.c
AgeCommit message (Expand)AuthorFilesLines
2025-08-25perf symbol: Add blocking argument to filename__read_build_idIan Rogers1-2/+2
2025-07-25perf session: Add host_env argument to perf_session__newIan Rogers1-1/+2
2025-07-25perf session: Add accessor for session->header.envIan Rogers1-1/+1
2025-07-25perf dso: Move build_id to dso_idIan Rogers1-15/+21
2025-06-20perf tools: display the new PERF_RECORD_BPF_METADATA eventBlake Jones1-0/+1
2025-01-14perf inject: Fix use without initialization of local variablesIan Rogers1-4/+4
2024-09-10perf callchain: Allow symbols to be optional when resolving a callchainIan Rogers1-1/+1
2024-09-10perf inject: Lazy build-id mmap2 event insertionIan Rogers1-12/+50
2024-09-10perf inject: Add new mmap2-buildid-all optionIan Rogers1-3/+85
2024-09-10perf inject: Fix build ID injectionIan Rogers1-39/+131
2024-08-30perf inject: Overhaul handling of pipe filesIan Rogers1-29/+31
2024-08-19perf inject: Combine mmap and mmap2 handlingIan Rogers1-62/+56
2024-08-19perf inject: Combine different mmap and mmap2 functionsIan Rogers1-123/+76
2024-08-19perf inject: Combine build_ids and build_id_all into enumIan Rogers1-20/+31
2024-08-19perf dso: Constify dso_idIan Rogers1-1/+1
2024-08-13perf inject: Inject build ids for entire call chainIan Rogers1-0/+31
2024-08-12perf inject: Use perf_tool__init()Ian Rogers1-48/+43
2024-08-12perf tool: Constify tool pointersIan Rogers1-35/+35
2024-08-12perf inject: Fix leader sampling inserting additional samplesIan Rogers1-0/+1
2024-07-31perf inject: Convert comma to semicolonChen Ni1-1/+1
2024-05-06perf dso: Add reference count checking and accessor functionsIan Rogers1-36/+35
2024-04-12perf dsos: Introduce dsos__for_each_dso()Ian Rogers1-10/+15
2024-04-12perf dsos: Attempt to better abstract DSOs internalsIan Rogers1-1/+1
2023-11-09perf record: Lazy load kernel symbolsIan Rogers1-0/+6
2023-06-12perf inject: Lazily allocate guest_event event_bufIan Rogers1-3/+12
2023-06-12perf inject: Lazily allocate event_copyIan Rogers1-3/+13
2023-06-12perf addr_location: Add init/exit/copy functionsIan Rogers1-0/+2
2023-06-12perf thread: Add accessor functions for threadIan Rogers1-1/+1
2023-04-17perf dso: Add dso__filename_with_chroot() to reduce number of accesses to dso...Arnaldo Carvalho de Melo1-3/+1
2023-04-12perf inject: Use zfree() to reduce chances of use after freeArnaldo Carvalho de Melo1-3/+3
2023-04-06perf map: Add accessors for ->prot, ->priv and ->flagsIan Rogers1-1/+1
2023-04-04perf map: Add accessor for dsoIan Rogers1-3/+5
2023-02-23perf inject: Fix --buildid-all not to eat up MMAP2Namhyung Kim1-0/+1
2023-02-01perf inject: Use perf_data__read() for auxtraceNamhyung Kim1-3/+3
2022-12-14perf build: Use libtraceevent from the systemIan Rogers1-0/+8
2022-10-04perf dso: Hold lock when accessing nsinfoIan Rogers1-0/+4
2022-10-04perf inject: Add a command line option to specify build ids.Raul Silvera1-0/+85
2022-07-26perf inject: Fix spelling mistake "theads" -> "threads"Colin Ian King1-1/+1
2022-07-20perf inject: Add support for injecting guest sideband eventsAdrian Hunter1-1/+1042
2022-07-18Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-2/+4
2022-06-26perf inject: Adjust output data offset for backward compatibilityRaul Silvera1-1/+1
2022-06-26perf inject: Fix missing free in copy_kcore_dir()Adrian Hunter1-1/+3
2022-06-24perf header: Record non-CPU PMU capabilitiesRavi Bangoria1-1/+1
2022-06-23perf record: Add finished init eventAdrian Hunter1-0/+1
2022-05-23perf inject: Keep a copy of kcore_dirAdrian Hunter1-3/+30
2022-05-23perf inject: Keep some features sections from input fileAdrian Hunter1-1/+128
2022-02-11perf namespaces: Add functions to access nsinfoIan Rogers1-1/+1
2022-02-10perf report: Output data file name in raw trace dumpAlexey Bayduraev1-1/+2
2022-02-10perf inject: Try chroot directory when reading build-idNamhyung Kim1-0/+10
2022-01-22perf tools: Remove redundant err variableMinghao Chi1-4/+1
2021-12-18perf inject: Fix segfault due to perf_data__fd() without openAdrian Hunter1-3/+7
2021-12-18perf inject: Fix segfault due to close without openAdrian Hunter1-1/+2
2021-12-06perf inject: Fix itrace space allowed for new attributesAdrian Hunter1-1/+1
2021-11-07perf inject: Add vmlinux and ignore-vmlinux argumentsJames Clark1-0/+7
2021-10-20perf tools: Add support for PERF_RECORD_AUX_OUTPUT_HW_IDAdrian Hunter1-1/+3
2021-08-02perf inject: Fix output from a file to a pipeNamhyung Kim1-2/+26
2021-08-02perf inject: Fix output from a pipe to a fileNamhyung Kim1-5/+10
2021-08-02perf tools: Pass a fd to perf_file_header__read_pipe()Namhyung Kim1-1/+2
2021-08-02perf tools: Remove repipe argument from perf_session__new()Namhyung Kim1-1/+1
2021-07-15perf inject: Close inject.output on exitRiccardo Mancini1-2/+6
2021-07-15perf inject: Fix dso->nsinfo refcountingRiccardo Mancini1-2/+3
2021-05-26perf inject: Do not inject BUILD_ID record if MMAP2 has itNamhyung Kim1-0/+24
2021-05-26perf inject: Call dso__put() even if dso->hit is setNamhyung Kim1-2/+2
2021-05-12perf inject: Add --vm-time-correlation optionAdrian Hunter1-0/+44
2021-05-12perf inject: Add facility to do in place updateAdrian Hunter1-4/+22
2021-04-05perf inject: Fix repipe usageAdrian Hunter1-1/+1
2021-02-03perf inject jit: Add namespaces supportYonatan Goldschmidt1-2/+2
2020-11-30Merge remote-tracking branch 'torvalds/master' into perf/coreArnaldo Carvalho de Melo1-11/+1
2020-11-16perf inject: Fix file corruption due to event deletionAl Grant1-11/+1
2020-11-16perf data: Allow to use stdio functions for pipe modeNamhyung Kim1-0/+2
2020-10-14perf tools: Pass build_id object to filename__read_build_id()Jiri Olsa1-3/+1
2020-10-14perf tools: Use build_id object in dsoJiri Olsa1-2/+2
2020-10-13perf inject: Add --buildid-all optionNamhyung Kim1-5/+108
2020-10-13perf inject: Do not load map/dso when injecting build-idNamhyung Kim1-21/+12
2020-10-13perf inject: Enter namespace when reading build-idNamhyung Kim1-2/+6
2020-10-13perf inject: Add missing callbacks in perf_toolNamhyung Kim1-5/+31
2020-10-13perf bench: Add build-id injection benchmarkNamhyung Kim1-5/+4
2020-07-08perf inject jit: Remove //anon mmap eventsSteve MacLean1-2/+2
2020-05-28perf tools: Replace zero-length array with flexible-arrayGustavo A. R. Silva1-1/+1
2020-05-05perf inject: Rename perf_evsel__*() operating on 'struct evsel *' to evsel__*()Arnaldo Carvalho de Melo1-3/+2
2020-05-05perf evsel: Rename perf_evsel__parse_sample*() to evsel__parse_sample*()Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename perf_evsel__{str,int}val() and other tracepoint field mete...Arnaldo Carvalho de Melo1-1/+1
2020-05-05perf evsel: Rename *perf_evsel__*name() to *evsel__*name()Arnaldo Carvalho de Melo1-4/+3
2020-05-05perf auxtrace: Add option to synthesize branch stack for regular eventsAdrian Hunter1-1/+2
2019-12-04perf inject: Fix processing of ID index for injected instruction tracingAdrian Hunter1-12/+1
2019-11-22perf inject: Cut AUX area samplesAdrian Hunter1-0/+29
2019-11-06perf inject: Make --strip keep evselsAdrian Hunter1-54/+0
2019-09-20perf session: Return error code for perf_session__new() function on failureMamatha Inamdar1-2/+3
2019-09-20perf tools: Move event synthesizing routines to separate headerArnaldo Carvalho de Melo1-0/+1
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-07-29libperf: Move perf_event_attr field from perf's evsel to libperf's perf_evselJiri Olsa1-7/+7
2019-07-29perf evlist: Rename perf_evlist__remove() to evlist__remove()Jiri Olsa1-2/+2
2019-07-29perf evsel: Rename perf_evsel__delete() to evsel__delete()Jiri Olsa1-2/+2
2019-07-29perf evlist: Rename struct perf_evlist to struct evlistJiri Olsa1-4/+4
2019-07-29perf evsel: Rename struct perf_evsel to struct evselJiri Olsa1-15/+15
2019-07-09perf inject: The tool->read() call may pass a NULL evsel, handle itArnaldo Carvalho de Melo1-1/+1
2019-05-15perf inject: Enable COMPRESSED record decompressionAlexey Budankov1-0/+4
2019-02-22perf data: Add global path holderJiri Olsa1-6/+4
2019-02-06perf tools: Add missing include for symbols.hArnaldo Carvalho de Melo1-0/+1
2019-02-06pref tools: Add missing map.h includesArnaldo Carvalho de Melo1-0/+1
2018-09-19perf tools: Report itrace options in helpAndi Kleen1-1/+2
2018-09-19perf tools: Remove perf_tool from event_op3Jiri Olsa1-6/+5
2018-09-19perf tools: Remove perf_tool from event_op2Jiri Olsa1-15/+11
2018-04-26perf thread: Make thread__find_map() return the mapArnaldo Carvalho de Melo1-3/+1
2018-04-26perf thread: Introduce thread__find_map()Arnaldo Carvalho de Melo1-1/+1
2018-01-18perf tools: Get rid of unused 'swapped' parameter from perf_event__synthesize...Adrian Hunter1-2/+1
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-5/+7
2017-10-30perf tools: Rename struct perf_data_file to perf_dataJiri Olsa1-13/+13
2017-07-18perf tools: Add feature header record to pipe-modeDavid Carrillo-Cisneros1-0/+1
2017-04-24perf tools: Use just forward declarations for struct thread where possibleArnaldo Carvalho de Melo1-0/+1
2017-04-20perf tools: Add signal.h to places using its definitionsArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Include errno.h where neededArnaldo Carvalho de Melo1-0/+1
2017-04-11perf inject: Don't proceed if perf_session__process_event() failsDavid Carrillo-Cisneros1-0/+2
2017-03-27perf tools: Remove unused 'prefix' from builtin functionsArnaldo Carvalho de Melo1-1/+1
2017-03-14perf tools: Add PERF_RECORD_NAMESPACES to include namespaces related infoHari Bathini1-0/+13
2016-09-05perf symbols: Remove symbol_filter_t machineryArnaldo Carvalho de Melo1-1/+1
2016-06-23perf evlist: Rename for_each() macros to for_each_entry()Arnaldo Carvalho de Melo1-4/+4
2016-03-31perf tools: Add time conversion eventAdrian Hunter1-0/+1
2016-03-23perf tools: Add cpumode to struct perf_sampleArnaldo Carvalho de Melo1-4/+1
2016-03-23perf tools: Remove misplaced __maybe_unusedArnaldo Carvalho de Melo1-2/+1
2016-03-10perf jitdump: Build only on supported archsJiri Olsa1-5/+7
2016-03-09perf jitdump: DWARF is also neededArnaldo Carvalho de Melo1-5/+5
2016-03-08perf jit: Move clockid validationAdrian Hunter1-24/+0
2016-03-08perf jit: Let jit_process() return errorsAdrian Hunter1-4/+12
2016-03-08perf inject: Hit all DSOs for AUX data in JIT and other casesAdrian Hunter1-4/+8
2016-02-05perf inject: Add jitdump mmap injection supportStephane Eranian1-3/+95
2016-02-05perf inject: Make sure mmap records are ordered when injecting build_idsArnaldo Carvalho de Melo1-0/+11
2015-12-17perf subcmd: Create subcmd libraryJosh Poimboeuf1-1/+1
2015-11-13perf inject: Also re-pipe lost_samples eventAdrian Hunter1-0/+1
2015-09-28perf inject: Add --strip option to strip out non-synthesized eventsAdrian Hunter1-0/+92
2015-09-28perf inject: Remove more aux-related stuff when processing instruction tracesAdrian Hunter1-1/+28
2015-09-28perf inject: Set branch stack feature flag when synthesizing branch stacksAdrian Hunter1-1/+5
2015-07-23perf tools: Add new PERF_RECORD_SWITCH eventAdrian Hunter1-0/+1
2015-07-01perf inject: Fill in the missing session freeing after an error occursTaeung Song1-3/+4
2015-05-08perf machine: Protect the machine->threads with a rwlockArnaldo Carvalho de Melo1-0/+1
2015-05-05perf tools: Add support for PERF_RECORD_ITRACE_STARTAdrian Hunter1-0/+1
2015-05-05perf tools: Add support for PERF_RECORD_AUXAdrian Hunter1-0/+1
2015-05-05perf tools: Add build option NO_AUXTRACE to exclude AUX area tracingAdrian Hunter1-19/+34
2015-05-04perf tools: Hit all build ids when AUX area tracingAdrian Hunter1-1/+7
2015-05-04perf tools: Add AUX area tracing indexAdrian Hunter1-0/+15
2015-04-29perf inject: Add Instruction Tracing supportAdrian Hunter1-2/+69
2015-04-29perf inject: Re-pipe AUX area tracing eventsAdrian Hunter1-5/+58
2015-04-02perf inject: Support using -f to override perf.data file ownershipYunlong Song1-0/+1
2015-03-12perf tools: tool->finished_round() doesn't need perf_sessionArnaldo Carvalho de Melo1-1/+8
2015-03-11perf ordered_events: Shorten function signaturesArnaldo Carvalho de Melo1-3/+3
2015-01-29perf tools: Use perf_data_file__fd() consistentlyNamhyung Kim1-2/+3
2014-10-29perf tools: Add id indexAdrian Hunter1-0/+1
2014-10-29perf tools: A thread's machine can be found via thread->mg->machineArnaldo Carvalho de Melo1-2/+1
2014-09-26perf tools: Modify error code for when perf_session__new() failsTaeung Song1-1/+1
2014-08-13perf tools: Check recorded kernel version when finding vmlinuxNamhyung Kim1-1/+1
2014-08-13perf inject: Move session handling out of __cmd_inject()Namhyung Kim1-12/+17
2014-08-12perf tools: Rename ordered_samples bool to ordered_eventsJiri Olsa1-1/+1
2014-07-25perf inject: Add --kallsyms parameterAdrian Hunter1-0/+2
2014-07-16perf inject: Fix build id injectionAdrian Hunter1-0/+3
2014-06-09perf tools: Fix pipe check regression in attr event callbackJiri Olsa1-1/+1
2014-05-12perf tools: Use tid for finding threadNamhyung Kim1-1/+1
2014-02-18perf callchain: Add mask into struct regs_dumpJiri Olsa1-1/+0
2014-01-13perf evlist: Introduce evlist__for_each() & friendsArnaldo Carvalho de Melo1-1/+1
2013-12-19perf inject: Handle output file via perf_data_file objectJiri Olsa1-38/+27
2013-11-07perf evsel: Ditch evsel->handler.data fieldArnaldo Carvalho de Melo1-5/+5
2013-10-23perf inject: Do not repipe attributes to a perf.data fileAdrian Hunter1-0/+5
2013-10-23perf tools: Stop using 'self' in some more placesArnaldo Carvalho de Melo1-11/+11
2013-10-21perf tools: Add data object to handle perf data fileJiri Olsa1-1/+6
2013-10-09tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORTIngo Molnar1-1/+1
2013-09-19perf session: Check for SIGINT in more loopsArnaldo Carvalho de Melo1-2/+0
2013-09-11perf tools: Add attr->mmap2 supportStephane Eranian1-0/+15
2013-08-29perf tools: Expand perf_event__synthesize_sample()Adrian Hunter1-1/+3
2013-08-29perf tools: Remove references to struct ip_eventAdrian Hunter1-2/+2
2013-08-29perf tools: change machine__findnew_thread() to set thread pidAdrian Hunter1-1/+1
2013-08-12perf tools: Remove filter parameter of thread__find_addr_map()Adrian Hunter1-1/+1
2013-08-07perf symbols: Load kernel maps before usingAdrian Hunter1-1/+1
2013-07-15perf tools: Remove event types framework completelyJiri Olsa1-7/+0
2013-07-12perf inject: Add missing 'finished_round'Adrian Hunter1-0/+1
2013-07-12perf tools: Fix missing tool parameterAdrian Hunter1-15/+11
2013-07-12perf inject: Remove unused parameterAdrian Hunter1-10/+9
2012-10-26perf inject: Mark a dso if it's usedAndrew Vagin1-3/+8
2012-10-26perf inject: Merge sched_stat_* and sched_switch eventsAndrew Vagin1-3/+139
2012-10-26perf inject: Work with filesAndrew Vagin1-3/+35
2012-10-06perf event: No need to create a thread when handling PERF_RECORD_EXITArnaldo Carvalho de Melo1-3/+3
2012-10-02perf inject: Don't use globals where not needed toArnaldo Carvalho de Melo1-7/+6
2012-10-02perf inject: Remove static variablesArnaldo Carvalho de Melo1-34/+38
2012-10-02perf inject: Remove unused 'input_name' static varArnaldo Carvalho de Melo1-2/+1
2012-09-28perf tools: Convert to LIBELF_SUPPORTNamhyung Kim1-1/+1
2012-09-11perf tools: Use __maybe_used for unused variablesIrina Tirdea1-11/+13
2012-08-09perf symbols: Support minimal build without libelfNamhyung Kim1-1/+4
2012-05-22perf inject: Fix broken perf inject -bStephane Eranian1-0/+5
2011-11-28perf tools: Rename perf_event_ops to perf_toolArnaldo Carvalho de Melo1-27/+28
2011-11-28perf tools: Resolve machine earlier and pass it to perf_event_opsArnaldo Carvalho de Melo1-32/+38
2011-11-28perf tools: Pass tool context in the the perf_event_ops functionsArnaldo Carvalho de Melo1-21/+34
2011-11-28perf event: perf_event_ops->attr() manipulates only an evlistArnaldo Carvalho de Melo1-1/+7
2011-03-23perf session: Pass evsel in event_ops->sample()Arnaldo Carvalho de Melo1-1/+10
2011-01-29perf tools: Kill event_t typedef, use 'union perf_event' insteadArnaldo Carvalho de Melo1-39/+43
2011-01-29perf tools: Rename 'struct sample_data' to 'struct perf_sample'Arnaldo Carvalho de Melo1-4/+4
2010-12-21perf session: Fallback to unordered processing if no sample_id_allIan Munsie1-1/+1
2010-12-04perf session: Parse sample earlierArnaldo Carvalho de Melo1-15/+24
2010-05-04perf inject: Add missing bitsArnaldo Carvalho de Melo1-1/+1
2010-05-02perf inject: Refactor read_buildid functionArnaldo Carvalho de Melo1-38/+38