Skip to content

Commit 8a4fe9f

Browse files
committed
tools headers UAPI: sync linux/prctl.h with kernel
JIRA: https://issues.redhat.com/browse/RHEL-29796 Upstream Status: RHEL only description =========== Upstream, when there is a change in a header file from the specific set of headers (listed in tools/perf/check-headers.sh), it is accompanied by a commit that brings the same change into its counterpart located in tools/include. Usually several changes are squashed together. We cannot easily follow this strategy, since we not always take all the commits squashed together. In order to tidy tools/include up, we need to sync the headers manually. Signed-off-by: Michael Petlan <mpetlan@redhat.com>
1 parent 7f5a0fb commit 8a4fe9f

File tree

1 file changed

+17
-0
lines changed
  • tools/perf/trace/beauty/include/uapi/linux

1 file changed

+17
-0
lines changed

tools/perf/trace/beauty/include/uapi/linux/prctl.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,21 @@ struct prctl_mm_map {
290290

291291
#define PR_SET_MEMORY_MERGE 67
292292
#define PR_GET_MEMORY_MERGE 68
293+
294+
/* PowerPC Dynamic Execution Control Register (DEXCR) controls */
295+
#define PR_PPC_GET_DEXCR 72
296+
#define PR_PPC_SET_DEXCR 73
297+
/* DEXCR aspect to act on */
298+
# define PR_PPC_DEXCR_SBHE 0 /* Speculative branch hint enable */
299+
# define PR_PPC_DEXCR_IBRTPD 1 /* Indirect branch recurrent target prediction disable */
300+
# define PR_PPC_DEXCR_SRAPD 2 /* Subroutine return address prediction disable */
301+
# define PR_PPC_DEXCR_NPHIE 3 /* Non-privileged hash instruction enable */
302+
/* Action to apply / return */
303+
# define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 /* Aspect can be modified with PR_PPC_SET_DEXCR */
304+
# define PR_PPC_DEXCR_CTRL_SET 0x2 /* Set the aspect for this process */
305+
# define PR_PPC_DEXCR_CTRL_CLEAR 0x4 /* Clear the aspect for this process */
306+
# define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 /* Set the aspect on exec */
307+
# define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */
308+
# define PR_PPC_DEXCR_CTRL_MASK 0x1f
309+
293310
#endif /* _LINUX_PRCTL_H */

0 commit comments

Comments
 (0)