Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79624670 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "tz_log: Do not add hyp files in tzdbg directory"

parents 87c57c27 75404804
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -931,6 +931,12 @@ static int tzdbgfs_init(struct platform_device *pdev)

	for (i = 0; i < TZDBG_STATS_MAX; i++) {
		tzdbg.debug_tz[i] = i;
		/* Do not create hyp entries in debugfs when hyplog flag is not
		   enabled in dtsi. */
		if (!tzdbg.is_hyplog_enabled &&
		    ((TZDBG_HYP_LOG == tzdbg.debug_tz[i]) ||
		     (TZDBG_HYP_GENERAL == tzdbg.debug_tz[i])))
			continue;
		dent = debugfs_create_file(tzdbg.stat[i].name,
				S_IRUGO, dent_dir,
				&tzdbg.debug_tz[i], &tzdbg_fops);