Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp900569lqt; Fri, 7 Jun 2024 02:00:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4qBBZm9Rpgu56n0pYWyofKRpfFVXEt9jUboou5C42yO68aeP6pVBeWm5MuJG87ZjylTNCV5S/3ImLJWQJwPJFbIquH9AA2XzUtINH4w== X-Google-Smtp-Source: AGHT+IGyJY5IELYz7QsZxZwWVGdyebp5Ds2tk+orzcQBzPCUxiTIBI9STtYXRwvxWf6gkoDfFo7g X-Received: by 2002:a17:907:3f1c:b0:a68:e6a5:b3ea with SMTP id a640c23a62f3a-a6cd561f14dmr152044466b.5.1717750800175; Fri, 07 Jun 2024 02:00:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717750800; cv=pass; d=google.com; s=arc-20160816; b=pjnTRETBtW6scN1wjAOwd2iJSfKsexU3MLGcA4QKAm2djcs8A/d3brw8BNRQOnb4Rv hAIhp0SVcgybj2V62VRkgYJuUgGxkePhAq36xNI2HOEPHoFQ7LphvjsEGYeNJie6c5kK /0DnVgA7maSUWubyRagchvSuBZv9m64zPajXv5qrMBAKz3XT31MF8VsdCVSfhQBgUVgB ELnTT/xeMlz7JPHqSnfubdJ/Ye4qvy5EB4ANuCOjgiGlpLoS0ENlspKwB2t2WnwW/3u8 +FuCWmRN3x+n9rVbv0Du7EAHZibz8ejG8wSJJ+u9Zynzqy8axz+gaJbUq4C7+UxcQjjh +c/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=03my5rSzWoozmJ4G5TZgDpCn57NCoB6M9R5muxRkurE=; fh=99z5Ux09FfiwlH2DWqyOEB/PS16kE8yveAK/3qLeA8A=; b=ObzlwbcOTwoVRH0jUqZlpmqB1frHVy/Qv047wJoQMNDkRHmzPJGs428oMNnj9ZFXH2 kU4Jlpg+D8lkEyCWqSw+NtdalJHO8h+iXZbOaNOEfF0LZZQuGScW3sUhPpr7esxNdPlC 6PKRMZBYdwLWZ2Z2veb0qImim5Z+zVdqNPobO8+JpnL1ZzvvTIJqu2DDCveMVVRTAzg3 qS8gaMPQgBiO4uyb+FzcRlpgBpO4QuO0N4xwLJP4f7LkoFmUBYP6gONjDOos2k5iTyBP 5lkQElFCptaDDZrbOyyUfwPbhRwscmGzEUSqe27w0GZV7+UoIjlQCN2Q/O1EyRXyPtz5 J90w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=rtNSPQ+l; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-205639-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806daddfsi164416066b.301.2024.06.07.02.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:00:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205639-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=rtNSPQ+l; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-205639-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5ED751F2805D for ; Fri, 7 Jun 2024 08:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEA3615B131; Fri, 7 Jun 2024 08:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="rtNSPQ+l" Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5866515B11E; Fri, 7 Jun 2024 08:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717750210; cv=none; b=iTvkfRcqDuFnvZC3KHVok9rxZeIhXUbsm7pcSBq/6YuzcgiaomuimjV/YdKkCWgWOPAL1SN/PHjEp4LIgDwmS/Hjubu8LhfTXvd1GirF78ac5YEQFWGu0Eu+OlcGbWEHdQakt8jfp7WI5LeXNXnTGP1gxZrof99OWIIcHNO5bWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717750210; c=relaxed/simple; bh=I+5QaYIykDUxkM+AktFs0YaLfJqsqXs4Jnxrc3yWOTg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=PopiWwBMuRPzl4kVIao2ILRSVMykrtZtN71064WnM2DQWR6bKLq+ScPtkvPxbdQH53cP6zDmTF4W04rn0aszs38Epk7CZxjiE/8ZGFQjPYEBTaU3wDdZbCJJtB6l5LYSaj3QWaMN8aph0NKONqG/7AhHmw7Ga2cz2BTEWtCHk7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=rtNSPQ+l; arc=none smtp.client-ip=115.124.30.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1717750199; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=03my5rSzWoozmJ4G5TZgDpCn57NCoB6M9R5muxRkurE=; b=rtNSPQ+lt4Tx5wNlhs8y5TMJ5WhHkwiO1aM0HIV9JXUn5WubhSs1JD+yjGdWP5FfwwfP2eNdmFfelW3SiDilVU74hhW5TFsP9Ju/z7HaIWsru+OWVjUBOPPzqpdA8Hc2WMPsGhbt1NH5c3F10pPZtl/YQXS4i88xRmhY7F4TESA= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R631e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067111;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0W8-ctpw_1717750198; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W8-ctpw_1717750198) by smtp.aliyun-inc.com; Fri, 07 Jun 2024 16:49:58 +0800 From: Yang Li To: rostedt@goodmis.org, mhiramat@kernel.org Cc: mark.rutland@arm.com, mathieu.desnoyers@efficios.com, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 1/2] function_graph: Add kernel-doc comments for ftrace_graph_ret_addr() function Date: Fri, 7 Jun 2024 16:49:56 +0800 Message-Id: <20240607084957.64715-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Added kernel-doc comments for the ftrace_graph_ret_addr() function to improve code documentation and readability. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9299 Signed-off-by: Yang Li --- kernel/trace/fgraph.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index a13551a023aa..4ad33e4cb8da 100644 --- a/kernel/trace/fgraph.c +++ b/kernel/trace/fgraph.c @@ -872,6 +872,12 @@ ftrace_graph_get_ret_stack(struct task_struct *task, int idx) /** * ftrace_graph_ret_addr - convert a potentially modified stack return address * to its original value + * @task: pointer to the task_struct of the task being examined + * @idx: pointer to a state variable, should be initialized to zero + * before the first call + * @ret: the current return address found on the stack + * @retp: pointer to the return address on the stack, ignored if + * HAVE_FUNCTION_GRAPH_RET_ADDR_PTR is not defined * * This function can be called by stack unwinding code to convert a found stack * return address ('ret') to its original value, in case the function graph -- 2.20.1.7.g153144c