aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util.c
AgeCommit message (Expand)AuthorFilesLines
2024-11-16perf util: Remove kernel version deadcodeDr. David Alan Gilbert1-85/+0
2024-10-22perf tools: Don't set attr.exclude_guest by defaultNamhyung Kim1-2/+8
2024-08-20perf cap: Tidy up and improve capability testingIan Rogers1-3/+9
2024-02-22perf list: Add scandirat compatibility functionIan Rogers1-0/+19
2023-04-10perf util: Move input_name to utilIan Rogers1-0/+2
2023-04-04perf tools: Avoid warning in do_realloc_array_as_needed()Adrian Hunter1-1/+2
2023-03-14perf util: Remove weak sched_getcpuIan Rogers1-0/+16
2022-07-20perf tools: Add reallocarray_as_needed()Adrian Hunter1-0/+33
2022-07-20perf tools: Remove also guest kcore_dir with host kcore_dirAdrian Hunter1-2/+35
2022-04-20perf tools: Print warning when HAVE_DEBUGINFOD_SUPPORT is not set and user tr...Martin Liška1-0/+5
2022-02-10perf tools: Try chroot'ed filename when opening dso/symbolNamhyung Kim1-0/+31
2022-01-15perf record: Disable debuginfod by defaultJiri Olsa1-0/+15
2021-11-18perf report: Fix memory leaks around perf_tip()Ian Rogers1-7/+7
2020-04-16perf tools: Support CAP_PERFMON capabilityAlexey Budankov1-0/+1
2020-03-10perf util: Factor out sysctl__nmi_watchdog_enabled()Kan Liang1-0/+18
2019-11-06perf record: Put a copy of kcore into the perf.data directoryAdrian Hunter1-0/+17
2019-11-06perf data: Rename directory "header" file to "data"Adrian Hunter1-1/+1
2019-10-15perf tools: Fix resource leak of closedir() on the error pathsYunfeng Ye1-2/+4
2019-09-25perf copyfile: Move copyfile routines to separate filesArnaldo Carvalho de Melo1-135/+0
2019-09-25libperf: Move 'page_size' global variable to libperfJiri Olsa1-2/+1
2019-08-31perf debug: Remove needless include directives from debug.hArnaldo 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-26perf cacheline: Move cacheline related routines to separate filesArnaldo Carvalho de Melo1-20/+0
2019-08-14perf tools: Add helpers to use capabilities if presentIgor Lubashev1-0/+9
2019-07-29libperf: Adopt the readn()/writen() functions from tools/perfJiri Olsa1-40/+0
2019-06-25perf kallsyms: Adopt hex2u64 from tools/perf/util/util.hArnaldo Carvalho de Melo1-13/+0
2019-02-25perf tools: Add perf_exe() helper to find perf binaryAndi Kleen1-0/+10
2019-02-25perf tools: Add rm_rf_perf_data functionJiri Olsa1-0/+11
2019-02-25perf tools: Add pattern name checking to rm_rfJiri Olsa1-3/+33
2019-02-25perf tools: Add depth checking to rm_rfJiri Olsa1-2/+12
2019-02-20perf tools: Make rm_rf() remove single fileJiri Olsa1-3/+13
2019-01-25perf namespaces: Remove namespaces.h from .h headersArnaldo Carvalho de Melo1-0/+1
2018-09-19perf util: Make copyfile_offset() globalJiri Olsa1-1/+1
2018-05-17perf tools: No need to unconditionally read the max_stack sysctlsArnaldo Carvalho de Melo1-0/+13
2018-05-17perf tools: Read the cache line size lazilyArnaldo Carvalho de Melo1-1/+20
2018-02-15perf tools: Substitute yet another strtoull()Andy Shevchenko1-22/+2
2018-01-12perf tools: Fix copyfile_offset update of output offsetJiri Olsa1-1/+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-09-21perf tools: Provide mutex wrappers for pthreads rwlocksArnaldo Carvalho de Melo1-0/+13
2017-09-13perf tools: Make copyfile_offset() staticArnaldo Carvalho de Melo1-1/+2
2017-07-18perf util: Add const modifier to buf in "writen" functionDavid Carrillo-Cisneros1-2/+4
2017-07-18perf buildid-cache: Support binary objects from other namespacesKrister Johansen1-6/+28
2017-06-20perf tools: Do parameter validation earlier on fetch_kernel_version()Arnaldo Carvalho de Melo1-5/+10
2017-06-20perf evsel: Adopt find_process()Arnaldo Carvalho de Melo1-37/+0
2017-04-26perf units: Move parse_tag_value() to units.[ch]Arnaldo Carvalho de Melo1-27/+0
2017-04-25perf memswap: Split the byteswap memory range wrappers from util.[ch]Arnaldo Carvalho de Melo1-22/+0
2017-04-24perf tools: Remove string.h, unistd.h and sys/stat.h from util.hArnaldo Carvalho de Melo1-0/+1
2017-04-24perf callchain: Move callchain specific routines from util.[ch]Arnaldo Carvalho de Melo1-104/+0
2017-04-24perf debug: Move dump_stack() and sighandler_dump_stack() to debug.hArnaldo Carvalho de Melo1-31/+0
2017-04-24perf kvm: Make function only used by 'perf kvm' staticArnaldo Carvalho de Melo1-14/+0
2017-04-20perf tools: Move timestamp routines from util.h to time-utils.hArnaldo Carvalho de Melo1-25/+0
2017-04-20perf tools: Move units conversion/formatting routines to separate objectArnaldo Carvalho de Melo1-35/+0
2017-04-20perf tools: Add signal.h to places using its definitionsArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Remove include dirent.h from util.hArnaldo Carvalho de Melo1-0/+1
2017-04-19perf tools: Move path related functions to util/path.hArnaldo Carvalho de Melo1-10/+0
2017-04-19perf tools: Move print_binary definitions to separate filesArnaldo Carvalho de Melo1-54/+0
2017-04-19perf tools: Move sane ctype stuff from util.h to sane_ctype.hArnaldo Carvalho de Melo1-0/+2
2017-04-19perf tools: Including missing inttypes.h headerArnaldo Carvalho de Melo1-0/+1
2017-04-13perf util: Hint missing file when tool tips fail to loadDavid Carrillo-Cisneros1-1/+2
2017-01-31tools perf util: Make rm_rf(path) argument constJoe Stringer1-1/+1
2017-01-11perf tools: Add unit_number__scnprintf functionJiri Olsa1-0/+13
2016-12-01perf tools: Move parse_nsec_time to time-utils.cDavid Ahern1-33/+0
2016-11-25perf tools: Fix kernel version error in ubuntuWang Nan1-2/+53
2016-10-28perf tools: Introduce timestamp__scnprintf_usec()Namhyung Kim1-0/+8
2016-08-23tools: Introduce tools/include/linux/time64.h for *SEC_PER_*SEC macrosArnaldo Carvalho de Melo1-0/+1
2016-07-18perf tools: Make is_printable_array globalJiri Olsa1-0/+16
2016-07-04perf tests: Fix hist accumulation testJiri Olsa1-6/+13
2016-06-14perf tools: Fix rm_rf() to handle non-regular files correctlyMasami Hiramatsu1-8/+5
2016-05-16perf tools: Separate accounting of contexts and real addresses in a stack traceArnaldo Carvalho de Melo1-1/+2
2016-05-11perf tools: Fix lsdir to set errno correctlyMasami Hiramatsu1-1/+1
2016-05-09perf callchain: Recording 'dwarf' callchains do not need DWARF unwinding supportHe Kuang1-2/+0
2016-04-27perf tools: Set the maximum allowed stack from /proc/sys/kernel/perf_event_ma...Arnaldo Carvalho de Melo1-0/+2
2016-04-26perf tools: Add lsdir() helper to read a directoryMasami Hiramatsu1-0/+34
2016-02-24perf tools: Make binary data printer code in trace_event public availableWang Nan1-0/+37
2016-02-16tools lib api fs: Adopt filename__read_str from perfJiri Olsa1-48/+0
2016-01-29perf tools: Move timestamp creation to utilWang Nan1-0/+17
2016-01-26perf symbols: Do not read symbols/data from device filesJiri Olsa1-0/+10
2016-01-12perf tools: Fallback to srcdir/Documentation/tips.txtNamhyung Kim1-5/+6
2016-01-08perf report: Show random usage tip on the help lineNamhyung Kim1-0/+27
2015-12-14perf tools: Use same signal handling strategy as 'record'Arnaldo Carvalho de Melo1-1/+2
2015-12-09perf tools: Move term functions out of util.cJosh Poimboeuf1-34/+0
2015-11-19perf report: Add callchain value optionNamhyung Kim1-1/+2
2015-11-06perf tools: Make fetch_kernel_version() publicly availableWang Nan1-0/+30
2015-10-22perf tools: Defaults to 'caller' callchain order only if --children is enabledNamhyung Kim1-1/+1
2015-10-05perf callchain: Switch default to 'graph,0.5,caller'Arnaldo Carvalho de Melo1-2/+2
2015-09-18Merge branch 'perf/urgent' into perf/core, to pick up fixes before applying n...Ingo Molnar1-1/+1
2015-09-17perf tools: Bool functions shouldn't return -1Peter Senna Tschudin1-1/+1
2015-09-04tools lib api fs: Move tracing_path interface into api/fs/tracing_path.cJiri Olsa1-70/+0
2015-09-02perf tools: Move tracing_path stuff under same namespaceJiri Olsa1-10/+10
2015-09-02perf tools: Remove mountpoint arg from perf_debugfs_mountJiri Olsa1-7/+7
2015-08-28perf tools: Do not change lib/api/fs/debugfs directlyJiri Olsa1-1/+0
2015-08-28perf tools: Add tracing_path and remove unneeded functionsJiri Olsa1-52/+4
2015-08-08perf callchain: Move option parsing code to util.cKan Liang1-0/+90
2015-06-10perf tools: Avoid possible race condition in copyfile()Milos Vyletel1-15/+31
2015-05-18perf tools: Introduce copyfile_offset() functionNamhyung Kim1-9/+29
2015-05-18perf tools: Add rm_rf() utility functionNamhyung Kim1-0/+43
2015-02-24perf tools: Introduce dump_stack signal helperArnaldo Carvalho de Melo1-0/+7
2015-02-11perf tools: Make perf aware of tracefsSteven Rostedt (Red Hat)1-11/+49
2014-12-11perf tools: Use sysctl__read_int instead of ad-hoc copiesArnaldo Carvalho de Melo1-8/+1
2014-12-11tools lib fs: Adopt filename__read_int from tools/perf/Arnaldo Carvalho de Melo1-17/+0
2014-10-03perf callchain: Move callchain_param to util object in to fix python testJiri Olsa1-0/+8
2014-08-15perf util: Replace strerror with strerror_r for thread-safetyMasami Hiramatsu1-2/+3
2014-08-13perf tools: Introduce set_term_quiet_input helper functionJiri Olsa1-0/+13
2014-08-12perf tools: Show better error message in case we fail to open counters due to...Jiri Olsa1-0/+36
2014-07-17perf tools: Move pr_* debug macros into debug objectJiri Olsa1-0/+1
2014-07-07perf tools: Convert open coded equivalents to asprintf()Andy Shevchenko1-7/+2
2014-06-09perf tools: Add support to dynamically get cacheline sizeDon Zickus1-0/+1
2014-04-29perf tools: Handle EINTR error for readn/writenNamhyung Kim1-0/+2
2014-02-18perf tools: Move fs.* to lib/api/fs/Borislav Petkov1-1/+1
2013-12-13perf tools: Move mem_bswap32/64 to util.cAdrian Hunter1-0/+22
2013-12-13perf tools: Add perf_event_paranoid()Adrian Hunter1-0/+19
2013-12-09perf kvm: Move code to generate filename for perf-kvm to function.Dongsheng Yang1-0/+14
2013-12-04perf tools: Add filename__read_str util functionJiri Olsa1-0/+49
2013-12-02perf tools: Add writen functionJiri Olsa1-5/+19
2013-12-02perf tools: Fine tune readn functionJiri Olsa1-5/+11
2013-12-02perf tools: Use correct return type for readn functionJiri Olsa1-2/+2
2013-10-23perf tools: Do not accept parse_tag_value() overflowAdrian Hunter1-0/+2
2013-10-17perf tools: Introduce filename__read_int helperArnaldo Carvalho de Melo1-0/+17
2013-10-14perf tools: Add copyfile_mode()Adrian Hunter1-5/+13
2013-10-09perf tools: Add possibility to specify mmap sizeJiri Olsa1-0/+25
2013-10-09tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORTIngo Molnar1-2/+2
2013-08-07perf util: Add parse_nsec_time() functionNamhyung Kim1-0/+33
2013-07-12perf util: Move debugfs/tracing helper functions to util.cNamhyung Kim1-0/+59
2013-03-15perf tools: Extract perf-specific stuff from debugfs.cBorislav Petkov1-0/+27
2013-01-24perf tools: Move get_term_dimensions from top to util.cDavid Ahern1-0/+22
2013-01-24perf python: Fix breakage introduced by the test_attr infrastructureArnaldo Carvalho de Melo1-0/+2
2012-10-29perf tools: Move hex2u64 into util objectJiri Olsa1-0/+33
2012-10-06perf tools: Have the page size value available for all toolsArnaldo Carvalho de Melo1-0/+2
2012-10-02perf tools: Convert to BACKTRACE_SUPPORTNamhyung Kim1-2/+2
2012-09-07perf tools: add NO_BACKTRACE for application self-debuggingIrina Tirdea1-0/+6
2012-08-07perf tools: Add dump_stack functionArnaldo Carvalho de Melo1-0/+19
2012-04-19perf annotate browser: Align jump labelsArnaldo Carvalho de Melo1-0/+10
2012-02-13perf tools: cleanup initialization of attr->sizeStephane Eranian1-0/+2
2012-02-13perf tools: Change perf_guest default back to falseJoerg Roedel1-1/+1
2012-01-06perf kvm: Do guest-only counting by defaultJoerg Roedel1-0/+15
2011-01-03perf util: Move do_read from session to utilArnaldo Carvalho de Melo1-0/+17
2010-05-14perf report: Report number of events, not samplesArnaldo Carvalho de Melo1-0/+22
2010-01-17perf: Fix implicit declaration of getline in util.cFrederic Weisbecker1-6/+1
2010-01-16perf symbols: Cache /proc/kallsyms files by build-idArnaldo Carvalho de Melo1-0/+30
2009-12-28perf record: Introduce a symtab cacheArnaldo Carvalho de Melo1-0/+69