aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util.h
AgeCommit message (Expand)AuthorFilesLines
2024-11-16perf util: Remove kernel version deadcodeDr. David Alan Gilbert1-8/+0
2024-10-22perf tools: Don't set attr.exclude_guest by defaultNamhyung Kim1-0/+3
2024-10-17perf test: Remove C test wrapper for attr.pyIan Rogers1-7/+0
2024-02-22perf list: Add scandirat compatibility functionIan Rogers1-0/+8
2023-04-10perf util: Move perf_guest/host declarationsIan Rogers1-0/+3
2023-04-10perf util: Move input_name to utilIan Rogers1-0/+2
2023-04-10perf usage: Move usage stringsIan Rogers1-0/+3
2022-12-14perf util: Add host_is_bigendian to util.hIan Rogers1-0/+19
2022-12-14perf util: Make header guard consistent with toolIan Rogers1-3/+3
2022-07-20perf tools: Add reallocarray_as_needed()Adrian Hunter1-0/+15
2022-02-10perf tools: Try chroot'ed filename when opening dso/symbolNamhyung Kim1-0/+2
2022-01-15perf record: Disable debuginfod by defaultJiri Olsa1-0/+6
2022-01-12perf cpumap: Give CPUs their own typeIan Rogers1-1/+4
2021-11-18perf report: Fix memory leaks around perf_tip()Ian Rogers1-1/+1
2020-09-10perf tests: Call test_attr__open() directlyJiri Olsa1-0/+6
2020-03-10perf util: Factor out sysctl__nmi_watchdog_enabled()Kan Liang1-0/+2
2019-09-25perf copyfile: Move copyfile routines to separate filesArnaldo Carvalho de Melo1-5/+0
2019-09-25perf tools: No need to include internal/lib.h from util/util.hArnaldo Carvalho de Melo1-1/+0
2019-09-25libperf: Move 'page_size' global variable to libperfJiri Olsa1-2/+0
2019-08-26perf cacheline: Move cacheline related routines to separate filesArnaldo Carvalho de Melo1-1/+0
2019-07-29libperf: Adopt the readn()/writen() functions from tools/perfJiri Olsa1-3/+1
2019-07-09tools lib: Adopt zalloc()/zfree() from tools/perfArnaldo Carvalho de Melo1-9/+0
2019-07-09perf tools: Move get_current_dir_name() cond prototype out of util.hArnaldo Carvalho de Melo1-4/+0
2019-07-09perf namespaces: Move the conditional setns() prototype to namespaces.hArnaldo Carvalho de Melo1-4/+0
2019-06-25perf kallsyms: Adopt hex2u64 from tools/perf/util/util.hArnaldo Carvalho de Melo1-1/+0
2019-02-25perf tools: Add perf_exe() helper to find perf binaryAndi Kleen1-0/+2
2019-02-25perf tools: Add rm_rf_perf_data functionJiri Olsa1-0/+1
2018-11-19tools build feature: Check if get_current_dir_name() is availableArnaldo Carvalho de Melo1-0/+4
2018-09-19perf util: Make copyfile_offset() globalJiri Olsa1-0/+2
2018-05-17perf tools: No need to unconditionally read the max_stack sysctlsArnaldo Carvalho de Melo1-0/+2
2018-05-17perf tools: Read the cache line size lazilyArnaldo Carvalho de Melo1-1/+1
2018-04-09perf tools: No need to include namespaces.h in util.hArnaldo Carvalho de Melo1-2/+2
2018-01-23perf tools: Move conditional O_CLOEXEC to util.hArnaldo Carvalho de Melo1-0/+10
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/+5
2017-09-13perf tools: Make copyfile_offset() staticArnaldo Carvalho de Melo1-2/+0
2017-07-18perf util: Add const modifier to buf in "writen" functionDavid Carrillo-Cisneros1-1/+1
2017-07-18perf buildid-cache: Support binary objects from other namespacesKrister Johansen1-0/+2
2017-07-18tools build: Add test for setns()Arnaldo Carvalho de Melo1-0/+4
2017-06-27perf tools: Replace error() with pr_err()Arnaldo Carvalho de Melo1-1/+0
2017-06-27perf tools: Remove warning()Arnaldo Carvalho de Melo1-3/+0
2017-06-20perf tools: Remove unused _ALL_SOURCE defineArnaldo Carvalho de Melo1-1/+0
2017-06-20perf evsel: Adopt find_process()Arnaldo Carvalho de Melo1-2/+0
2017-06-19tools: Adopt __printf from kernel sourcesArnaldo Carvalho de Melo1-9/+3
2017-06-19tools: Adopt __noreturn from kernel sourcesArnaldo Carvalho de Melo1-6/+4
2017-04-26tools lib string: Adopt prefixcmp() from perf and subcmdArnaldo Carvalho de Melo1-2/+0
2017-04-26perf units: Move parse_tag_value() to units.[ch]Arnaldo Carvalho de Melo1-7/+0
2017-04-26perf ui gtk: Move gtk .so name to the only place where it is usedArnaldo Carvalho de Melo1-2/+0
2017-04-26perf tools: Move HAS_BOOL define to where perl headers are usedArnaldo Carvalho de Melo1-1/+0
2017-04-25perf memswap: Split the byteswap memory range wrappers from util.[ch]Arnaldo Carvalho de Melo1-3/+0
2017-04-25perf tools: Move event prototypes from util.h to event.hArnaldo Carvalho de Melo1-8/+0
2017-04-25perf buildid: Move prototypes from util.h to build-id.hArnaldo Carvalho de Melo1-3/+0
2017-04-24perf tools: Remove poll.h and wait.h from util.hArnaldo Carvalho de Melo1-2/+0
2017-04-24perf tools: Remove string.h, unistd.h and sys/stat.h from util.hArnaldo Carvalho de Melo1-3/+0
2017-04-24perf tools: Remove string.h from util.hArnaldo Carvalho de Melo1-1/+0
2017-04-24perf tools: Remove sys/ioctl.h from util.hArnaldo Carvalho de Melo1-1/+0
2017-04-24perf tools: Remove a few more needless includes from util.hArnaldo Carvalho de Melo1-4/+0
2017-04-24perf tools: Include sys/param.h where neededArnaldo Carvalho de Melo1-1/+0
2017-04-24perf callchain: Move callchain specific routines from util.[ch]Arnaldo Carvalho de Melo1-4/+0
2017-04-24perf tools: Add compress.h for the *_decompress_to_file() headersArnaldo Carvalho de Melo1-8/+0
2017-04-24perf debug: Move dump_stack() and sighandler_dump_stack() to debug.hArnaldo Carvalho de Melo1-3/+0
2017-04-24perf kvm: Make function only used by 'perf kvm' staticArnaldo Carvalho de Melo1-1/+0
2017-04-20perf tools: Move timestamp routines from util.h to time-utils.hArnaldo Carvalho de Melo1-6/+0
2017-04-20perf tools: Move units conversion/formatting routines to separate objectArnaldo Carvalho de Melo1-3/+0
2017-04-20perf tools: Add signal.h to places using its definitionsArnaldo Carvalho de Melo1-1/+0
2017-04-19perf tools: Ditch unused strchrnul() reimplementationArnaldo Carvalho de Melo1-16/+0
2017-04-19perf tools: Remove regex.h and fnmatch.h from util.hArnaldo Carvalho de Melo1-2/+0
2017-04-19perf tools: Remove include dirent.h from util.hArnaldo Carvalho de Melo1-1/+1
2017-04-19perf tools: Use api/fs/tracing_path.h where neededArnaldo Carvalho de Melo1-1/+0
2017-04-19perf tools: No need to include bitops.h in util.hArnaldo Carvalho de Melo1-1/+0
2017-04-19perf tools: Move path related functions to util/path.hArnaldo Carvalho de Melo1-16/+0
2017-04-19perf tools: Don't include terminal handling headers in util.hArnaldo Carvalho de Melo1-4/+0
2017-04-19perf str{filter,list}: Disentangle headersArnaldo Carvalho de Melo1-1/+2
2017-04-19perf tools: Include errno.h where neededArnaldo Carvalho de Melo1-1/+0
2017-04-19perf tools: Move extra string util functions to util/string2.hArnaldo Carvalho de Melo1-32/+0
2017-04-19perf tools: Move srcline definitions to separate headerArnaldo Carvalho de Melo1-27/+0
2017-04-19perf tools: Move print_binary definitions to separate filesArnaldo Carvalho de Melo1-23/+0
2017-04-19perf tools: Move sane ctype stuff from util.h to sane_ctype.hArnaldo Carvalho de Melo1-46/+0
2017-04-19perf tools: Ditch unused PATH_SEP, STRIP_EXTENSIONArnaldo Carvalho de Melo1-16/+0
2017-04-19perf tools: Replace STR() calls with __stringify()Arnaldo Carvalho de Melo1-3/+0
2017-04-19perf tools: Remove PRI[xu] macros from perf.hArnaldo Carvalho de Melo1-20/+0
2017-04-19perf tools: Remove unused macros from util.hArnaldo Carvalho de Melo1-12/+0
2017-04-19tools include: Move ARRAY_SIZE() to linux/kernel.hArnaldo Carvalho de Melo1-2/+0
2017-04-19perf tools: Remove FLEX_ARRAY definitionArnaldo Carvalho de Melo1-22/+0
2017-03-27perf report: Enable sorting by srcline as keyMilian Wolff1-2/+2
2017-03-27perf report: Find the inline stack for a given addressJin Yao1-0/+16
2017-03-03tools build: Add test for sched_getcpu()Arnaldo Carvalho de Melo1-2/+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/+1
2016-12-01perf tools: Move parse_nsec_time to time-utils.cDavid Ahern1-2/+0
2016-10-28perf tools: Introduce timestamp__scnprintf_usec()Namhyung Kim1-0/+3
2016-10-24perf list: Make vendor event matching case insensitiveAndi Kleen1-0/+1
2016-08-23tools: Introduce tools/include/linux/time64.h for *SEC_PER_*SEC macrosArnaldo Carvalho de Melo1-4/+0
2016-07-18perf tools: Make is_printable_array globalJiri Olsa1-0/+1
2016-07-14perf tools: Do not provide dup sched_getcpu() prototype on AndroidArnaldo Carvalho de Melo1-1/+1
2016-07-12perf tools: Remove unneeded magic.h include from util.hArnaldo Carvalho de Melo1-1/+0
2016-07-12perf tools: Introduce weak alternative to sched_getcpu()Arnaldo Carvalho de Melo1-0/+4
2016-07-12tools: Introduce str_error_r()Arnaldo Carvalho de Melo1-0/+1
2016-05-16perf tools: Separate accounting of contexts and real addresses in a stack traceArnaldo Carvalho de Melo1-1/+2
2016-05-10perf tools: Remove xrealloc and ALLOC_GROWMasami Hiramatsu1-6/+0
2016-04-27perf tools: Set the maximum allowed stack from /proc/sys/kernel/perf_event_ma...Arnaldo Carvalho de Melo1-0/+1
2016-04-26perf tools: Add lsdir() helper to read a directoryMasami Hiramatsu1-0/+3
2016-04-07perf tools: Introduce trim functionJiri Olsa1-0/+5
2016-03-23perf tools: Remove unused perf_pathdup, xstrdup functionsArnaldo Carvalho de Melo1-1/+0
2016-03-23perf tools: Do not include stringify.h from the kernel sourcesArnaldo Carvalho de Melo1-2/+0
2016-03-23perf tools: Remove needless 'extern' from function prototypesArnaldo Carvalho de Melo1-9/+9
2016-03-23perf tools: Simplify die() mechanismArnaldo Carvalho de Melo1-1/+0
2016-03-23perf tools: Remove unused DIE_IF macroArnaldo Carvalho de Melo1-7/+0
2016-02-24perf ui/stdio: Align column header for hierarchy outputNamhyung Kim1-0/+2
2016-02-24perf tools: Make binary data printer code in trace_event public availableWang Nan1-0/+20
2016-02-16tools lib api fs: Adopt filename__read_str from perfJiri Olsa1-1/+0
2016-01-29perf tools: Move timestamp creation to utilWang Nan1-0/+1
2016-01-26perf symbols: Do not read symbols/data from device filesJiri Olsa1-0/+1
2016-01-08perf report: Show random usage tip on the help lineNamhyung Kim1-0/+2
2015-12-17perf tools: Finalize subcmd independenceJosh Poimboeuf1-14/+0
2015-12-09perf tools: Move term functions out of util.cJosh Poimboeuf1-3/+1
2015-11-06perf bpf: Improve BPF related error messagesWang Nan1-0/+5
2015-11-06perf tools: Make fetch_kernel_version() publicly availableWang Nan1-0/+3
2015-10-19perf test: Suppress libtraceevent warningsNamhyung Kim1-0/+1
2015-09-14tools lib api fs: Replace debugfs/tracefs objects interface with fs.cJiri Olsa1-2/+1
2015-09-04tools lib api fs: Move tracing_path interface into api/fs/tracing_path.cJiri Olsa1-6/+0
2015-09-02perf tools: Move tracing_path stuff under same namespaceJiri Olsa1-2/+2
2015-09-02perf tools: Remove mountpoint arg from perf_debugfs_mountJiri Olsa1-1/+1
2015-09-02perf tools: Always use non inlined file name for 'srcfile' sort keyAndi Kleen1-0/+2
2015-08-28perf tools: Add tracing_path and remove unneeded functionsJiri Olsa1-1/+1
2015-08-10perf tools: Support full source file paths for srclineAndi Kleen1-0/+1
2015-08-08perf callchain: Move option parsing code to util.cKan Liang1-0/+2
2015-07-06perf tools: Asprintf like functions to format integer filter expressionArnaldo Carvalho de Melo1-0/+12
2015-05-18perf tools: Introduce copyfile_offset() functionNamhyung Kim1-0/+1
2015-05-18perf tools: Add rm_rf() utility functionNamhyung Kim1-0/+1
2015-05-08perf probe: Support glob wildcards for function nameMasami Hiramatsu1-0/+4
2015-03-21perf tools: Add lzma decompression support for kernel moduleJiri Olsa1-0/+4
2015-02-24perf tools: Introduce dump_stack signal helperArnaldo Carvalho de Melo1-0/+1
2015-02-11perf tools: Make perf aware of tracefsSteven Rostedt (Red Hat)1-0/+1
2014-12-19perf: Fix building warning on ARM 32Wang Nan1-1/+1
2014-12-17perf evlist: Use roundup_pow_of_twoArnaldo Carvalho de Melo1-18/+0
2014-12-17tools: Move code originally from linux/log2.h to tools/include/linux/Arnaldo Carvalho de Melo1-11/+0
2014-12-11tools lib fs: Adopt filename__read_int from tools/perf/Arnaldo Carvalho de Melo1-1/+0
2014-12-09perf tools: Add --buildid-dir option to set cache directoryJiri Olsa1-1/+1
2014-11-24perf callchain: Make get_srcline fall back to sym+offsetAndi Kleen1-1/+3
2014-11-19perf build-id: Move disable_buildid_cache() to util/build-id.cNamhyung Kim1-1/+0
2014-11-05perf tools: Add gzip decompression support for kernel moduleNamhyung Kim1-0/+5
2014-09-17perf tools: define _DEFAULT_SOURCE for glibc_2.20Chanho Park1-0/+2
2014-09-17perf tools: Don't include sys/poll.h directlyArnaldo Carvalho de Melo1-1/+1
2014-08-13perf tools: Introduce set_term_quiet_input helper functionJiri Olsa1-0/+2
2014-08-12perf tools: Show better error message in case we fail to open counters due to...Jiri Olsa1-0/+1
2014-07-31perf symbols: Make sure --symfs usage includes the path separatorArnaldo Carvalho de Melo1-0/+16
2014-06-09perf tools: Add support to dynamically get cacheline sizeDon Zickus1-0/+1
2014-05-01tools: Consolidate types.hBorislav Petkov1-1/+1
2013-12-27perf tools: Introduce zfreeArnaldo Carvalho de Melo1-0/+2
2013-12-16tools/: Convert to new topic librariesBorislav Petkov1-1/+1
2013-12-13perf tools: Move mem_bswap32/64 to util.cAdrian Hunter1-0/+3
2013-12-13perf tools: Add perf_event_paranoid()Adrian Hunter1-0/+1
2013-12-09perf kvm: Move code to generate filename for perf-kvm to function.Dongsheng Yang1-0/+2
2013-12-09perf evlist: Fix mmap pages rounding to power of 2Adrian Hunter1-0/+12
2013-12-04perf tools: Add filename__read_str util functionJiri Olsa1-0/+1
2013-12-02perf tools: Add writen functionJiri Olsa1-0/+1
2013-12-02perf tools: Use correct return type for readn functionJiri Olsa1-1/+1
2013-10-17perf tools: Introduce filename__read_int helperArnaldo Carvalho de Melo1-0/+2
2013-10-14perf tools: Add copyfile_mode()Adrian Hunter1-0/+1
2013-10-09perf annotate: Pass dso instead of dso_name to get_srcline()Namhyung Kim1-1/+3
2013-10-09perf annotate: Factor out get/free_srcline()Namhyung Kim1-0/+5
2013-10-09perf tools: Separate out GTK codes to libperf-gtk.soNamhyung Kim1-0/+2
2013-10-09perf tools: Add possibility to specify mmap sizeJiri Olsa1-0/+14
2013-08-07perf util: Add parse_nsec_time() functionNamhyung Kim1-0/+2
2013-07-12perf util: Move debugfs/tracing helper functions to util.cNamhyung Kim1-0/+3
2013-07-08perf tools: Include termios.h explicitlyJoonsoo Kim1-1/+1
2013-05-28perf tools: Fix bug in isupper() and islower()Sukadev Bhattiprolu1-2/+2
2013-03-21perf tools: Get rid of redundant _FILE_OFFSET_BITS definitionNamhyung Kim1-2/+0
2013-03-15perf tools: Extract perf-specific stuff from debugfs.cBorislav Petkov1-2/+5
2013-01-24perf tools: Move ltrim() to util/string.cNamhyung Kim1-0/+1
2013-01-24perf tools: Move get_term_dimensions from top to util.cDavid Ahern1-0/+3
2012-10-29perf tools: Move strxfrchar into string objectJiri Olsa1-0/+1
2012-10-29perf tools: Move hex2u64 into util objectJiri Olsa1-0/+1
2012-10-24perf trace: Support interrupted syscallsArnaldo Carvalho de Melo1-0/+4
2012-10-06perf tools: Have the page size value available for all toolsArnaldo Carvalho de Melo1-0/+2
2012-09-11perf tools: include wrapper for magic.hIrina Tirdea1-1/+1
2012-09-05perf tools: remove unneeded include of network header filesDavid Ahern1-5/+0
2012-08-07perf tools: Add dump_stack functionArnaldo Carvalho de Melo1-0/+2
2012-06-19perf lib: Introduce rtrimArnaldo Carvalho de Melo1-0/+2
2012-05-11Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/...Ingo Molnar1-3/+0
2012-05-07perf target: Introduce perf_target__parse_uid()Namhyung Kim1-3/+0
2012-05-02perf target: Split out perf_target handling codeNamhyung Kim1-2/+0
2012-05-02perf tools: Introduce perf_target__validate() helperNamhyung Kim1-1/+3
2012-04-19perf annotate browser: Align jump labelsArnaldo Carvalho de Melo1-0/+2
2012-02-13perf tools: Implement islower/isupper macro into util.hNamhyung Kim1-0/+4
2012-02-13perf tools: Allow multiple threads or processes in record, stat, topDavid Ahern1-1/+1
2012-01-24perf tools: Fix broken build by defining _GNU_SOURCE in MakefileDavid Daney1-1/+0
2012-01-24perf tools: Introduce per user viewArnaldo Carvalho de Melo1-0/+2
2012-01-06perf kvm: Do guest-only counting by defaultJoerg Roedel1-0/+4
2011-12-23perf: builtin-record: Document and check that mmap_pages must be a power of two.Nelson Elhage1-0/+11
2011-07-15perf probe: Move strtailcmp to string.cMasami Hiramatsu1-0/+1
2011-02-18perf tools: Makefile: Remove platform-specific cruftMichael Witten1-26/+0
2011-01-03perf util: Move do_read from session to utilArnaldo Carvalho de Melo1-0/+1
2010-08-19perf ui browser: Return the exit key in all browsersArnaldo Carvalho de Melo1-13/+0
2010-06-17perf record: Add option to avoid updating buildid cacheStephane Eranian1-0/+1
2010-06-05perf buildid: add perfconfig option to specify buildid cache dirStephane Eranian1-0/+2
2010-05-22perf annotate: Add TUI interfaceArnaldo Carvalho de Melo1-1/+14
2010-05-18perf tools: remove xstrndup, xmalloc, xzallocArnaldo Carvalho de Melo1-8/+0