Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix systrack synchronization #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix systrack synchronization #199

wants to merge 1 commit into from

Conversation

lneto
Copy link
Contributor

@lneto lneto commented Sep 24, 2024

  • change luaprobe to sleep=false
  • split systrack into two runtimes (driver and probes)

@lneto
Copy link
Contributor Author

lneto commented Sep 24, 2024

@endersonmaia can you check if it fixes #96 properly? Thank you!

* change luaprobe to sleep=false
* split systrack into two runtimes (driver and probes)
probe.new(address, {pre = handler, post = nop})
end

driver.probes = lunatik.runtime("systrack/probes", false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t it be "examples/systrack/probes"? As is, I get the message Cannot open /lib/modules/lua/systrack/probes.lua.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah! Good catch.. thanks! I'll fix it.. I was using Lua root for testing.. sorry about that

@jperon
Copy link
Contributor

jperon commented Sep 24, 2024

Just tried, and for me, it doesn’t work:

  • I have to fix "systrack/probes.lua" --> "examples/systrack/probes.lua" in systrack.lua to avoid an error message;
  • even then, when launching sudo lunatik run examples/systrack, my system hangs at once. Unfortunately, there is no message in dmesg, it just hangs suddenly.

@lneto
Copy link
Contributor Author

lneto commented Sep 24, 2024

Just tried, and for me, it doesn’t work:

  • I have to fix "systrack/probes.lua" --> "examples/systrack/probes.lua" in systrack.lua to avoid an error message;
  • even then, when launching sudo lunatik run examples/systrack, my system hangs at once. Unfortunately, there is no message in dmesg, it just hangs suddenly.

Hmm.. ungood.. can you give more info about your system? Arch and kernel version?

@jperon
Copy link
Contributor

jperon commented Sep 24, 2024

Here you are:

❯ uname -a

Linux hpx2 6.10.11-x64v2-xanmod1 #0~20240918.g789ea79 SMP PREEMPT_DYNAMIC Wed Sep 18 20:55:48 UTC x86_64 x86_64 x86_64 GNU/Linux

❯ lscpu

Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          36 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0-3
Vendor ID:                GenuineIntel
  Model name:             Intel(R) Atom(TM) x5-Z8350  CPU @ 1.44GHz
    CPU family:           6
    Model:                76
    Thread(s) per core:   1
    Core(s) per socket:   4
    Socket(s):            1
    Stepping:             4
    CPU(s) scaling MHz:   99%
    CPU max MHz:          1920.0000
    CPU min MHz:          480.0000
    BogoMIPS:             2880.00
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse 
                          sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_
                          reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 s
                          sse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch epb
                           pti ibrs ibpb stibp tpr_shadow flexpriority ept vpid tsc_adjust smep erms dtherm ida arat vnmi md_cle
                          ar
Virtualization features:  
  Virtualization:         VT-x
Caches (sum of all):      
  L1d:                    96 KiB (4 instances)
  L1i:                    128 KiB (4 instances)
  L2:                     2 MiB (2 instances)
NUMA:                     
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-3
Vulnerabilities:          
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Mitigation; Clear CPU buffers; SMT disabled
  Meltdown:               Mitigation; PTI
  Mmio stale data:        Unknown: No mitigations
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Not affected
  Spec store bypass:      Not affected
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:             Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affect
                          ed; BHI Not affected
  Srbds:                  Not affected
  Tsx async abort:        Not affected

❯ cat -p /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants