From b59d2aabd101b7afc0e07fc7def75cf5f56ddb7a Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 28 Nov 2021 17:06:02 +0100 Subject: [PATCH] .probe: Add function call to modprobenames() Function resides in inpc_probe.c. The function renames all current measurement instances vcurr_instance:node#branch to instance:node#branch by modifying the global instance table (tab). --- src/frontend/inp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index ce2c2ec8c..a089b19be 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -83,6 +83,8 @@ extern void inp_rem_levels(struct nscope* root); extern void comment_out_unused_subckt_models(struct card *deck); extern void inp_rem_unused_models(struct nscope *root, struct card *deck); +extern void modprobenames(INPtables * tab); + #ifdef SHARED_MODULE extern void exec_controls(wordlist *controls); #endif @@ -1236,6 +1238,10 @@ inp_dodeck( startTime = seconds(); ckt = if_inpdeck(deck, &tab); ft_curckt->FTEstats->FTESTATnetParseTime = seconds() - startTime; + /* if .probe, rename the current measurement node vcurr_ */ + if (cp_getvar("probe_is_given", CP_BOOL, NULL, 0)) { + modprobenames(tab); + } } else { ckt = NULL; }