aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api
AgeCommit message (Expand)AuthorFilesLines
2025-03-13libapi: Add missing header with NAME_MAX define to io_dir.hArnaldo Carvalho de Melo1-0/+1
2025-02-24tools lib api: Add io_dir an allocation free readdir alternativeIan Rogers2-1/+105
2024-12-09tool api fs: Correctly encode errno for read/write open failuresIan Rogers1-3/+3
2024-11-08tools api io: Ensure line_len_out is always initializedIan Rogers1-0/+1
2024-09-11tools: Drop nonsensical -O6Sam James1-4/+0
2024-08-01perf list: Give clues if failed to open tracing events directoryTiezhu Yang1-1/+1
2024-05-30tools api io: Move filling the io buffer to its own functionIan Rogers1-31/+38
2023-11-30tools api fs: Avoid reading whole file for a 1 byte boolIan Rogers1-9/+15
2023-11-30tools api fs: Switch filename__read_str to use io.hIan Rogers2-45/+22
2023-11-30libapi: Add missing linux/types.h header to get the __u64 type on io.hArnaldo Carvalho de Melo1-0/+1
2023-10-12tools api: Avoid potential double freeIan Rogers1-0/+1
2023-06-14tools api: Add simple timeout to io readIan Rogers1-1/+27
2023-06-13tools api fs: More thread safety for global filesystem variablesIan Rogers1-125/+86
2023-05-28tools api fs: Dynamically allocate cgroupfs mount point cache, removing 4128 ...Ian Rogers1-6/+11
2023-05-28tools lib api fs tracing_path: Remove two unused MAX_PATH pathsIan Rogers1-11/+6
2023-05-28tools api fs: Avoid large static PATH_MAX arraysIan Rogers1-7/+18
2023-04-04tools api: Add io__getlineIan Rogers1-0/+45
2023-02-18tracing: Always use canonical ftrace pathRoss Zwisler1-2/+2
2022-12-14tools lib api: Add dependency test to install_headersIan Rogers1-12/+26
2022-11-20tools lib api: Clean up install_headersIan Rogers1-2/+2
2022-11-16tools lib api: Add missing install headersIan Rogers1-1/+4
2022-11-16tools lib api: Add install targetIan Rogers1-0/+49
2022-11-15tools lib api fs tracing_path: Add scandir alphasortIan Rogers2-0/+17
2022-10-04perf record: Fix way of handling non-perf-event pollfdsAdrian Hunter1-2/+3
2022-03-31Merge tag 'kbuild-v5.18-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2022-02-15kbuild: replace $(if A,A,B) with $(or A,B)Masahiro Yamada1-1/+1
2022-02-10tools lib: Introduce fdarray duplicate functionAlexey Bayduraev2-0/+18
2021-02-17tools api fs: Cache cgroupfs mount pointNamhyung Kim1-0/+19
2021-02-17tools api fs: Diet cgroupfs_find_mountpoint()Namhyung Kim1-25/+45
2021-02-17tools api fs: Prefer cgroup v1 path in cgroupfs_find_mountpoint()Namhyung Kim1-19/+15
2020-07-21libperf: Avoid counting of nonfilterable fdarray fdsAlexey Budankov1-1/+2
2020-07-21libperf: Add flags to fdarray fds objectsAlexey Budankov2-6/+19
2020-07-21libperf: Avoid internal moving of fdarray fdsAlexey Budankov1-6/+5
2020-05-05libsymbols kallsyms: Parse using io apiIan Rogers1-0/+3
2020-04-30tools api: Add a lightweight buffered reading apiIan Rogers1-0/+112
2020-04-16tools api fs: Make xxx__mountpoint() more scalableStephane Eranian2-0/+29
2020-03-04tools lib api fs: Move cgroupsfs_find_mountpoint()Namhyung Kim3-0/+70
2020-01-06tools lib api fs: Fix gcc9 stringop-truncation compilation errorAndrey Zhizhikin1-1/+3
2019-10-18tools lib api: Renaming pr_warning to pr_warnKefeng Wang3-6/+6
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 251Thomas Gleixner1-2/+1
2018-10-16perf tools: Fix tracing_path_mount proper pathJiri Olsa1-2/+2
2018-06-15docs: Fix some broken referencesMauro Carvalho Chehab1-1/+1
2018-05-17tools lib api fs tracing_path: Make tracing_events_path privateArnaldo Carvalho de Melo2-4/+1
2018-05-17tools lib api fs tracing_path: Introduce opendir() methodArnaldo Carvalho de Melo2-0/+16
2018-05-17tools lib api fs tracing_path: Introduce get/put_events_file() helpersArnaldo Carvalho de Melo2-0/+20
2018-05-16tools lib api: Unexport 'tracing_path' variableArnaldo Carvalho de Melo2-3/+2
2018-05-16tools lib api: The tracing_mnt variable doesn't need to be globalArnaldo Carvalho de Melo1-3/+2
2018-02-16tools lib api fs: Add sysfs__read_xll functionJiri Olsa2-2/+14
2018-02-16tools lib api fs: Add filename__read_xll functionJiri Olsa2-7/+23
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman11-0/+11
2017-09-12tools lib api: Fix make DEBUG=1 buildJiri Olsa1-1/+7
2017-08-28perf tools: Robustify detection of clang binaryDavid Carrillo-Cisneros1-1/+1
2017-08-28tools lib: Allow external definition of CC, AR and LDDavid Carrillo-Cisneros1-3/+3
2017-06-21tools lib api fs: Add sysfs__write_int functionKan Liang2-0/+34
2017-03-17tools lib api fs: Introduce sysfs__read_boolAlexander Shishkin2-0/+30
2017-02-14tools: Set the maximum optimization level according to the compiler being usedArnaldo Carvalho de Melo1-1/+7
2017-02-08perf sdt: Show proper hint when event not yet in place via 'perf probe'Ravi Bangoria1-14/+18
2017-01-31tools lib api fs: Add bpf_fs filesystem detectorJoe Stringer2-0/+17
2016-12-11make use of make variable CURDIR instead of calling pwdUwe Kleine-König1-1/+1
2016-09-08tools lib api fs: Add hugetlbfs filesystem detectorWang Nan2-0/+16
2016-07-27tools lib api: Add str_error_c to libapiArnaldo Carvalho de Melo1-0/+5
2016-07-15tools lib fd array: Allow associating a pointer cookie with each entryWang Nan1-0/+1
2016-07-15tools lib api fs: Use base 0 in filename__read_ullJiri Olsa1-1/+6
2016-07-12tools lib api fs: Use str_error_r()Arnaldo Carvalho de Melo2-1/+3
2016-07-04tools lib api: Respect WERROR=0 for buildChris Phlipot1-1/+7
2016-06-03tools lib api: Respect CROSS_COMPILE for the linkerLucas Stach1-0/+1
2016-05-30tools: Pass arg to fdarray__filter's call back functionWang Nan2-3/+5
2016-04-26tools lib api fs: Add helper to read string from procfs fileArnaldo Carvalho de Melo2-0/+15
2016-03-18tools: Move utilities.mak from perf to tools/scripts/Arnaldo Carvalho de Melo1-1/+1
2016-02-16tools lib api fs: Add sysfs__read_str functionJiri Olsa2-0/+14
2016-02-16tools lib api fs: Adopt filename__read_str from perfJiri Olsa2-0/+53
2016-02-16tools lib api: Add debug output supportJiri Olsa5-0/+60
2015-10-05tools lib api fs: No need to use PATH_MAX + 1Jiri Olsa2-4/+4
2015-09-28tools build: Build fixdep helper from perf and basic libsJiri Olsa1-1/+3
2015-09-28tools build: Add Makefile.includeJiri Olsa1-1/+1
2015-09-28tools lib api fs: Store tracing mountpoint for better error messageJiri Olsa1-10/+3
2015-09-14tools lib api cpu: Introduce cpu.[ch] to obtain cpu related informationArnaldo Carvalho de Melo3-0/+25
2015-09-14tools lib api fs: Introduce sysfs__read_{int,ull}()Arnaldo Carvalho de Melo2-0/+49
2015-09-14tools lib api fs: Remove debugfs, tracefs and findfs objectsJiri Olsa7-288/+0
2015-09-14tools lib api fs: Replace debugfs/tracefs objects interface with fs.cJiri Olsa2-9/+7
2015-09-14tools lib api fs: Make tracing_path_strerror_open message genericJiri Olsa1-10/+16
2015-09-04tools lib api fs: Add FSTYPE__configured() methodJiri Olsa2-10/+18
2015-09-04tools lib api fs: Add FSTYPE__mount() methodJiri Olsa2-9/+50
2015-09-04tools lib api fs: Add tracefs into fs.c objectJiri Olsa2-0/+29
2015-09-04tools lib api fs: Add debugfs into fs.c objectJiri Olsa2-6/+26
2015-09-04tools lib api fs: Move SYSFS_MAGIC PROC_SUPER_MAGIC into fs.cJiri Olsa2-8/+8
2015-09-04tools lib api fs: Add STR and PATH_MAX macros to fs objectJiri Olsa2-0/+11
2015-09-04tools lib api fs: Move debugfs__strerror_open into tracing_path.c objectJiri Olsa3-52/+57
2015-09-04tools lib api fs: Move tracing_path interface into api/fs/tracing_path.cJiri Olsa3-0/+97
2015-07-21Merge branch 'linus' into perf/core, to refresh the branchIngo Molnar1-1/+1
2015-07-08tools lib: Improve clean targetRiku Voipio1-1/+1
2015-07-06tools lib api debugfs: Check for tracefs when reporting errorsArnaldo Carvalho de Melo1-2/+13
2015-04-23tools lib api: Undefine _FORTIFY_SOURCE before setting itBobby Powers1-1/+1
2015-02-12tools lib api: Rename libapikfs.a to libapi.aJiri Olsa4-11/+11
2015-02-12tools lib api: Use tools build frameworkJiri Olsa4-36/+33
2015-02-07tools lib api fs: Add {tracefs,debugfs}_configured() functionsSteven Rostedt (Red Hat)5-0/+20
2015-02-07tools lib api debugfs: Add DEBUGFS_DEFAULT_PATH macroSteven Rostedt (Red Hat)1-3/+7
2015-02-07tools lib api fs: Add tracefs mount helper functionsSteven Rostedt (Red Hat)3-0/+92
2015-02-07tools lib fs: Add helper to find mounted file systemsSteven Rostedt (Red Hat)5-54/+94
2015-02-07perf tools: Do not check debugfs MAGIC for tracing filesSteven Rostedt (Red Hat)2-15/+14
2015-01-22tools lib fs debugfs: Check if debugfs is mounted when handling ENOENTArnaldo Carvalho de Melo1-0/+7
2015-01-22tools lib fs debugfs: Introduce debugfs__strerror_open_tpArnaldo Carvalho de Melo2-0/+10
2015-01-22tools lib fs: Pass filename to debugfs__strerror_openArnaldo Carvalho de Melo2-4/+4
2015-01-22tools lib fs: Adopt debugfs open strerrno methodArnaldo Carvalho de Melo2-0/+29
2015-01-16perf tools: Fix statfs.f_type data type mismatch build error with uclibcAlexey Brodkin2-2/+2
2014-12-11tools lib fs: Add sysctl__read_int helperArnaldo Carvalho de Melo2-0/+14
2014-12-11tools lib fs: Adopt filename__read_int from tools/perf/Arnaldo Carvalho de Melo2-0/+23
2014-09-25tools lib fd array: Allow associating an integer cookie with each entryArnaldo Carvalho de Melo2-5/+39
2014-09-25tools lib api: Adopt fdarray class from perf's evlistArnaldo Carvalho de Melo3-1/+145
2014-06-03perf tools: Allow overriding sysfs and proc finding with env varCody P Schafer1-1/+42
2014-04-30perf tools: Remove extra '/' character in events file pathXia Kaixu1-2/+2
2014-02-18perf tools: Move fs.* to lib/api/fs/Borislav Petkov3-0/+140
2013-12-16tools/: Convert to new topic librariesBorislav Petkov3-0/+171