All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] test-runner: enable valgrind track origins
@ 2020-10-21 21:36 James Prestwood
  2020-10-21 21:36 ` [PATCH 2/2] test-runner: add switch for genl debugging James Prestwood
  2020-10-22 14:25 ` [PATCH 1/2] test-runner: enable valgrind track origins Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: James Prestwood @ 2020-10-21 21:36 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

This gives a more exact location to where a memory problem
is happening. It also uses more RAM so the VM was upgraded to
256MB from 192MB.
---
 tools/test-runner | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/test-runner b/tools/test-runner
index 8c06816c..10db4c78 100755
--- a/tools/test-runner
+++ b/tools/test-runner
@@ -557,8 +557,8 @@ class TestContext:
 		iwd_radios = ','.join([r.name for r in self.radios if r.use == 'iwd'])
 
 		if self.args.valgrind:
-			args.extend(['valgrind', '--leak-check=full', '--log-file=%s' % \
-					'/tmp/valgrind.log'])
+			args.extend(['valgrind', '--leak-check=full', '--track-origins=yes',
+						'--log-file=/tmp/valgrind.log'])
 
 		args.extend(['iwd', '-p', iwd_radios])
 
@@ -1265,7 +1265,7 @@ class Main:
 			qemu_binary,
 			'-machine', 'type=q35,accel=kvm:tcg',
 			'-nodefaults', '-no-user-config', '-monitor', 'none',
-			'-display', 'none', '-m', '192M', '-nographic', '-vga',
+			'-display', 'none', '-m', '256M', '-nographic', '-vga',
 			'none', '-no-acpi', '-no-hpet',
 			'-no-reboot', '-fsdev',
 			'local,id=fsdev-root,path=/,readonly,security_model=none,multidevs=remap',
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] test-runner: add switch for genl debugging
  2020-10-21 21:36 [PATCH 1/2] test-runner: enable valgrind track origins James Prestwood
@ 2020-10-21 21:36 ` James Prestwood
  2020-10-22 14:25 ` [PATCH 1/2] test-runner: enable valgrind track origins Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: James Prestwood @ 2020-10-21 21:36 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

Providing 'iwd-genl' in the list of verbose options will enable
IWD_GENL_DEBUG.
---
 tools/test-runner | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/test-runner b/tools/test-runner
index 10db4c78..3ae4558c 100755
--- a/tools/test-runner
+++ b/tools/test-runner
@@ -578,6 +578,9 @@ class TestContext:
 		if self.is_verbose('iwd-tls'):
 			env['IWD_TLS_DEBUG'] = '1'
 
+		if self.is_verbose('iwd-genl'):
+			env['IWD_GENL_DEBUG'] = '1'
+
 		pid = self.start_process(args, env=env)
 		return pid
 
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] test-runner: enable valgrind track origins
  2020-10-21 21:36 [PATCH 1/2] test-runner: enable valgrind track origins James Prestwood
  2020-10-21 21:36 ` [PATCH 2/2] test-runner: add switch for genl debugging James Prestwood
@ 2020-10-22 14:25 ` Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2020-10-22 14:25 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

Hi James,

On 10/21/20 4:36 PM, James Prestwood wrote:
> This gives a more exact location to where a memory problem
> is happening. It also uses more RAM so the VM was upgraded to
> 256MB from 192MB.
> ---
>   tools/test-runner | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 

Both applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-22 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 21:36 [PATCH 1/2] test-runner: enable valgrind track origins James Prestwood
2020-10-21 21:36 ` [PATCH 2/2] test-runner: add switch for genl debugging James Prestwood
2020-10-22 14:25 ` [PATCH 1/2] test-runner: enable valgrind track origins Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.