RPS 패치 내용: https://github.com/torvalds/linux/commit/0a9627f2649a02bea165cfd529d7bcb625c2fcad
RFS 패치 내용: https://github.com/torvalds/linux/commit/fec5e652e58fa6017b2c9e06466cb2a6538de5b4
/*
/** | |
* g++ -std=c++14 quick_sort_mt.cpp -pthread && ./a.out 10000 1 1 | |
* | |
* | |
* This works: | |
* ./a.out 10000 1 1 | |
* | |
* This fails (unpredictably!): | |
* ./a.out 100000 1 1 | |
**/ |
# !/usr/bin/python | |
# -*- encoding: utf-8 -*- | |
import sys | |
dp = [] | |
for i in range(100): | |
dp.append(0) | |
dp[0] = 0 | |
dp[1] = 1 |
#include <linux/init.h> | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/list.h> | |
#include <linux/slab.h> | |
struct birthday { | |
int day; | |
int month; | |
int year; |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/init.h> | |
#include <linux/fs.h> | |
#include <linux/tracepoint.h> | |
#include <asm/syscall.h> | |
#include <linux/sched.h> | |
#include <linux/fdtable.h> | |
#include <linux/slab.h> | |
#include <linux/delay.h> |
/* tested on Linux 3.14 | |
* | |
*/ | |
#include <linux/kernel.h> | |
#include <linux/rculist.h> | |
#include <linux/moduleloader.h> | |
static LIST_HEAD(modules); | |
#define MODULE_NAME "module" |
root@imx6ul-iwg18m-twr-pos:~# tee-supplicant & | |
[1] 645 | |
root@imx6ul-iwg18m-twr-pos:~# hello_world | |
RET value =0 | |
### Thread ### | |
DEBUG: USER-TA:TA_CreateEntryPoint:42: has been called | |
FLOW: USER-TA: tee_user_mem_alloc:343: Allocate: link:[0x111b98], buf:[0x111ba8:16] | |
DEBUG: USER-TA:TA_OpenSessionEntryPoint:82: Hello World! | |
DEBUG: USER-TA:TA_OpenSessionEntryPoint:88: *****TA_OpenSessionEntryPoint***CANCEL FLAG =0 | |
DEBUG: USER-TA:TA_OpenSessionEntryPoint:92: *******TA_OpenSessionEntryPoint******UNMASK FLAG =1 |
# last three commits | |
git format-patch -3 --stdout > multi_commit.patch | |
# all commits that are in your branch and not in master into a single patch file multi_commit.patch | |
git format-patch --signoff master --stdout > multi_commit.patch | |
# create patches in the folder ~/output/directory/ for all commits that are in your branch and not in master | |
git format-patch -o ~/output/directory/ --signoff master |
#!/bin/bash -ex | |
# Copyright (c) 2018, DornerWorks, Ltd. | |
# Author: Stewart Hildebrand | |
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the | |
# following conditions are met: | |
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following | |
# disclaimer. |
#!/bin/bash | |
# | |
# IMPORTANT! | |
# At the moment this script is forged only for Debian ( tested on 8.x release ). | |
# Although my efforts were put on building this also on Arch Linux or Alpine, at the moment only Debian seems to be able to build it. | |
# Also, not sure why these instructions where nowhere on the internet, therefore I leave them here for whoever need them. | |
# | |
########### | |
# Add Backports repo support |