From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946294AbdKRI31 (ORCPT ); Sat, 18 Nov 2017 03:29:27 -0500 Received: from terminus.zytor.com ([65.50.211.136]:56961 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946254AbdKRI3R (ORCPT ); Sat, 18 Nov 2017 03:29:17 -0500 Date: Sat, 18 Nov 2017 00:27:09 -0800 From: tip-bot for Seonghyun Park Message-ID: Cc: jolsa@kernel.org, hpa@zytor.com, seonghyun0p@gmail.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, tglx@linutronix.de, mingo@kernel.org, acme@redhat.com Reply-To: seonghyun0p@gmail.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, acme@redhat.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, jolsa@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tests: Add missing WRITE_ASS for new fields of perf_event_attr Git-Commit-ID: 60dbcd2532dd7eec2f1e23a37b80ff85d8fb2953 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 60dbcd2532dd7eec2f1e23a37b80ff85d8fb2953 Gitweb: https://git.kernel.org/tip/60dbcd2532dd7eec2f1e23a37b80ff85d8fb2953 Author: Seonghyun Park AuthorDate: Thu, 9 Nov 2017 23:07:04 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 16 Nov 2017 14:49:53 -0300 perf tests: Add missing WRITE_ASS for new fields of perf_event_attr Include newly added fields 'mmap2', 'comm_exec', 'use_clockid', 'namespaces', 'write_backward' and 'context_switch' from perf_event_attr to store_event(). Signed-off-by: Seonghyun Park Cc: Jiri Olsa Cc: Namhyung Kim Cc: Seonghyun Park Link: http://lkml.kernel.org/n/tip-vltn7pqhcv8h5fmo9cthk87q@git.kernel.org [ Fix log message to add 'write_backward', fix the patch to add 'use_clock_id' ] Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/attr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/tests/attr.c b/tools/perf/tests/attr.c index 0e1367f..97f64ad 100644 --- a/tools/perf/tests/attr.c +++ b/tools/perf/tests/attr.c @@ -124,6 +124,12 @@ static int store_event(struct perf_event_attr *attr, pid_t pid, int cpu, WRITE_ASS(exclude_guest, "d"); WRITE_ASS(exclude_callchain_kernel, "d"); WRITE_ASS(exclude_callchain_user, "d"); + WRITE_ASS(mmap2, "d"); + WRITE_ASS(comm_exec, "d"); + WRITE_ASS(context_switch, "d"); + WRITE_ASS(write_backward, "d"); + WRITE_ASS(namespaces, "d"); + WRITE_ASS(use_clockid, "d"); WRITE_ASS(wakeup_events, PRIu32); WRITE_ASS(bp_type, PRIu32); WRITE_ASS(config1, "llu");