perf tools: Use sysfs__mountpoint() when reading cpu topology
Jiri Olsa authored
Use sysfs__mountpoint() when reading sysfs files to obtain cpu/numa
topologies.

Also use scnprintf instead of sprintf as suggested by Namhyung.
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190219095815.15931-5-jolsa@kernel.org

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
e19a01c1
Name Last commit Last update
Documentation Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
LICENSES Merge tag 'docs-4.20' of git://git.lwn.net/linux
arch x86/kprobes: Prohibit probing on IRQ handlers directly
block blk-mq: fix a hung issue when fsync
certs kbuild: remove redundant target cleaning on failure
crypto crypto: sm3 - fix undefined shift by >= width of value
drivers coresight: Use event attributes for sink selection
firmware kbuild: change filechk to surround the given command with { }
fs Merge tag 'for-5.0-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
include coresight: perf: Add "sinks" group to PMU directory
init psi: clarify the Kconfig text for the default-disable option
ipc ipc: IPCMNI limit check for semmni
kernel kprobes: Prohibit probing on lockdep functions
lib kprobes: Prohibit probing on bsearch()
mm mm: migrate: don't rely on __PageMovable() of newpage after unlocking it
net net: set default network namespace in init_dummy_netdev()
samples samples/bpf: workaround clang asm goto compilation errors
scripts Merge tag 'gcc-plugins-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
security apparmor: Fix aa_label_build() error handling for failed merges
sound Merge tag 'sound-5.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools perf tools: Use sysfs__mountpoint() when reading cpu topology
usr user/Makefile: Fix typo and capitalization in comment section
virt KVM: validate userspace input in kvm_clear_dirty_log_protect()
.clang-format clang-format: Update .clang-format with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore kbuild: Add support for DT binding schema checks
.mailmap Merge tag 'mips_fixes_4.21_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
COPYING COPYING: use the new text with points to the license files
CREDITS Add CREDITS entry for Shaohua Li
Kbuild kbuild: use assignment instead of define ... endef for filechk_* rules
Kconfig kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt
MAINTAINERS Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Makefile Linux 5.0-rc5
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.