[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-1qrgq840ci0c5cy4oww957ge@git.kernel.org>
Date: Fri, 26 Oct 2018 00:30:08 -0700
From: tip-bot for Hongxu Jia <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: sboisvert@...le.com, tmricht@...ux.vnet.ibm.com, acme@...hat.com,
mingo@...nel.org, tglx@...utronix.de, namhyung@...nel.org,
brueckner@...ux.vnet.ibm.com, alexander.shishkin@...ux.intel.com,
linux-kernel@...r.kernel.org, mpe@...erman.id.au, jolsa@...hat.com,
kim.phillips@....com, ravi.bangoria@...ux.vnet.ibm.com,
hpa@...or.com, peterz@...radead.org, hongxu.jia@...driver.com
Subject: [tip:perf/urgent] perf arm64: Fix generate system call table failed
with /tmp mounted with noexec
Commit-ID: 389373d3306553896a9e218493e5b6175c844eb0
Gitweb: https://git.kernel.org/tip/389373d3306553896a9e218493e5b6175c844eb0
Author: Hongxu Jia <hongxu.jia@...driver.com>
AuthorDate: Thu, 18 Oct 2018 16:26:13 +0800
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Fri, 19 Oct 2018 11:56:57 -0300
perf arm64: Fix generate system call table failed with /tmp mounted with noexec
When /tmp is mounted with noexec, mksyscalltbl fails.
[snip]
|perf-1.0/tools/perf/arch/arm64/entry/syscalls//mksyscalltbl:
/tmp/create-table-6VGPSt: Permission denied
[snip]
Add variable TMPDIR as prefix dir of the temporary file, if it is set,
replace default /tmp.
Signed-off-by: Hongxu Jia <hongxu.jia@...driver.com>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Hendrik Brueckner <brueckner@...ux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Kim Phillips <kim.phillips@....com>
Cc: Michael Ellerman <mpe@...erman.id.au>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Ravi Bangoria <ravi.bangoria@...ux.vnet.ibm.com>
Cc: Sébastien Boisvert <sboisvert@...le.com>
Cc: Thomas Richter <tmricht@...ux.vnet.ibm.com>
Fixes: 2b5882435606 ("perf arm64: Generate system call table from asm/unistd.h")
LPU-Reference: 1539851173-14959-1-git-send-email-hongxu.jia@...driver.com
Link: https://lkml.kernel.org/n/tip-1qrgq840ci0c5cy4oww957ge@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
index 2dbb8cade048..c88fd32563eb 100755
--- a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
+++ b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
@@ -23,7 +23,7 @@ create_table_from_c()
{
local sc nr last_sc
- create_table_exe=`mktemp /tmp/create-table-XXXXXX`
+ create_table_exe=`mktemp ${TMPDIR:-/tmp}/create-table-XXXXXX`
{
Powered by blists - more mailing lists