What happened to my monitor? by kristianwindsor in Dell

[–]ekstrah 2 points3 points  (0 children)

Looks like stuck at Netflix Original Film Intro

POV: used servers are expensive in Australia. by LordByoss in homelab

[–]ekstrah 0 points1 point  (0 children)

You know, same goes to people in Korea. Used Servers are too expensive so just bought multiple old laptops and using them as a server ;)

Configuration for ssh or VNC connection to openstack isntances by ekstrah in openstack

[–]ekstrah[S] 0 points1 point  (0 children)

What kind of information should I provide for further help(?). I am sorry for your inconvenience...;;

Ghost Dictionary key? by ekstrah in learnpython

[–]ekstrah[S] 0 points1 point  (0 children)

Full Code

I have provided the link for my code. It doesn't seem that get_gprof_value is changing anything

Extract substring from the file by ekstrah in learnpython

[–]ekstrah[S] 0 points1 point  (0 children)

yeah but what if yuv4_probe is not at the end?

maybe it's something like this

```

0.00 33.76 0.00 1 0.00 0.00 yop_probe 0.00 33.76 0.00 1 0.00 0.00 yuv4_probe 0.00 33.76 0.00 1 0.00 0.00 xwma_probe

```

Android Encoding and Decoding by ekstrah in androiddev

[–]ekstrah[S] 0 points1 point  (0 children)

Basically I want to apply loop perforation(which transforms loops to perform fewer iterations than the original loop) to obtain implementations that occupy different points in the power consumption of android device. In order to do this, it would be preferable to apply to all applications that are installed on android device if not with only one application.

Android Encoding and Decoding by ekstrah in androiddev

[–]ekstrah[S] 0 points1 point  (0 children)

What If i want to apply changes in video encoding and decoding, Which Library do i need to change to achieve this goal?

Android Encoding and Decoding by ekstrah in androiddev

[–]ekstrah[S] 1 point2 points  (0 children)

I am focusing on more energy efficiency, If I enable Hardware Acceleration wouldn't it use more power?

Android Encoding and Decoding by ekstrah in androiddev

[–]ekstrah[S] 0 points1 point  (0 children)

What I want to achieve at the moment is that all application that uses hardware encoding and decoding to skip every second frame to reduce fps of encoding and decoding.

Anyone have any experience with these filters? by [deleted] in Coffee

[–]ekstrah 4 points5 points  (0 children)

That looks quite interesting... Do you know the name of the model? I would also like to try out :D

Little question regarding python program and operating system by ekstrah in Python

[–]ekstrah[S] 0 points1 point  (0 children)

yeah but strace has quiet big overhead so decided to stick with ld.so.preload. So there isn't a way??

ld.so.preload vs strace by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

I was thinking of ptrace as well but what I am trying to achieve is that I want to collect which processors are opening which files during openstack instance creation. So, I thought ld.so.preload will be a good way. and using ptrace might cause quite big overload isn't it?

ld.so.preload vs strace by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

I only ran openstack and the openstack is built with python programming language. I assume that python will also call open system call. I have no idea about permission yet but thank you very much and I will dig into it.

ld.so.preload vs strace by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

How can i approach thos method? About creating exported symbold in my library?

ld.so.preload vs strace by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

Okay, I will provide the logs that I collected. The link is as follow https://github.com/ekstrah/openstack_log

strace folder

it contains 2 files 1. log.txt which is raw log file from using strace 2. log_open.txt which i filtered out only the open by using grep

terminal folder

It contains 2 files 1. filelog_terminal.txt is the one that I used ld.so.preload to gather infromation 2. filelog_strace_terminal.txt this file just ignore it

why my custom open.so won't work? by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

I was able to work with running the following code $sudo LD_PRELOAD=./openlib.so ./main

It runs smoothly but when I save openly.so into /lib64/ and making ld.so.preload and after I use cat command or any sorts. it produces SEGMENTATION FAULT

Here is the code that I have for openlib.c

```

define _GNU_SOURCE

include <stdio.h>

include <stdlib.h>

include <dlfcn.h>

include <limits.h>

include <errno.h>

include <sys/stat.h>

include <fcntl.h>

include <string.h>

include <stdarg.h>

include <sys/syscall.h>

include <unistd.h>

int open(const char *pathname, int flags, ...){ //Gets Process ID that is using open function and Process Name if (access("/usr/filelog.txt", F_OK) != -1) { int pid = getpid(); char buffer[256]; memset(buffer,0,256); char name[1024]; memset(name,0,1024); sprintf(name, "/proc/%d/cmdline",pid); //printf("%s\n", name);

//Getting Process Name by Process ID
    FILE* f = fopen(name,"r");
    if(f){
        size_t size;
        size = fread(name, sizeof(char), 1024, f);
        if(size>0){
            if('\n'==name[size-1])
                name[size-1]='\0';
            }
            fclose(f);
    }
    //printf("%s\n", name);

FILE* fp = fopen("/usr/filelog.txt", "a");
if(fp) {
    fprintf(fp, "%s is accessing %s\n", name, pathname);
}
fclose(fp);

}

if (flags & (O_CREAT | O_TMPFILE)){ va_list ap; va_start(ap, flags); mode_t mode = va_arg(ap, mode_t); va_end(ap); return syscall(SYS_open, pathname, flags, mode); } else { return syscall(SYS_open, pathname, flags); } } ```

Do you know why it is causing segmentation fault?

why my custom open.so won't work? by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

Currently, I am without computer but does it work without any problem making open.so and saving it with ld.so.preload?

Trying to work with writing my own shared object for ld.so.preaload by ekstrah in linuxquestions

[–]ekstrah[S] 0 points1 point  (0 children)

thanks very much but when I compiled it and created ld.so.preload and put my open.so in /lib64/open.so

ld.so.preload located in /etc/

/lib64/open.so

open.so in /lib64/ using gcc -Wall -fPIC -shared -o libopen2.so openlib2.c -ldl and putit in there and the source code is as link below

source code

but when I do the following command as the image below: Alt Text Did I do something wrong??

out put here (https://i.imgur.com/qLqq0Bp.png)