Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6267478rwn; Tue, 13 Sep 2022 01:16:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5IHa7XOaVIbfp28U8R6OL9BmyyqqsDeHy0eBMhjEFOIggVuNWRM95BCUE1+IJAzDAlNv7k X-Received: by 2002:a63:1b10:0:b0:439:2e22:8fcc with SMTP id b16-20020a631b10000000b004392e228fccmr4399918pgb.565.1663057006008; Tue, 13 Sep 2022 01:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663057006; cv=none; d=google.com; s=arc-20160816; b=H/4ePc7sGBR9dOVQvNfGO4F6dLxaY1ln1lFUW1e8CL15P+G2nhX5zlX/LIwErbsZoA QgK5RnrYXUDuSpJMfz7ZuExKcFdG8Bvr2noqLG94tena0eA4vAH+Ol88C7ck/wHac7WA 6PkvHeu4m0yO18Uhcs4b/DhNnfVmG6YOsK/7qYW/y60kfISaBZ0OlFXL41sBFYheJhFE LJGRhnEOiU693gzeqA5NQJHyTnje+bqcdaS8RbfB9uDFdqBgjtRzIYMiOMvJTsj9N7z+ Q09V7BZ09Q32DxqwmyLubaSlNVOBiFaf0zMVZ5ayWeqnuLatLF10PG4WdZUtEedxU5g4 58fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id; bh=t0sjkp0y8sqlr6OblGUt3789/3P5mxFmZ+RLZyyioIw=; b=ukx8NM6lLG1qApYyfWfxz1vQnC0myCvT7jAKtw551hM0xrwBF11Ibs0jFEJ3s3H3Js w466WrilJIAYuFo82EjxJpnq4495OxsrNDVu1dCA0uBvlq0G0/xKK6INTn+fO/P7aEcH lcwhN+06DL51f3VWUHCv/HXXxME5XhXkAx7OcJKOEkes8zgYi0SYe9yPnGMKcQ3YjD+0 p3IxBowsHpoFRqsA+K6JfWvCYkW6MuyMlzSRoL7Py/Xg9gukYxsQJHzqU5Zg0zkgmbKS pBXC7Wv/rn5+3Y7P8MGFg8Xa6W5DT2T9EER8xuXyW5VHsjTcxUs84kkPHfTQs+t66neH FHZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a170902dac500b00172fa1d47d4si13676211plx.509.2022.09.13.01.16.34; Tue, 13 Sep 2022 01:16:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbiIMHsu (ORCPT + 99 others); Tue, 13 Sep 2022 03:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbiIMHsn (ORCPT ); Tue, 13 Sep 2022 03:48:43 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718BF5A3C8 for ; Tue, 13 Sep 2022 00:48:39 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aef37.dynamic.kabel-deutschland.de [95.90.239.55]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 974D461EA1932; Tue, 13 Sep 2022 09:48:35 +0200 (CEST) Message-ID: Date: Tue, 13 Sep 2022 09:48:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US To: Steven Rostedt , Ingo Molnar Cc: LKML From: Paul Menzel Subject: `switch_ldt()` fills up trace file Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Linux folks, Using `bootgraph.py -f -manual` [1] to generate the Linux CLI line for tracing the boot, and changing `do_one_initcall` to `dell_init` to trace `drivers/platform/x86/dell/dell-laptop.c`, `switch_ldt();` fills up the trace file. Is that expected, and can I work around it? ``` # boot-091222-181507 dellxps139360 boot 5.19.0-1-amd64 # sysinfo | man:Dell Inc. | plat:XPS 13 9360 | cpu:Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz | bios:2.21.0 | biosdate:06/02/2022 | numcpu:4 | memsz:15959616 | memfr:11084888 | os:Debian GNU/Linux bookworm/sid # command | analyze_boot.py -f # kparams | BOOT_IMAGE=/vmlinuz-5.19.0-1-amd64 root=UUID=fe58fd63-a3e1-4670-b648-45c6a324394a ro initcall_debug log_buf_len=32M trace_buf_size=524288K trace_clock=global trace_options=nooverwrite,funcgraph-abstime,funcgraph-cpu,funcgraph-duration,funcgraph-proc,funcgraph-tail,nofuncgraph-overhead,context-info,graph-time ftrace=function_graph ftrace_graph_max_depth=5 ftrace_graph_filter=dell_init cryptomgr.notests # tracer: function_graph # # TIME CPU TASK/PID DURATION FUNCTION CALLS # | | | | | | | | | | 0.516713 | 0) systemd-1 | 1.671 us | switch_ldt(); 0.516715 | 0) systemd-1 | 0.207 us | switch_ldt(); 0.516716 | 0) systemd-1 | 0.170 us | switch_ldt(); […] ``` Kind regards, Paul [1]: https://github.com/intel/pm-graph